This project is read-only.
1
Vote

NestedProject sample does not work on French (or other localized) Visual Studio

description

When you try to create a new NestedProject, in a French Visual Studio, a FileNotFOundException is thrown and project is not created.

The exception occurs at the solution.GetProjectTemplate call in RegisteredProjectType.GetVsTemplateFile.
templateFile parameter is "Windows\Console Application". This is not a safe project template ID but the english localized label (in french: "Windows\Application Console").

As explained in page http://msdn.microsoft.com/en-us/library/envdte80.solution2.getprojecttemplate(v=vs.120).aspx:

"The UI strings vary according to locale. Using the name of the zip file is the safest way to pass the TemplateName parameter."

comments