Add integration with the new required keyword

Closes #132
This commit is contained in:
Oleksii Holub
2022-12-08 21:46:14 +02:00
parent af96d0d31d
commit b10577fec5
19 changed files with 430 additions and 32 deletions

View File

@@ -58,8 +58,7 @@ internal class AnalyzerAssertions : ReferenceTypeAssertions<DiagnosticAnalyzer,
var compilation = CSharpCompilation.Create(
"CliFxTests_DynamicAssembly_" + Guid.NewGuid(),
new[] { ast },
ReferenceAssemblies
.Net60
Net70.References.All
.Append(MetadataReference.CreateFromFile(typeof(ICommand).Assembly.Location)),
// DLL to avoid having to define the Main() method
new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)