Klenne

Hi all,

I have a guidance package that creates a website using templates. Everything works great as long as i do not add any images. The moment i add a gif file i get the following exception

Project Template Wizard

A problem was encountered creating the sub project '$ApplicationName$.Web.UI'. The file cannot be opened with the selected editor. Please choose another editor.

Why is the editor trying to open the image and how can i prevent this

Any ideas



Re: Visual Studio Guidance Automation Toolkit The file cannot be opened with the selected editor

Jose Escrich

Hi Klenne,
could you post how it looks your vstemplate.

thanks.
jose.





Re: Visual Studio Guidance Automation Toolkit The file cannot be opened with the selected editor

Doron Goldberg

Hi,

I have the same problem.

.vstemplate:

<Folder Name="IMAGES" TargetFolderName="IMAGES">
<Folder Name="$safeprojectname$" TargetFolderName="$safeprojectname$">
<ProjectItem ReplaceParameters="true" TargetFileName="TEMPLATE\IMAGES\$safeprojectname$\$safeprojectname$FeatureIcon.gif">../../../FeatureIcon.gif</ProjectItem>
</Folder>

</Folder>

.csproj

<Content Include="TEMPLATE\IMAGES\$safeprojectname$\$safeprojectname$FeatureIcon.gif" />

I'm getting the same error while trying to open a new project from the template.

When I use a different file as the source, such as .xml file, it works fine - only the image is not valid of course...

Thank you,

Doron.