From 8581c9b3235f4c1cd1e1c38762c722812cd560cb Mon Sep 17 00:00:00 2001 From: Petr Date: Thu, 21 Sep 2023 16:53:13 +0200 Subject: [PATCH] Fix --- .../Initialisation/CsharpProjectComponentsBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Stryker.Core/Stryker.Core/Initialisation/CsharpProjectComponentsBuilder.cs b/src/Stryker.Core/Stryker.Core/Initialisation/CsharpProjectComponentsBuilder.cs index 3c6d98719c..23b905effb 100644 --- a/src/Stryker.Core/Stryker.Core/Initialisation/CsharpProjectComponentsBuilder.cs +++ b/src/Stryker.Core/Stryker.Core/Initialisation/CsharpProjectComponentsBuilder.cs @@ -89,7 +89,7 @@ private CsharpFolderComposite FindProjectFilesUsingBuildalyzer(IAnalyzerResult a var relativePath = Path.GetRelativePath(sourceProjectDir, sourceFile); var folderComposite = GetOrBuildFolderComposite(cache, Path.GetDirectoryName(relativePath), sourceProjectDir, projectUnderTestFolderComposite); - var file = new CsharpFileLeaf() + var file = new CsharpFileLeaf(options.Mutate) { SourceCode = FileSystem.File.ReadAllText(sourceFile), FullPath = sourceFile, @@ -197,7 +197,7 @@ private CsharpFolderComposite FindInputFiles(string path, string sourceProjectDi // Roslyn cannot compile xaml.cs files generated by xamarin. // Since the files are generated they should not be mutated anyway, so skip these files. - var fileLeaf = new CsharpFileLeaf() + var fileLeaf = new CsharpFileLeaf(_options.Mutate) { SourceCode = FileSystem.File.ReadAllText(file), FullPath = file,