Skip to content

Commit 43c7101

Browse files
committed
fix: add @ to interceptor path
1 parent 30d2583 commit 43c7101

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bunit.generators/Web.Stubs/StubGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public InterceptsLocationAttribute(string filePath, int line, int column)
205205
foreach (var hit in stubClassGrouped)
206206
{
207207
interceptorSource.AppendLine(
208-
$"\t\t[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(\"{hit.Path}\", {hit.Line}, {hit.Column})]");
208+
$"\t\t[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(@\"{hit.Path}\", {hit.Line}, {hit.Column})]");
209209
}
210210

211211
interceptorSource.AppendLine(

0 commit comments

Comments
 (0)