Skip to content

Commit 8581c9b

Browse files
committed
Fix
1 parent 754f469 commit 8581c9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Stryker.Core/Stryker.Core/Initialisation/CsharpProjectComponentsBuilder.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private CsharpFolderComposite FindProjectFilesUsingBuildalyzer(IAnalyzerResult a
8989
var relativePath = Path.GetRelativePath(sourceProjectDir, sourceFile);
9090
var folderComposite = GetOrBuildFolderComposite(cache, Path.GetDirectoryName(relativePath), sourceProjectDir, projectUnderTestFolderComposite);
9191

92-
var file = new CsharpFileLeaf()
92+
var file = new CsharpFileLeaf(options.Mutate)
9393
{
9494
SourceCode = FileSystem.File.ReadAllText(sourceFile),
9595
FullPath = sourceFile,
@@ -197,7 +197,7 @@ private CsharpFolderComposite FindInputFiles(string path, string sourceProjectDi
197197
// Roslyn cannot compile xaml.cs files generated by xamarin.
198198
// Since the files are generated they should not be mutated anyway, so skip these files.
199199

200-
var fileLeaf = new CsharpFileLeaf()
200+
var fileLeaf = new CsharpFileLeaf(_options.Mutate)
201201
{
202202
SourceCode = FileSystem.File.ReadAllText(file),
203203
FullPath = file,

0 commit comments

Comments
 (0)