Skip to content

Commit

Permalink
Compatibility checks for .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
LTRData committed Nov 10, 2024
1 parent 36607b7 commit 8236974
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>

<LangVersion>Latest</LangVersion>
<LangVersion>Preview</LangVersion>

<PackageProjectUrl>https://github.com/LTRData/DiscUtils</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
4 changes: 2 additions & 2 deletions Library/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- Package related stuff -->
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net46;net48;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net46;net48;net6.0;net8.0;net9.0</TargetFrameworks>
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
<PackageId>LTRData.$(MSBuildProjectName)</PackageId>
<PackageOutputPath>$(LocalNuGetPath)</PackageOutputPath>
Expand Down Expand Up @@ -37,4 +37,4 @@
</PackageReference>
</ItemGroup>

</Project>
</Project>
7 changes: 4 additions & 3 deletions Library/DiscUtils.Xva/DiscUtils.Xva.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.1" />
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
<PackageReference Include="System.Xml.XPath" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.*" />
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.*" />
<PackageReference Include="System.Xml.XPath" Version="4.3.*" />
<PackageReference Include="System.Text.RegularExpressions" Version="*" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Tests/LibraryTests/LibraryTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net48;net46</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
<DebugType>portable</DebugType>
<AssemblyName>LibraryTests</AssemblyName>
<PackageId>LibraryTests</PackageId>
Expand Down
4 changes: 2 additions & 2 deletions Utilities/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- Package related stuff -->
<PropertyGroup>
<IsPackable>false</IsPackable>
<TargetFrameworks>net46;net48;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
<RollForward>LatestMajor</RollForward>
<LangVersion>Latest</LangVersion>
<SignAssembly>false</SignAssembly>
Expand All @@ -15,4 +15,4 @@
<PackageVersion>$(FileVersion)</PackageVersion>
</PropertyGroup>

</Project>
</Project>
1 change: 1 addition & 0 deletions Utilities/DiscUtils.Common/DiscUtils.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<PropertyGroup>
<DebugType>portable</DebugType>
<TargetFrameworks>net46;net48;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Utilities/DiskClone/DiskClone.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


<PropertyGroup>
<TargetFrameworks>net46;net48;net8.0-windows</TargetFrameworks>
<TargetFrameworks>net9.0-windows</TargetFrameworks>
<DebugType>portable</DebugType>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
7 changes: 4 additions & 3 deletions Utilities/MSBuildTask/MSBuildTask.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
<TargetFrameworks>net48</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" Version="17.11.4" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="17.11.4" />
<PackageReference Include="Microsoft.Build.Framework" Version="*" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="*" />
<PackageReference Include="Microsoft.IO.Redist" Version="*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DiscUtils.Common\DiscUtils.Common.csproj" />
<ProjectReference Include="..\..\Library\DiscUtils.Core\DiscUtils.Core.csproj" />
<ProjectReference Include="..\..\Library\DiscUtils.Iso9660\DiscUtils.Iso9660.csproj" />
<ProjectReference Include="..\..\Library\DiscUtils.SquashFs\DiscUtils.SquashFs.csproj" />
</ItemGroup>
</Project>
</Project>

0 comments on commit 8236974

Please sign in to comment.