Skip to content

Commit

Permalink
Upgrade to .net9
Browse files Browse the repository at this point in the history
  • Loading branch information
Delubear committed Nov 18, 2024
1 parent 9bd6bd1 commit 74e5f25
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 8.x
dotnet-version: 9.x
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
#artifact:
# An optional set of paths representing artifacts to upload to the release. This may be a single path or a comma delimited list of paths (or globs)
#artifacts: './GlucoseTray/bin/Release/net5.0-windows/win-x64/publish/'
artifacts: './GlucoseTray/bin/Release/net8.0-windows/win-x64/publish/GlucoseTray.exe'
artifacts: './GlucoseTray/bin/Release/net9.0-windows/win-x64/publish/GlucoseTray.exe'
# The content type of the artifact. Defaults to raw
#artifactContentType: # optional, default is
# An optional body for the release.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 8.x
dotnet-version: 9.x
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
18 changes: 9 additions & 9 deletions GlucoseTray/GlucoseTray.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<TargetFramework>net9.0-windows7.0</TargetFramework>
<Nullable>enable</Nullable>
<RootNamespace>GlucoseTray</RootNamespace>
<PublishReadyToRun>false</PublishReadyToRun> <!-- Turn on again once fixed: https://github.com/dotnet/wpf/issues/7282 -->
Expand All @@ -27,15 +27,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<PublishDir>bin\Release\net8.0-windows\win-x64\publish\</PublishDir>
<TargetFramework>net9.0-windows7.0</TargetFramework>
<PublishDir>bin\Release\net9.0-windows\win-x64\publish\</PublishDir>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
Expand Down

0 comments on commit 74e5f25

Please sign in to comment.