Skip to content

Commit

Permalink
Update Costura and support .net 9
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Nov 29, 2024
1 parent cd7c4a9 commit fda8ba0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Orc.SystemInfo.Example/Orc.SystemInfo.Example.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>net8.0-windows</TargetFrameworks>
<TargetFrameworks>net9.0-windows</TargetFrameworks>
<AssemblyName>Orc.SystemInfo.Example</AssemblyName>
<RootNamespace>Orc.SystemInfo.Example</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
Expand Down
2 changes: 1 addition & 1 deletion src/Orc.SystemInfo.Tests/Orc.SystemInfo.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="MSBuild.Sdk.Extras">
a<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>net8.0-windows</TargetFrameworks>
<AssemblyName>Orc.SystemInfo.Tests</AssemblyName>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
namespace Orc.SystemInfo.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Moq;
using NUnit.Framework;
Expand Down
16 changes: 10 additions & 6 deletions src/Orc.SystemInfo/Orc.SystemInfo.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<AssemblyName>Orc.SystemInfo</AssemblyName>
<RootNamespace>Orc.SystemInfo</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
Expand All @@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="Catel.Core" Version="6.0.0" />
<PackageReference Include="Catel.Fody" Version="4.9.0" PrivateAssets="all" />
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="all" />
<PackageReference Include="Costura.Fody" Version="6.0.0" PrivateAssets="all" />
<PackageReference Include="Fody" Version="6.9.1" PrivateAssets="all" />
<PackageReference Include="MethodTimer.Fody" Version="3.2.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
Expand All @@ -34,16 +34,20 @@
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.1" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net9.0')) ">
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
<None Remove="costura32\WbemShim.dll" />
<None Remove="costura64\WbemShim.dll" />
<None Remove="costura-win-x86\WbemShim.dll" />
<None Remove="costura-win-x64\WbemShim.dll" />
<None Remove="Resources\Dlls\x64\WbemShim.dll" />
<None Remove="Resources\Dlls\x86\WbemShim.dll" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="costura32\WbemShim.dll" />
<EmbeddedResource Include="costura64\WbemShim.dll" />
<EmbeddedResource Include="costura-win-x86\WbemShim.dll" />
<EmbeddedResource Include="costura-win-x64\WbemShim.dll" />
<EmbeddedResource Include="Resources\Dlls\x64\WbemShim.dll" />
<EmbeddedResource Include="Resources\Dlls\x86\WbemShim.dll" />
</ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit fda8ba0

Please sign in to comment.