Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > The file cannot be opened with the selected editor
 

The file cannot be opened with the selected editor

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?

Klenne  Wednesday, October 31, 2007 5:01 PM
Hi Klenne,
could you post how it looks your vstemplate.

thanks.
jose.
Jose Escrich  Thursday, November 01, 2007 2:47 PM
Hi Klenne,
could you post how it looks your vstemplate.

thanks.
jose.
Jose Escrich  Thursday, November 01, 2007 2:47 PM
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.
Doron Goldberg  Sunday, November 18, 2007 7:41 AM

You can use google to search for other answers

Custom Search

More Threads

• unregister & register the guidance package
• Urgent - Create a new Item (Form)
• Problem Using Newly Created Guidance package in VS 2005
• Inline expression for action inputs? Call receipe programmatically?
• System.Runtime.InteropServices.COMException (0x80004005): Not a valid file name
• Action to Add GAC folder to A (Vsd) Setup Project
• Access Denied Error while installing custom Guidance package
• Any tutorial for GAT?
• Argument with ValueProvider not being replaced in template
• How to add assemblies to solution-wide folder