Results 1 to 13 of 13

Thread: [RESOLVED] new website not placed inside solution

  1. #1

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Resolved [RESOLVED] new website not placed inside solution

    when i create new website visual studio 2008 not placing it inside a solution. this prevents me to add more projects such as class library. does any one know why?
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: new website not placed inside solution

    Hey,

    A new Web Site, doesn't use a solution file to manage it. Visual Studio handles this as it's own entity. What you are after is a new Web Application. This will let you add other projects that are related to your Web Application, such as class libraries.

    Gary

  3. #3

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: new website not placed inside solution

    Hi Gary,
    if you remember from my last thread i used Website and not web application and i still was able to create Class Library in it, and even when i started new web application i still couldn't find the option to add class library.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: new website not placed inside solution

    Ah, hold on, my bad. Looks like Visual Studio creates the solution file for you, and puts it into your local Documents and Settings folder. Once you have the web site open, go to Solution Explorer, right click on the solution file, then select Add | New Project. From there you will be able to select a class library project. If you already have a project created somewhere, you can choose to Add an Existing Project.

    You can move the solution file from the Documents and Setting folder if you want, to somewhere more sensible, however, you will have to update the references to the various projects.

    Gary

  5. #5

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: new website not placed inside solution

    Hi gary,

    That's exactly what i mean i don't have the solution file created for me all i see is the new website name at the top of the Solution Explorer, that's really weird.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: new website not placed inside solution

    Hey,

    What version of Visual Studio do you use again?

    Gary

  7. #7

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: new website not placed inside solution

    thanks Gary,
    i will post the version tomorrow morning when i'm back at work.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: new website not placed inside solution

    Hey,

    I did a quick test last night, as I now have Visual Web Developer installed on my machine here, and I suspect that you are using this. When I created a Web Site, within Visual Web Developer, I was not then able to add other projects alongside it. I can only assume that this is a limitation of this version, as I can do this within the full version of Visual Studio.

    Gary

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: new website not placed inside solution

    It should be available in all versions.

    Tools
    Options
    Projects and Solutions
    Always show solution

  10. #10

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: new website not placed inside solution

    Quote Originally Posted by mendhak View Post
    It should be available in all versions.

    Tools
    Options
    Projects and Solutions
    Always show solution
    that's sound like the solution.

    i'll let you know tomorrow when i'll be back at work.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  11. #11
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: new website not placed inside solution

    Hey,

    If you are using Visual Web Developer Express, remember to check the "Show All Settings" checkbox in the bottom left hand corner, or you won't see the option that Mendhak has mentioned.

    Gary

  12. #12

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: new website not placed inside solution

    @Gary, I'm using VS2008 pro but thanks for the tip!

    @mendhak, Thank you very much, that was the problem!
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  13. #13
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: new website not placed inside solution

    Hey,

    Ah, ok, no probs.

    Remember to mark resolved

    Gary

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