Skip to content

Commit 7185186

Browse files
cdpidanxljiulang
authored andcommitted
Update CSharpHtml.cs
Support linuxOS or macOS
1 parent 7e7dd88 commit 7185186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebApiClientCore.OpenApi.SourceGenerator/CSharpHtml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static CSharpHtml<T> Views<T>(string name)
3939
throw new ArgumentNullException(nameof(name));
4040
}
4141

42-
var path = $"Views\\{name}";
42+
var path = Path.Combine("Views", name);
4343
return new CSharpHtml<T>(path);
4444
}
4545
}
@@ -198,4 +198,4 @@ public static IRazorEngineCompiledTemplate Compile(string content)
198198
}
199199
}
200200
}
201-
}
201+
}

0 commit comments

Comments
 (0)