Skip to content

Commit 600642a

Browse files
committed
feat: update to latest changes and increase version
1 parent 8f4429c commit 600642a

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ on:
2020
push:
2121
branches:
2222
- main
23-
- develop
2423
pull_request:
2524
branches:
2625
- main
27-
- develop
2826

2927
jobs:
3028
windows-latest:

GitVersion.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
assembly-versioning-scheme: Major
22
assembly-file-versioning-scheme: MajorMinorPatchTag
3-
next-version: 1.0.0
3+
next-version: 2.0.0
44
mode: ContinuousDeployment
55
branches:
66
master:

NuGet.Config

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<packageSources>
1111
<clear />
1212
<!-- <add key="CI.MahApps.IconPacks" value="d:\source\github_orgs\MahApps.Metro.IconPacks\Publish\" /> -->
13+
<add key="CI.MahApps.IconPacks" value="https://ci.appveyor.com/nuget/mahapps-metro-iconpacks-jrmm48owpkp2" />
1314
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
1415
</packageSources>
1516
<activePackageSource>
@@ -18,7 +19,7 @@
1819
</activePackageSource>
1920
<packageSourceMapping>
2021
<!-- <packageSource key="CI.MahApps.IconPacks">
21-
<package pattern="*" />
22+
<package pattern="MahApps.Metro.IconPacks*" />
2223
</packageSource> -->
2324
<packageSource key="nuget.org">
2425
<package pattern="*" />

build/Build.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Nuke.Common;
66
using Nuke.Common.CI;
77
using Nuke.Common.CI.GitHubActions;
8-
using Nuke.Common.Execution;
98
using Nuke.Common.Git;
109
using Nuke.Common.IO;
1110
using Nuke.Common.ProjectModel;
@@ -26,8 +25,8 @@
2625
GitHubActionsImage.WindowsLatest,
2726
AutoGenerate = true,
2827
FetchDepth = 0,
29-
OnPushBranches = new[] { "main", "develop" },
30-
OnPullRequestBranches = new[] { "main", "develop" },
28+
OnPushBranches = new[] { "main" },
29+
OnPullRequestBranches = new[] { "main" },
3130
InvokedTargets = new[] { nameof(Compile) }
3231
)]
3332
[GitHubActions(
@@ -69,7 +68,9 @@ protected override void OnBuildInitialized()
6968
throw new Exception("Could not initialize GitVersion.");
7069
}
7170

71+
#pragma warning disable CS0612 // Type or member is obsolete
7272
Logger.Block("Info");
73+
#pragma warning restore CS0612 // Type or member is obsolete
7374

7475
Log.Information("IsLocalBuild : {IsLocalBuild}", IsLocalBuild.ToString());
7576
Log.Information("Branch : {Branch}", GitRepository.Branch);
@@ -86,7 +87,7 @@ protected override void OnBuildInitialized()
8687

8788
[Solution(GenerateProjects = true, SuppressBuildProjectCheck = false)] readonly Solution Solution;
8889
[GitRepository] readonly GitRepository GitRepository;
89-
[GitVersion(Framework = "net5.0", NoFetch = true)] readonly GitVersion GitVersion;
90+
[GitVersion(Framework = "net6.0", NoFetch = true)] readonly GitVersion GitVersion;
9091

9192
AbsolutePath SourceDirectory => RootDirectory / "src";
9293
AbsolutePath TestsDirectory => RootDirectory / "tests";

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.200",
3+
"version": "8.0.100",
44
"rollForward": "feature"
55
}
66
}

src/IconPacks.Browser/IconPacks.Browser.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net47;net6.0-windows</TargetFrameworks>
4+
<TargetFrameworks>net8.0-windows;net6.0-windows;net47</TargetFrameworks>
55
<OutputType>WinExe</OutputType>
66
<UseWPF>true</UseWPF>
77
<AssemblyName>IconPacks.Browser</AssemblyName>
@@ -24,7 +24,7 @@
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="MahApps.Metro.IconPacks" Version="5.0.0-*" />
27+
<PackageReference Include="MahApps.Metro.IconPacks" Version="5.0.0" />
2828
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
2929
<PackageReference Include="AsyncAwaitBestPractices" Version="6.0.6" />
3030
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.5" />

src/IconPacks.Browser/ViewModels/IconPackViewModel.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
using MahApps.Metro.Controls.Dialogs;
2222
using MahApps.Metro.IconPacks;
2323
using Microsoft.Win32;
24-
using io = System.IO;
24+
using IO = System.IO;
2525

2626
namespace IconPacks.Browser.ViewModels
2727
{
@@ -253,7 +253,7 @@ private async void SaveAsSvg_Execute()
253253

254254
var svgFileContent = ExportHelper.FillTemplate(svgFileTemplate, parameters);
255255

256-
using io.StreamWriter file = new io.StreamWriter(fileSaveDialog.FileName);
256+
using IO.StreamWriter file = new IO.StreamWriter(fileSaveDialog.FileName);
257257
await file.WriteAsync(svgFileContent);
258258
}
259259
}
@@ -317,7 +317,7 @@ private async void SaveAsWpf_Execute()
317317

318318
var wpfFileContent = ExportHelper.FillTemplate(wpfFileTemplate, parameters);
319319

320-
using io.StreamWriter file = new io.StreamWriter(fileSaveDialog.FileName);
320+
using IO.StreamWriter file = new IO.StreamWriter(fileSaveDialog.FileName);
321321
await file.WriteAsync(wpfFileContent);
322322
}
323323
}
@@ -380,7 +380,7 @@ private async void SaveAsUwp_Execute()
380380

381381
var wpfFileContent = ExportHelper.FillTemplate(wpfFileTemplate, parameters);
382382

383-
using io.StreamWriter file = new io.StreamWriter(fileSaveDialog.FileName);
383+
using IO.StreamWriter file = new IO.StreamWriter(fileSaveDialog.FileName);
384384
await file.WriteAsync(wpfFileContent);
385385
}
386386
}
@@ -450,7 +450,7 @@ private async void SaveAsBitmapExecute(BitmapEncoder encoder)
450450

451451
encoder.Frames.Add(BitmapFrame.Create(renderTargetBitmap));
452452

453-
using var fileStream = new io.FileStream(fileSaveDialog.FileName, io.FileMode.Create);
453+
using var fileStream = new IO.FileStream(fileSaveDialog.FileName, IO.FileMode.Create);
454454
encoder.Save(fileStream);
455455
}
456456
}

src/IconPacks.Browser/ViewModels/MainViewModel.cs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public MainViewModel(Dispatcher dispatcher)
6262
(typeof(PackIconMicronsKind), typeof(PackIconMicrons)),
6363
(typeof(PackIconModernKind), typeof(PackIconModern)),
6464
(typeof(PackIconOcticonsKind), typeof(PackIconOcticons)),
65+
(typeof(PackIconPhosphorIconsKind), typeof(PackIconPhosphorIcons)),
6566
(typeof(PackIconPicolIconsKind), typeof(PackIconPicolIcons)),
6667
(typeof(PackIconPixelartIconsKind), typeof(PackIconPixelartIcons)),
6768
(typeof(PackIconRadixIconsKind), typeof(PackIconRadixIcons)),

0 commit comments

Comments
 (0)