Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix broken test expectaions due to new behavior in .Net 8.0
Up until .Net 7.0, interfaces had 2 attributes: Interface + Abstract In .Net 8.0 interfaces are emited with a third one: BeforeFieldInit Can be verified with the following bash script: cd /tmp rm -rf test mkdir test cd test echo "public interface IFoo {}" > itf.cs echo '<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFramework>net7.0</TargetFramework></PropertyGroup></Project>' > itf.csproj docker run -it -v /tmp/test/:/code mcr.microsoft.com/dotnet/sdk:7.0 bash -c "cd /code; dotnet build; dotnet tool install -g ilspycmd; DOTNET_ROLL_FORWARD=LatestMajor /root/.dotnet/tools/ilspycmd -il /code/bin/Debug/net7.0/itf.dll > 7.il " echo '<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFramework>net8.0</TargetFramework></PropertyGroup></Project>' > itf.csproj docker run -it -v /tmp/test/:/code mcr.microsoft.com/dotnet/sdk:8.0 bash -c "cd /code; dotnet build; dotnet tool install -g ilspycmd; DOTNET_ROLL_FORWARD=LatestMajor /root/.dotnet/tools/ilspycmd -il /code/bin/Debug/net8.0/itf.dll > 8.il "
- Loading branch information