Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / January 2006

Tip: Looking for answers? Try searching our database.

EnvDTE: Unwanted code behind pages via AddFromFileCopy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johan - 15 Jan 2006 09:04 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.