dotnet / arcade

Tools that provide common build infrastructure for multiple .NET Foundation projects.
MIT License
671 stars 347 forks source link

Assembly versions mismatch for CodeAnalysis #10341

Open sebastienros opened 2 years ago

sebastienros commented 2 years ago

I am getting this error within VS 2022 preview 6 (public preview) when opening a project from the aspnetcore repository.

Warning CS9057  The analyzer assembly 'C:\code\aspnetcore\.dotnet\sdk\7.0.100-rc.1.22375.2\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CSharp.CodeStyle.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.

This seems to break some refactoring features too (like renaming property)

Sebazzz commented 2 years ago

Also running into this:

    Error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\Microsoft.Interop.JavaScript.JSImportGenerator.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
    Error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\Microsoft.Interop.LibraryImportGenerator.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
    Error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\System.Text.Json.SourceGeneration.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
    Error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\System.Text.RegularExpressions.Generator.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.

It happens in VS 2022 and in Rider but not when building via dotnet.

Sebazzz commented 2 years ago

Referencing Microsoft.Net.Compilers.Toolset does not help in resolving the issue:

<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.4.0-2.final">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

Partial log:

   1>Project "[redacted].csproj" (1) is building "C:\Users\[redacted]\.nuget\packages\nerdbank.gitversioning\3.5.113\build\PrivateP2PCaching.proj" (2) on node 1 (GetBuildVersion_Properties target(s)).
     2>GetBuildVersionCore:
         Building version 1.0.0.475 from commit bb0bf4a3e36dd0e104f92973d40a30f7270ddf44
     2>Done Building Project "C:\Users\[redacted]\.nuget\packages\nerdbank.gitversioning\3.5.113\build\PrivateP2PCaching.proj" (GetBuildVersion_Properties target(s)).
     1>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\MSVS2022\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,CS8600,1701,1702,CA1716,CA1303,CA2007,VSTHRD200,IL2121,1701,1702,2008 /fullpaths /nostdlib+ /errorreport:prompt /warn:7 /define:TRACE;DEBUG;NET;NET7_0;NETCOREAPP;NET5_0_OR_GREATER;NET6_0_OR_GREATER;NET7_0_OR_GREATER;NETCOREAPP1_0_OR_GREATER;NETCOREAPP1_1_OR_GREATER;NETCOREAPP2_0_OR_GREATER;NETCOREAPP2_1_OR_GREATER;NETCOREAPP2_2_OR_GREATER;NETCOREAPP3_0_OR_GREATER;NETCOREAPP3_1_OR_GREATER /errorendlocation /preferreduilang:en-US /highentropyva+ /nullable:enable /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\Microsoft.CSharp.dll" /reference:C:\Users\[redacted]\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\7.0.0-rc.2.22472.3\lib\net7.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll /reference:C:\Users\[redacted]\.nuget\packages\microsoft.extensions.dependencymodel\3.1.6\lib\netstandard2.0\Microsoft.Extensions.DependencyModel.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\Microsoft.VisualBasic.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\Microsoft.VisualBasic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\Microsoft.Win32.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\Microsoft.Win32.Registry.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\mscorlib.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\netstandard.dll" /reference:C:\Users\[redacted]\.nuget\packages\scrutor\3.3.0\lib\netcoreapp3.1\Scrutor.dll /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.AppContext.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Buffers.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Collections.Concurrent.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Collections.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Collections.Immutable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Collections.NonGeneric.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Collections.Specialized.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ComponentModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ComponentModel.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ComponentModel.TypeConverter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Configuration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Console.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Core.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Data.Common.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Data.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.Debug.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.DiagnosticSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.Process.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.StackTrace.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.Tools.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.TraceSource.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Drawing.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Drawing.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Dynamic.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Formats.Asn1.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Formats.Tar.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Globalization.Calendars.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Globalization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Globalization.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.Compression.Brotli.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.Compression.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.Compression.ZipFile.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.FileSystem.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.FileSystem.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.FileSystem.Watcher.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.IsolatedStorage.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.MemoryMappedFiles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.Pipes.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.Pipes.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.IO.UnmanagedMemoryStream.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Linq.Expressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Linq.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Linq.Queryable.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Memory.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Http.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Http.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.HttpListener.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Mail.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.NameResolution.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.NetworkInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Ping.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Quic.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Requests.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.ServicePoint.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.Sockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.WebClient.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.WebProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.WebSockets.Client.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Net.WebSockets.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Numerics.Vectors.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ObjectModel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.DispatchProxy.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.Emit.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.Metadata.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Reflection.TypeExtensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Resources.Reader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Resources.ResourceManager.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Resources.Writer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.CompilerServices.Unsafe.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Handles.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.InteropServices.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.InteropServices.JavaScript.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.InteropServices.RuntimeInformation.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Intrinsics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Loader.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Numerics.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.AccessControl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Claims.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.Algorithms.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.Cng.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.Csp.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.OpenSsl.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.Primitives.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Cryptography.X509Certificates.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Principal.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.Principal.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Security.SecureString.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ServiceModel.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ServiceProcess.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Text.Encoding.CodePages.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Text.Encoding.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Text.Encodings.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Text.Json.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Text.RegularExpressions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Channels.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Overlapped.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Tasks.Dataflow.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Tasks.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Tasks.Extensions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Thread.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.ThreadPool.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Threading.Timer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Transactions.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Transactions.Local.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.ValueTuple.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Web.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Web.HttpUtility.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Windows.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.Linq.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.Serialization.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.XmlDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.XmlSerializer.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.XPath.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\System.Xml.XPath.XDocument.dll" /reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\ref\net7.0\WindowsBase.dll" /debug+ /debug:embedded /filealign:512 /optimize- /out:obj\Debug\net7.0\[redacted].dll /refout:obj\Debug\net7.0\refint\[redacted].dll /target:library /warnaserror+ /utf8output /deterministic+ /analyzerconfig:C:\Projects\SMART-NS\.editorconfig /analyzerconfig:obj\Debug\net7.0\[redacted].GeneratedMSBuildEditorConfig.editorconfig /analyzer:"C:\Program Files\dotnet\sdk\7.0.100-rc.2.22477.23\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll" /analyzer:"C:\Program Files\dotnet\sdk\7.0.100-rc.2.22477.23\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.NetAnalyzers.dll" /analyzer:C:\Users\[redacted]\.nuget\packages\asyncfixer\1.6.0\analyzers\dotnet\cs\AsyncFixer.dll /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers/dotnet/cs/Microsoft.Interop.JavaScript.JSImportGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers/dotnet/cs/Microsoft.Interop.LibraryImportGenerator.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers/dotnet/cs/Microsoft.Interop.SourceGeneration.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers/dotnet/cs/System.Text.Json.SourceGeneration.dll" /analyzer:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers/dotnet/cs/System.Text.RegularExpressions.Generator.dll" C:\Projects\SMART-NS\src\[redacted]\obj\Debug\net7.0\[redacted].Version.cs Culture.cs ISystemClock.cs ServiceCollectionExtensions.cs "obj\Debug\net7.0\.NETCoreApp,Version=v7.0.AssemblyAttributes.cs" obj\Debug\net7.0\[redacted].AssemblyInfo.cs /warnaserror+:SYSLIB0011
     1>CSC : error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\Microsoft.Interop.JavaScript.JSImportGenerator.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
     1>CSC : error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\Microsoft.Interop.LibraryImportGenerator.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
     1>CSC : error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\System.Text.Json.SourceGeneration.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
     1>CSC : error CS9057: The analyzer assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0-rc.2.22472.3\analyzers\dotnet\cs\System.Text.RegularExpressions.Generator.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
         CompilerServer: server - server processed compilation - 96f215ec-939f-4626-8f7e-789e8326c04a
     1>Done Building Project "C:\Projects\[redacted]\src\[redacted]\[redacted].csproj" (build target(s)) -- FAILED.
Sebazzz commented 1 year ago

Appears to go well in .NET 7 final now.