Results 1 to 3 of 3

Thread: [VS2008]Adding new project item

  1. #1

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Question [VS2008]Adding new project item

    How to add a new project item in Visual Studio 2008 with a different behavior?
    What I need to achieve is add an XML item which points to the several class files or a directory that contains these class files and when you compile it, these classes will be compiled too.
    Same as what happens to the Service Reference.

    Fore example:
    I have a special folder in my project named as "ActiveRecords" and under it is a folder named "MyDB" which contains several XML files and class files(.cs or .vb).
    Every time I define a new class in the main XML, it can be seen throughout my project and will be included in the compiled binaries.


    Thanks for any help.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [VS2008]Adding new project item

    I don't know the answer to your question but, if I wanted to know, I'd go here first:

    http://social.msdn.microsoft.com/Sea...%20studio&ac=1
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: [VS2008]Adding new project item

    Thanks for the response.
    I think what I'm looking for is about template and its build action.
    I'll try them first and give feedback if it is what I want.

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