14.11.0 breaks projects which are not on c#10 (original) (raw)
Not sure if this is an issue with Verify or with VisualStudio.
e.g. Fody/Fody#1058 / Fody/Fody@c189e15
does no longer build, because VS is generating files containing global usings, which it then complains it can't compile:8>C:\dev\GitHub\Fody\Tests\obj\Debug\netcoreapp3.1\Tests.GlobalUsings.g.cs(2,1,2,34): error CS8400: Feature 'global using directive' is not available in C# 8.0. Please use language version 10.0 or greater.
The content of the file is:
// <auto-generated/>
global using global::VerifyTests;
global using global::VerifyXunit;
global using global::Xunit;
global using static global::VerifyXunit.Verifier;
I can't compile this PR version of Fody on my local machine with VS2022 (17.1.0)
Maybe the condition in <ItemGroup Condition="'$(ImplicitUsings)' == 'enable'"> is important?
What does Microsoft say about global usings in packages?
Can you reproduce this?