Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from muskankhedia/muskankhedia/migrate-net6
Browse files Browse the repository at this point in the history
Add support for .NET6 and .NetCoreApp3.1
  • Loading branch information
jscarle authored Dec 16, 2022
2 parents 04a06dd + 8514938 commit 13c2b40
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions HyperV.NET/HyperV.NET.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net50-windows;netstandard2.0;net45;net40</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net40;net45;netcoreapp3.1;net6.0-windows;net7.0-windows</TargetFrameworks>
<AssemblyName>HyperV.NET</AssemblyName>
<RootNamespace>HyperV</RootNamespace>
<PackageId>HyperV.NET</PackageId>
Expand All @@ -25,26 +25,38 @@
</None>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net50-windows'">
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Management">
<Version>4.5.0</Version>
<Version>4.7.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<ItemGroup Condition="'$(TargetFramework)' == 'net40'">
<Reference Include="System.Management" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
<PackageReference Include="System.Management">
<Version>4.5.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="System.Management">
<Version>4.5.0</Version>
<Version>4.7.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net40'">
<Reference Include="System.Management" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-windows'">
<PackageReference Include="System.Management">
<Version>6.0.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-windows'">
<PackageReference Include="System.Management">
<Version>7.0.0</Version>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 13c2b40

Please sign in to comment.