RollForward support

- Added Forward compatibility with newer SDKs.
- Added root items into solution.
This commit is contained in:
Tony Bark 2026-02-04 00:05:25 -05:00
parent 2789562abd
commit 190b8d10bb
5 changed files with 15 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
@ -10,7 +10,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
@ -20,6 +19,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Update="DotNet.ReproducibleBuilds" Version="1.2.39" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
</ItemGroup>
<ItemGroup>

View file

@ -1,7 +1,9 @@
<Solution>
<Folder Name="/Solution Items/">
<File Path=".editorconfig" />
<File Path="Directory.Build.props" />
<File Path="doc/changelog.md" />
<File Path="global.json" />
<File Path="README.md" />
</Folder>
<Project Path="CSTNet.Tests/CSTNet.Tests.csproj" />

View file

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<Version>2.1.101-alpha</Version>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>

View file

@ -1,6 +1,6 @@
<Project>
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" />
<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<!-- Allow running on any .NET 8+ runtime (8, 9, 10, ...) -->
<RollForward>LatestMajor</RollForward>
</PropertyGroup>
</Project>

6
global.json Normal file
View file

@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"rollForward": "latestMajor"
}
}