DevTeam / Pure.DI

Pure DI for .NET
MIT License
506 stars 22 forks source link

SyntaxTree is not part of the compilation (Parameter 'syntaxTree') error in .NET SDK 7.0.304 #28

Closed NikolayPianikov closed 1 year ago

NikolayPianikov commented 1 year ago

Microsoft.CSharp.Core.targets(80,5): error : Unhandled exception. System.ArgumentException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree') Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetSemanticModel(SyntaxTree syntaxTree, Boolean ignoreAccessibilit y) Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.SuppressMessageAttributeState.IsDiagnosticSuppressed(Diagnostic diagnostic, Sup pressMessageInfo& info) Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.SuppressMessageAttributeState.ApplySourceSuppressions(Diagnostic diagnostic)