Skip to content

Commit

Permalink
feat: update to latest changes and increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Jun 6, 2024
1 parent 8f4429c commit 600642a
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
windows-latest:
Expand Down
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
assembly-versioning-scheme: Major
assembly-file-versioning-scheme: MajorMinorPatchTag
next-version: 1.0.0
next-version: 2.0.0
mode: ContinuousDeployment
branches:
master:
Expand Down
3 changes: 2 additions & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<packageSources>
<clear />
<!-- <add key="CI.MahApps.IconPacks" value="d:\source\github_orgs\MahApps.Metro.IconPacks\Publish\" /> -->
<add key="CI.MahApps.IconPacks" value="https://ci.appveyor.com/nuget/mahapps-metro-iconpacks-jrmm48owpkp2" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<activePackageSource>
Expand All @@ -18,7 +19,7 @@
</activePackageSource>
<packageSourceMapping>
<!-- <packageSource key="CI.MahApps.IconPacks">
<package pattern="*" />
<package pattern="MahApps.Metro.IconPacks*" />
</packageSource> -->
<packageSource key="nuget.org">
<package pattern="*" />
Expand Down
9 changes: 5 additions & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Nuke.Common;
using Nuke.Common.CI;
using Nuke.Common.CI.GitHubActions;
using Nuke.Common.Execution;
using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
Expand All @@ -26,8 +25,8 @@
GitHubActionsImage.WindowsLatest,
AutoGenerate = true,
FetchDepth = 0,
OnPushBranches = new[] { "main", "develop" },
OnPullRequestBranches = new[] { "main", "develop" },
OnPushBranches = new[] { "main" },
OnPullRequestBranches = new[] { "main" },
InvokedTargets = new[] { nameof(Compile) }
)]
[GitHubActions(
Expand Down Expand Up @@ -69,7 +68,9 @@ protected override void OnBuildInitialized()
throw new Exception("Could not initialize GitVersion.");
}

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

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

[Solution(GenerateProjects = true, SuppressBuildProjectCheck = false)] readonly Solution Solution;
[GitRepository] readonly GitRepository GitRepository;
[GitVersion(Framework = "net5.0", NoFetch = true)] readonly GitVersion GitVersion;
[GitVersion(Framework = "net6.0", NoFetch = true)] readonly GitVersion GitVersion;

AbsolutePath SourceDirectory => RootDirectory / "src";
AbsolutePath TestsDirectory => RootDirectory / "tests";
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.200",
"version": "8.0.100",
"rollForward": "feature"
}
}
4 changes: 2 additions & 2 deletions src/IconPacks.Browser/IconPacks.Browser.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net47;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net6.0-windows;net47</TargetFrameworks>
<OutputType>WinExe</OutputType>
<UseWPF>true</UseWPF>
<AssemblyName>IconPacks.Browser</AssemblyName>
Expand All @@ -24,7 +24,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="MahApps.Metro.IconPacks" Version="5.0.0-*" />
<PackageReference Include="MahApps.Metro.IconPacks" Version="5.0.0" />
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
<PackageReference Include="AsyncAwaitBestPractices" Version="6.0.6" />
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.5" />
Expand Down
10 changes: 5 additions & 5 deletions src/IconPacks.Browser/ViewModels/IconPackViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
using MahApps.Metro.Controls.Dialogs;
using MahApps.Metro.IconPacks;
using Microsoft.Win32;
using io = System.IO;
using IO = System.IO;

namespace IconPacks.Browser.ViewModels
{
Expand Down Expand Up @@ -253,7 +253,7 @@ private async void SaveAsSvg_Execute()

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

using io.StreamWriter file = new io.StreamWriter(fileSaveDialog.FileName);
using IO.StreamWriter file = new IO.StreamWriter(fileSaveDialog.FileName);
await file.WriteAsync(svgFileContent);
}
}
Expand Down Expand Up @@ -317,7 +317,7 @@ private async void SaveAsWpf_Execute()

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

using io.StreamWriter file = new io.StreamWriter(fileSaveDialog.FileName);
using IO.StreamWriter file = new IO.StreamWriter(fileSaveDialog.FileName);
await file.WriteAsync(wpfFileContent);
}
}
Expand Down Expand Up @@ -380,7 +380,7 @@ private async void SaveAsUwp_Execute()

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

using io.StreamWriter file = new io.StreamWriter(fileSaveDialog.FileName);
using IO.StreamWriter file = new IO.StreamWriter(fileSaveDialog.FileName);
await file.WriteAsync(wpfFileContent);
}
}
Expand Down Expand Up @@ -450,7 +450,7 @@ private async void SaveAsBitmapExecute(BitmapEncoder encoder)

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

using var fileStream = new io.FileStream(fileSaveDialog.FileName, io.FileMode.Create);
using var fileStream = new IO.FileStream(fileSaveDialog.FileName, IO.FileMode.Create);
encoder.Save(fileStream);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/IconPacks.Browser/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public MainViewModel(Dispatcher dispatcher)
(typeof(PackIconMicronsKind), typeof(PackIconMicrons)),
(typeof(PackIconModernKind), typeof(PackIconModern)),
(typeof(PackIconOcticonsKind), typeof(PackIconOcticons)),
(typeof(PackIconPhosphorIconsKind), typeof(PackIconPhosphorIcons)),
(typeof(PackIconPicolIconsKind), typeof(PackIconPicolIcons)),
(typeof(PackIconPixelartIconsKind), typeof(PackIconPixelartIcons)),
(typeof(PackIconRadixIconsKind), typeof(PackIconRadixIcons)),
Expand Down

0 comments on commit 600642a

Please sign in to comment.