Hi,
I am using the EnvDTE automation interface to create a VS project.
The problem I am having is that when I add an ".aspx" file to a project then
VS automatically generates a code behind page.
In the IDE if you add an .aspx file to a project then it will prompt you
whether or not you want a code behind page generated (it wants to create a
class for a webform). If you say no in this dialog then the .aspx file will
get added without modifications.
How can I do this using the EnvDTE interface (i.e. how can I prevent it from
modifying my aspx file and generating a code behind page, I just want to add
the file).
Thanks
Johan
Johan - 18 Jan 2006 02:33 GMT
If I rename my Visual Studio template directories then everything works fine,
since there are no templates that can be applied.
I need to add both directories and individual files to a project. Especially
the directory is problematic, since the addFromDirectory will recursively add
everything (addFolder doesn't work, since the folder already exist).
The addFromFileCopy which is not supposed to apply templates does not seem
to work either (i.e. it still applies the templates).
Is there someone from the MSDN managed group that can look into this and
find an API that either disables the wizard/template or some other mechanism
that will allow me to add files without modification.
Thanks
Johan
> Hi,
>
[quoted text clipped - 13 lines]
> Thanks
> Johan