dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.03k stars 4.03k forks source link

The itemtemplate of 'form.designer.cs' doestn't use local language #29490

Open CreateAndInject opened 6 years ago

CreateAndInject commented 6 years ago

It seems all vs(vs2010--vs2017) exist this bug. Create a WinForm project, add new item 'Windows Form' named 'Form2.cs' Open 'Form2.Designer.cs', the comment is English, but my visual studio is Chinese(2052)

I think this file doesn't use language 2052: ..\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ItemTemplates\CSharp\Windows Forms\2052\Form\form.designer.cs

There's no problem in VB (Form.Designer.vb)

sharwell commented 6 years ago

Since the designer file is in source control, it's important that the file always be generated the same way or it will produce large changes each time a different user (or a user with a different default language) works on the file.

@jinujoseph I believe this is external for the designer code generation?