Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is my sln file? 1

Status
Not open for further replies.

RonRepp

Technical User
Feb 25, 2005
1,031
US
Hi all:

New to 2008...even newer to ASP.

Building a web site that uses path of my.CurrentDirectory, and it keeps defaulting to C:\My Doc..\..\VStudio.

I want an SLN file in the directory where i start the project.

Any help will be greatly appreciated.

Thanks,

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.

My newest novel: Wooden Warriors
 
HI all:

I found it.

I know I'm ignorant here, but why doesn't it put the sln file in with the Website folder when you create a new project?

Thanks,

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.

My newest novel: Wooden Warriors
 
because the solution file has nothing to do with the website. the sln file is for the VS IDE to track projects and resources that are logically grouped together. you create the logical grouping by adding/removing said projects and resources. the actual output (website, assembly, console, win app, win service, etc) hasn't nothing to do with VS.

Think of it this way. if you use notepad and the .net compiler to write your application there would be no sln or proj* files.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Jason:

Is there a way, like in Options, to keep the sln file with the Website?

Much like, in WinForms, the sln file always goes with the app.

Thanks for the explanation. It actually made sense.



Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.

My newest novel: Wooden Warriors
 
Tools > Options
Expand Projects and Solutions in the tree view
Then select General in the tree view
 
if you are creating a website project then the solution file will be created under Projects and the website will be created under WebSites. I didn't care for the website solutions creating multiple assembly when compiling the website, so I switched over to Web Applications. not only do you get a single assembly. it put the website next to the solution.

here is the VS solution structure I use for all my projects
[tt]
/TheProject
/lib
3rd party tools go here. mbunit, castle, nhibernate, jquery, rhino, etc. each in there own directory
/src
/TheProject.Web
TheProject.Web.csproj
...files for the web site
/TheProject.Win
TheProject.Win.csproj
...files for a windows applicaiton
/TheProject.Core
TheProject.Core.csproj
...core functionality (domain, logic, etc.)
/TheProject.Test
TheProject.Test.csproj
...unit and integration tests
/TheProject.sln
[/tt]
any thing pertaining to the project is now within the TheProject directory. Moving forward I can copy/paste or zip, or version control the entire project with little effort.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top