Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

[Ide] Simpler culture specific resource file template fix … #6676

Merged
merged 2 commits into from Nov 27, 2018

Conversation

mrward
Copy link
Member

@mrward mrward commented Nov 27, 2018

The original fix to allow culture specific resource files (e.g.
Resources.de.resx) to be created by the New File dialog broke how
the ${Name} property was generated in new files. This could cause
invalid C# code to be generated for a new C# file. A simpler fix
is to not use "${Name}.resx" for the name of the file template but
specify a default file extension. This allows culture specific
.resx files to be created and also matches the behaviour of the
C# file template, which already supports creating new files with
a dotted name (e.g. Resources.Designer.cs)

Fixes VSTS #733182 - Invalid C# file created with new Library project
Fixes VSTS #579048 - Unable to create a culture specific resx files
through the 'New File ..' menu in the Solutions Explorer right click.

This reverts commit 8cbc5e0, reversing
changes made to 9dee5b3.
The original fix to allow culture specific resource files (e.g.
Resources.de.resx) to be created by the New File dialog broke how
the ${Name} property was generated in new files. This could cause
invalid C# code to be generated for a new C# file. A simpler fix
is to not use "${Name}.resx" for the name of the file template but
specify a default file extension. This allows culture specific
.resx files to be created and also matches the behaviour of the
C# file template, which already supports creating new files with
a dotted name (e.g. Resources.Designer.cs)

Fixes VSTS #733182 - Invalid C# file created with new Library project
Fixes VSTS #579048 - Unable to  create a culture specific resx files
through the 'New File ..' menu in the Solutions Explorer right click.
@mrward mrward requested a review from a team November 27, 2018 14:07
@mrward mrward merged commit f6bba9e into master Nov 27, 2018
@mrward mrward deleted the fix-file-templates-generation branch November 27, 2018 19:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants