File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2020 steps :
2121 - uses : actions/checkout@v4
2222
23+ - name : Create global.json to enforce .NET 8 for MSBuild
24+ if : inputs.dotnet-version == '8.0.x'
25+ run : echo '{"sdk":{"version":"8.0.0","rollForward":"latestFeature"}}' > global.json
26+
2327 - name : Setup .NET
2428 uses : actions/setup-dotnet@v4
2529 with :
3337 - name : Log MSBuild version
3438 run : msbuild -version
3539
40+ - name : Log .NET version
41+ run : dotnet --info
42+
3643 - name : Build
3744 run : dotnet build DotNetBuildable.slnf /p:Configuration=Release
3845
3946 - name : Execute unit tests
40- run : dotnet test Tests/bin/ Release/ICSharpCode.CodeConverter.Tests.dll
47+ run : dotnet test Tests/Tests.csproj -c Release --framework net${{ inputs.dotnet-version == '8.0.x' && '8.0' || '10.0' }} --no-build
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
3- <TargetFramework > net10.0</TargetFramework >
3+ <TargetFrameworks >net8.0; net10.0</TargetFrameworks >
44 <OutputType >Library</OutputType >
55 <AssemblyName >ICSharpCode.CodeConverter.Tests</AssemblyName >
66 <RootNamespace >ICSharpCode.CodeConverter.Tests</RootNamespace >
You can’t perform that action at this time.
0 commit comments