|
-
June 20th, 2005, 01:28 PM
#1
Project templates in C#
Hi All,
I am trying to create a project template in C#.It is similar to the template for creating an ASP.Net web service but the only difference is that my codebehind cs file derives from my Custom class and not from System.Web.Services.WebService(which is the default).Can anybody tell me how I can do that?
Any help would be appreciated.Thanks in advance.
CafeDreamz
-
June 21st, 2005, 01:30 AM
#2
Re: Project templates in C#
I don't knoqw exactly what you want to do, but you can put all the classes in a Class Library, and then each application will reference to that library, and use the classes, or inherit from them in order to extend them.
-
June 21st, 2005, 02:34 AM
#3
Re: Project templates in C#
This is not bad solution. But if you realy want to modify template, edit C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\DesignerTemplates\1033\NewWebServiceCode.cs (C:\Program Files\Microsoft Visual Studio .NET 2003\ change according to wherever you have installed VS).
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
-
June 21st, 2005, 09:18 AM
#4
Re: Project templates in C#
This is what I am looking for:
I create a custom project template(custom web service project).When I create an instance of it, it should open up a web service project with say a service1.asmx and service1.asmx.cs apart from the other files.In a default web service project the service1.asmx.cs will inherit from System.web.services.webservice,but in my case I want my service1.asmx.cs to inherit from MyCustomService and not System.web.services.webservice.
I wish to know where i need to make changes to get what I want.
I dont want to change the default settings because then all the web service projects will inherit from MyCustomService instead of System.web.services.webservice.
Any help would be appreciated.
CafeDreamz
-
June 22nd, 2005, 02:17 AM
#5
Re: Project templates in C#
In the folder "C:\Program Files\Microsoft Visual Studio .NET 2003\VC#" and its subfloder is everythink you need to play with. I have tried the issue several tens of minutes and I dave it up. It seems, that not all is in files, but few rules is also hardcoded to IDE itself. But I hope you will succeede.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|