stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.75k stars 176 forks source link

Failed to generate source code for mutated assembly: error RZ3600: Invalid value ''' for RazorLangVersion. Valid values include 'Latest' or a valid version in range 1.0 to 8.0. #2890

Closed EMMPublisher closed 3 months ago

EMMPublisher commented 3 months ago

Describe the bug After execute the command dotnet-stryker I get the errors below. My solution don´t use Razor and there are not Razor Packages installed in any project of the solution.

Logs [16:17:54 WRN] Failed to load analyzer 'Microsoft.Extensions.Logging.Generators': Assembly with same name is already loaded (error : UnableToLoadAnalyzer, analyzer: All). [16:17:54 WRN] Failed to load analyzer 'Microsoft.Extensions.Logging.Generators': Exception System.IO.FileLoadException: Assembly with same name is already loaded at System.Runtime.Loader.AssemblyLoadContext.g__PInvoke|5_0(IntPtr __ptrNativeAssemblyBinder_native, UInt16* ilPath_native, UInt16* __niPath_native, ObjectHandleOnStack __retAssembly_native) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at Microsoft.CodeAnalysis.Diagnostics.AnalyzerFileReference.Extensions1.AddExtensions(Builder builder, String language, Func2 shouldInclude). [16:17:54 ERR] Failed to generate source code for mutated assembly: error RZ3600: Invalid value ''' for RazorLangVersion. Valid values include 'Latest' or a valid version in range 1.0 to 8.0. [16:17:54 ERR] An error occurred during the mutation test run

Source Generator Failure

[16:17:54 INF] Time Elapsed 00:03:06.4311472

Desktop:

rouke-broersma commented 3 months ago

This looks like the same issue as #2881