Skip to content

Commit 907f3ab

Browse files
authored
Hotfix: add UTF-8 BOM for package details page Razor (#10140)
1 parent a6c75d2 commit 907f3ab

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ insert_final_newline = true
1717
[*.{cs}]
1818
indent_size = 4
1919

20+
; Razor files
21+
[*.{cshtml}]
22+
; Needed to avoid incorrect charset detection in the Razor compiler
23+
charset = utf-8-bom
24+
2025
; All XML-based file formats
2126
[*.{config,csproj,nuspec,props,resx,ruleset,targets,vsct,vsixmanifest,xaml,xml,vsmanproj,swixproj}]
2227
indent_size = 2

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@using NuGet.Services.Validation
1+
@using NuGet.Services.Validation
22
@using NuGet.Services.Licenses
33

44
@model DisplayPackageViewModel

0 commit comments

Comments
 (0)