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 / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

How do I modify the built-in templates in VS2005?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Silver - 29 Aug 2007 18:44 GMT
Hello,

Is it possible to modify the templates that come with VS2005? I have
searched all over the place, but can't find them anywhere. I know I can
make my own, but I would like to know if I can modify the ones that are
already there.

TIA

Signature

Alan Silver
(anything added below this line is nothing to do with me)

Juan T. Llibre - 29 Aug 2007 19:18 GMT
re:
!> Is it possible to modify the templates that come with VS2005?

VS 2005 has over 100 types of templates.

Which VS 2005 template do you want to modify ?

If you mean project templates, they're located in :

drive:\VSInstallDirectory\Common7\IDE\ProjectTemplates

If you mean web project templates, they're at :
drive:\VSInstallDirectory\Common7\IDE\ProjectTemplates\Web

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> Hello,
>
> Is it possible to modify the templates that come with VS2005? I have searched all over the place, but can't find them
> anywhere. I know I can make my own, but I would like to know if I can modify the ones that are already there.
>
> TIA
Alan Silver - 30 Aug 2007 09:17 GMT
>re:
>!> Is it possible to modify the templates that come with VS2005?
>
>VS 2005 has over 100 types of templates.
>
>Which VS 2005 template do you want to modify ?

Sorry, forgot to mention. I specifically want to modify the templates
for a new web form when using C#.

>If you mean project templates, they're located in :
>
>drive:\VSInstallDirectory\Common7\IDE\ProjectTemplates
>
>If you mean web project templates, they're at :
>drive:\VSInstallDirectory\Common7\IDE\ProjectTemplates\Web

I actually meant a specific item template, which I found in...

C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplates\Web\CSharp\1033

In that folder were some zip files with the item templates inside. I
unzipped WebForm.zip and modified the files inside, then zipped it back
up again. However, when I created a new web form from VS2005, I got the
same old template as before.

I tried modifying other templates as well, but none of my changes showed
up.

Any idea what I did wrong? Thanks for the reply.

>Juan T. Llibre, asp.net MVP
>asp.net faq : http://asp.net.do/faq/
[quoted text clipped - 12 lines]
>> Alan Silver
>> (anything added below this line is nothing to do with me)

Signature

Alan Silver
(anything added below this line is nothing to do with me)

Laurent Bugnion, MVP - 30 Aug 2007 20:01 GMT
Hi,

> I actually meant a specific item template, which I found in...
>
[quoted text clipped - 10 lines]
>
> Any idea what I did wrong? Thanks for the reply.

VS loads the templates in a temp folder, and opens them from there. If
you want to modify an existing, already loaded template, it's not easy
because you have to localize all the temp copies.

I rather recommend you to create a new template based on the one you
want to modify. Simply create a new project, add or modify the files
like you need, and then choose the menu File / Export template. During
the export, there is an option to automatically import the newly created
template in your version of VS2005.

HTH,
Laurent
Signature

Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Alan Silver - 02 Sep 2007 15:01 GMT
>Hi,

Hello,

<snip>
>VS loads the templates in a temp folder, and opens them from there. If
>you want to modify an existing, already loaded template, it's not easy
>because you have to localize all the temp copies.

So when does it ever use the files in the templates folder? Seems
pointless having them if it uses the ones in the temp folder.

Also, what happens if I delete the temp folders? Won't it just recreate
them from the files in the templates folder, including the ones I
modified?

This all seems rather complex and convoluted. I'm sure there's a good
reason for it, but I can't see what!

>I rather recommend you to create a new template based on the one you
>want to modify. Simply create a new project, add or modify the files
>like you need, and then choose the menu File / Export template. During
>the export, there is an option to automatically import the newly
>created template in your version of VS2005.

Phew, what a pain! Why can't I just modify the template supplied? This
seems like a very messy way to do it. All I want to do is change the
doctype!

Thanks for the reply

Signature

Alan Silver
(anything added below this line is nothing to do with me)


Rate this thread:







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.