CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Location
    Maryland,USA
    Posts
    20

    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

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    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.

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    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.

  4. #4
    Join Date
    Jun 2005
    Location
    Maryland,USA
    Posts
    20

    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

  5. #5
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    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
  •  





Click Here to Expand Forum to Full Width

Featured