Skip to content

Commit 707369e

Browse files
authored
Merge pull request #87 from paulushub/develop
Updated version information, fixed sample SVG paths
2 parents da85121 + 1e5d99c commit 707369e

File tree

10 files changed

+27
-28
lines changed

10 files changed

+27
-28
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: .NET
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ master, develop ]
66

77
defaults:
88
run:

Docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ The respository includes
1515
* **Samples:** For sample applications
1616
* **Docs:** For the documentations (in markdown format).
1717

18-
The command lines installation options are: For the version `5.0.118`
19-
* **.NET CLI:** dotnet add package DotNetProjects.SVGImage --version 5.0.118
20-
* **Package Manager:** NuGet\Install-Package DotNetProjects.SVGImage -Version 5.0.118
18+
The command lines installation options are: For the version `5.1.0`
19+
* **.NET CLI:** dotnet add package DotNetProjects.SVGImage --version 5.1.0
20+
* **Package Manager:** NuGet\Install-Package DotNetProjects.SVGImage -Version 5.1.0
2121

22-
For reference in projects use: For the version `5.0.118`
22+
For reference in projects use: For the version `5.1.0`
2323
```xml
24-
<PackageReference Include="DotNetProjects.SVGImage" Version="5.0.118" />
24+
<PackageReference Include="DotNetProjects.SVGImage" Version="5.1.0" />
2525
```
2626

2727
## How to build

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
next-version: 5.0.118
1+
next-version: 5.1.0

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ The respository includes
1515
* **Samples:** For sample applications
1616
* **Docs:** For the documentations (in markdown format).
1717

18-
The command lines installation options are: For the version `5.0.118`
19-
* **.NET CLI:** dotnet add package DotNetProjects.SVGImage --version 5.0.118
20-
* **Package Manager:** NuGet\Install-Package DotNetProjects.SVGImage -Version 5.0.118
18+
The command lines installation options are: For the version `5.1.0`
19+
* **.NET CLI:** dotnet add package DotNetProjects.SVGImage --version 5.1.0
20+
* **Package Manager:** NuGet\Install-Package DotNetProjects.SVGImage -Version 5.1.0
2121

22-
For reference in projects use: For the version `5.0.118`
22+
For reference in projects use: For the version `5.1.0`
2323
```xml
24-
<PackageReference Include="DotNetProjects.SVGImage" Version="5.0.118" />
24+
<PackageReference Include="DotNetProjects.SVGImage" Version="5.1.0" />
2525
```
2626

2727
## How to build

Samples/Example/MainWindow.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.IO;
33
using System.IO.Compression;
44
using System.Collections.Generic;
5-
using System.Drawing;
65
using System.Windows;
76

87
namespace Example

Samples/IconConverterSample/MainWindow.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Net;
33
using System.IO;
4-
using System.Reflection;
54
using System.IO.Compression;
65
using System.Windows;
76

@@ -24,7 +23,7 @@ private void OnWindowLoaded(object sender, RoutedEventArgs e)
2423
InitializeProtocol(); //For the web access
2524

2625
// ICons credit: https://github.com/icons8/flat-color-icons
27-
string workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
26+
string workingDir = Path.GetFullPath(PageMultiple.SamplesDir);
2827

2928
string iconsPath = Path.Combine(workingDir, PageMultiple.IconZipFile);
3029
if (!File.Exists(iconsPath))

Samples/IconConverterSample/PageMultiple.xaml.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Reflection;
55
using System.Windows;
66
using System.Windows.Controls;
7+
using System.IO.Compression;
78

89
namespace IconConverterSample
910
{
@@ -43,8 +44,9 @@ public Uri ImageUri
4344
/// </summary>
4445
public partial class PageMultiple : Page
4546
{
46-
public const string IconZipFile = @"..\svg-icons.zip";
47-
public const string IconFolder = @"Svg-Icons";
47+
public const string SamplesDir = @"..\..\..\..\Tests";
48+
public const string IconZipFile = "svg-icons.zip";
49+
public const string IconFolder = "Svg-Icons";
4850

4951
public PageMultiple()
5052
{
@@ -56,15 +58,15 @@ public PageMultiple()
5658

5759
private void OnPageLoaded(object sender, RoutedEventArgs e)
5860
{
59-
string workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
61+
string workingDir = Path.GetFullPath(SamplesDir);
6062

61-
string iconsPath = Path.Combine(workingDir, PageMultiple.IconZipFile);
63+
string iconsPath = Path.Combine(workingDir, IconZipFile);
6264
if (!File.Exists(iconsPath))
6365
{
6466
return;
6567
}
6668

67-
var iconsDir = new DirectoryInfo(Path.Combine(workingDir, PageMultiple.IconFolder));
69+
var iconsDir = new DirectoryInfo(Path.Combine(workingDir, IconFolder));
6870
if (!iconsDir.Exists)
6971
{
7072
return;

Samples/IconConverterSample/PageSingle.xaml.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ namespace IconConverterSample
1111
/// </summary>
1212
public partial class PageSingle : Page
1313
{
14-
//private const string SvgFileName = @"..\Asian_Openbill.svg";
15-
private const string SvgFileName = @"..\Sf_er_nkm.svg";
14+
private const string SvgFileName = @"..\..\Resources\Hypocolius.svg";
1615

1716
public static readonly DependencyProperty LocalFileNameProperty = DependencyProperty.Register("LocalFileName",
1817
typeof(string), typeof(PageSingle), new PropertyMetadata(SvgFileName));
@@ -35,7 +34,7 @@ private void OnPageLoaded(object sender, RoutedEventArgs e)
3534
{
3635
string workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
3736

38-
string svgFilePath = Path.Combine(workingDir, SvgFileName);
37+
string svgFilePath = Path.GetFullPath(Path.Combine(workingDir, SvgFileName));
3938
if (File.Exists(svgFilePath))
4039
{
4140
inputBox.Text = svgFilePath;

Source/SVGImage/DotNetProjects.SVGImage.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<Product>DotNetProjects.SVGImage</Product>
1212
<Copyright>2020-2023 DotNetProjects</Copyright>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<AssemblyVersion>5.0.117.0</AssemblyVersion>
15-
<FileVersion>5.0.117.0</FileVersion>
16-
<Version>5.0.117</Version>
14+
<AssemblyVersion>5.1.0.0</AssemblyVersion>
15+
<FileVersion>5.1.0.0</FileVersion>
16+
<Version>5.1.0</Version>
1717
<OutputType>Library</OutputType>
1818
<Configurations>Debug;Release</Configurations>
1919
</PropertyGroup>
@@ -31,7 +31,7 @@
3131
<PackageReadmeFile>Readme.md</PackageReadmeFile>
3232
<EnablePackageValidation>true</EnablePackageValidation>
3333
<!-- NOTE: Detect breaking changes from a previous version -->
34-
<PackageValidationBaselineVersion>5.0.117</PackageValidationBaselineVersion>
34+
<PackageValidationBaselineVersion>5.0.118</PackageValidationBaselineVersion>
3535
</PropertyGroup>
3636

3737
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

Tests/SvgTestBox/SvgResourceColors.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
66
xmlns:local="clr-namespace:SvgTestBox"
77
mc:Ignorable="d"
8-
Title="Pick a Color" Height="400" Width="490" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
8+
Title="Pick a Color" Height="410" Width="490" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
99
<Window.Resources>
1010
<Style x:Key="Item.FocusVisual">
1111
<Setter Property="Control.Template">

0 commit comments

Comments
 (0)