RollForward support

- Added Forward compatibility with newer SDKs.
- Added root items into solution.
This commit is contained in:
Tony Bark 2026-02-04 00:04:24 -05:00
parent 7d823aa78b
commit d6c0be0325
5 changed files with 20 additions and 2 deletions

6
Directory.Build.props Normal file
View file

@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<!-- Allow running on any .NET 8+ runtime (8, 9, 10, ...) -->
<RollForward>LatestMajor</RollForward>
</PropertyGroup>
</Project>

View file

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>

View file

@ -1,4 +1,10 @@
<Solution>
<Folder Name="/Solution Items/">
<File Path=".editorconfig" />
<File Path="Directory.Build.props" />
<File Path="global.json" />
<File Path="README.md" />
</Folder>
<Project Path="Longhorn.Tests/Longhorn.Tests.csproj" />
<Project Path="Longhorn/Longhorn.csproj" />
</Solution>

View file

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

6
global.json Normal file
View file

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