Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 2e0a72c

Browse files
committed
Fix
1 parent 625daae commit 2e0a72c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AspNetCore.SassCompiler.Tasks/CompileSass.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private IEnumerable<ITaskItem> GenerateCss(SassCompilerOptions options)
277277
if (File.Exists(compilationWithSource.Source))
278278
{
279279
var targetFile = compilationWithSource.Target.Replace(nominalisedRootFolder + '/', string.Empty);
280-
yield return new TaskItem(targetFile);
280+
yield return new TaskItem(targetFile.Replace('/', '\\'));
281281
}
282282
// many to many
283283
else
@@ -288,7 +288,7 @@ private IEnumerable<ITaskItem> GenerateCss(SassCompilerOptions options)
288288
if (!Path.GetFileName(sourceFile).StartsWith("_"))
289289
{
290290
var targetFile = nominalisedSourceFile.Replace(compilationWithSource.Source, compilationWithSource.Target).Replace("scss", "css").Replace(nominalisedRootFolder + '/', string.Empty);
291-
yield return new TaskItem(targetFile);
291+
yield return new TaskItem(targetFile.Replace('/', '\\'));
292292
}
293293
}
294294
}

0 commit comments

Comments
 (0)