Skip to content

Made the encodings of .razor and .cshtml files in the repo consistent #23502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2020

Conversation

ajaybhargavb
Copy link
Contributor

@ajaybhargavb ajaybhargavb commented Jun 30, 2020

Fixes #22753

  • 99% of the changes in this PR is adding UTF8BOM to .cshtml and .razor files in the repo.
  • See the second commit for the test fixes

@ajaybhargavb ajaybhargavb requested review from pranavkm and mkArtakMSFT and removed request for Tratcher June 30, 2020 04:25
@@ -21,79 +21,78 @@ public ByteOrderMarkTest(ITestOutputHelper output)
_output = output;
}

[ConditionalTheory]
[QuarantinedTest]
[Theory]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual code change here.

<Content Include="..\Web.Spa.ProjectTemplates\**" LinkBase="Assets\Web.Spa.ProjectTemplates" />
<Content Include="..\Web.ItemTemplates\**" LinkBase="Assets\Web.ItemTemplates" />
<Content Include="..\Web.Client.ItemTemplates\**" LinkBase="Assets\Web.Client.ItemTemplates" />
</ItemGroup>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@ajaybhargavb ajaybhargavb changed the title Ajbaaska/fix encodings Made the encodings of .razor and .cshtml files in the repo consistent Jun 30, 2020
@ajaybhargavb ajaybhargavb added area-blazor Includes: Blazor, Razor Components area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Jun 30, 2020
@ajaybhargavb ajaybhargavb force-pushed the ajbaaska/fix-encodings branch from be86316 to a4aa668 Compare June 30, 2020 04:32
Copy link
Contributor

@sharwell sharwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .editorconfig needs to be updated as well, because it is currently configured to overwrite each of these changes the next time the file gets saved.

https://github.com/dotnet/aspnetcore/blob/be86316fcffdbf38039d2da7e512494aa17514a6/.editorconfig#L18

@ajaybhargavb ajaybhargavb requested a review from sharwell June 30, 2020 04:42
@sharwell sharwell dismissed their stale review June 30, 2020 04:49

Issue has been addressed!

<Content Include="..\Web.Spa.ProjectTemplates\**" LinkBase="Assets\Web.Spa.ProjectTemplates" />
<Content Include="..\Web.ItemTemplates\**" LinkBase="Assets\Web.ItemTemplates" />
<Content Include="..\Web.Client.ItemTemplates\**" LinkBase="Assets\Web.Client.ItemTemplates" />
</ItemGroup>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@ajaybhargavb
Copy link
Contributor Author

@mkArtakMSFT this is ready to be merged

@mkArtakMSFT mkArtakMSFT merged commit 7f4b846 into release/5.0-preview7 Jun 30, 2020
@mkArtakMSFT mkArtakMSFT deleted the ajbaaska/fix-encodings branch June 30, 2020 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants