dcsimg
Results 1 to 6 of 6

Thread: Open folder as a solution in Visual Studio

  1. #1

    Thread Starter
    Member
    Join Date
    May 2018
    Posts
    41

    Open folder as a solution in Visual Studio

    Hi, this is off the wall question, so I have a website code that has been passed on from person to person, it's not for a site that is required.
    I was just wondering how to open it in VS2015 Communinty ed, it is just a folder name "http", it has files with prefix of VB and ASPX, it also has a web.config file.
    It has no proj file. Or is there another software that can open it, preferably free, and emulate the IIS.

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    34,297

    Re: Open folder as a solution in Visual Studio

    There once was a project, but it sounds like that is a thing of the past. Nothing you mentioned sounds like it should be difficult to open. Those files will all open in NotePad, let alone VS, but each would open as an individual file, not as a project. That may be all you need, depending on what your ultimate objective is. Alternatively, you could probably make a new project and just import the various pieces as existing items.
    My usual boring signature: Nothing

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    4,258

    Re: Open folder as a solution in Visual Studio

    it has files with prefix of VB and ASPX, it also has a web.config file
    Do you really mean "Prefix" (that would be the first part of the file name) or do you mean file extensions (like .exe)? Is there .sln file extentions?

  4. #4
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,277

    Re: Open folder as a solution in Visual Studio

    What you've been handed is called a "website" which is a type of VS project where there is no solution (.sln) or project (.vbproj) files, what you need to do is open Visual Studio and click File -> Open Website (Shift+Alt+O) then you will navigate to the root folder and VS will open it very similar to an actual project.

    That being said, one of the first things you should consider is converting it to a Project so you get the .sln and .vbproj files but also better performance because the server side files are compiled in solutions.

  5. #5
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    103,444

    Re: Open folder as a solution in Visual Studio

    Further to what JB posted, in VS 2015, you can select 'File' -> 'New' -> 'Web Site' to create what you have there or you can select 'File' -> 'New' -> 'Project' and then 'Installed' -> 'Templates' -> 'Visual Basic' -> 'Web' -> 'ASP.NET Web Application (.NET Framework)' to create a "proper" web application with solution and project files. In VS 2017, they no longer have the first choice on the main menu but, instead, you have to select 'Previous Versions' under the 'Web' option in the 'New Project' dialogue. Basically, web sites are deprecated and should be avoided if possible. Web applications have a number of advantages, not least of which is that they won't be removed from VS in the future as web sites likely will.

  6. #6
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    103,444

    Re: Open folder as a solution in Visual Studio

    Quote Originally Posted by JuggaloBrotha View Post
    That being said, one of the first things you should consider is converting it to a Project so you get the .sln and .vbproj files but also better performance because the server side files are compiled in solutions.
    With that in mind:

    Walkthrough: Converting a Web Site Project to a Web Application Project in Visual Studio

    Other resources:

    https://www.bing.com/search?q=visual...Z2ch**ODyKUZgs

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width