Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are project settings in a Visual Studio website actually stored?

Working with a website (as opposed to a web application) in VS2010 so there is no csproj file. Right-clicking on the "Site" node in Solution Explorer and choosing "Property Pages" brings up a dialog with References, Build, Accessibility, Start Options, MSBuild Options and Silverlight Applications. You can make changes in these pages, close Visual Studio, turn off the computer, go home, spend quality time with your family, get a good night's sleep, return to work the next morning, turn your computer on, make a coffee, shoot the breeze about last night's episode of Fringe, log in, start up Visual Studio, open that website, and PRESTO! Most of those settings are still there.

This, despite the fact that there is no trace of those settings anywhere outside the hallowed pixels of the dialog box itself. Certainly not in any files in the website folder. Not in the solution file, for solution file there is none. A slightly desperate search of the Registry found nothing. Where are these settings being persisted? Are they stored in the cloud? Written into the gaps between bytes in the NTFS file system? Perhaps sent over TCP port 666 into the far-flung reaches of Hell itself, to be scratched with hot, rusty nails into the tortured flesh of the eternally-damned by impassive demons with dead, black eyes.

Any advice much appreciated.

like image 827
Mark Rendle Avatar asked Nov 18 '11 17:11

Mark Rendle


People also ask

Where is project Settings Visual Studio?

In Visual Studio, you can access project settings by right-clciking the projects node in Solution Explorer, and choosing "Properties" from the context menu (not to be confused with the "Properties" folder that is in some Elements projects).

Where are Visual Studio project properties stored?

You'll find the Visual Studio project files in a locale-specific folder under the base directory, %VSINSTALLDIR%MSBuild\Microsoft\VC\<version> . The <version> is specific to the version of Visual Studio. It's v160 for Visual Studio 2019. Properties are also stored in any custom .


1 Answers

There is an SLN file, just not where you expected it. For Web Site projects they are created in your default Projects location e.g. C:\Users\username\Documents\Visual Studio 2010\Projects\YourWebSite\YourWebSite.sln (or wherever you have your default Projects location set up in Tools/Options/Projects and Solutions).

Great aren't they these website projects? What an awesome idea they were.

like image 106
Duncan Smart Avatar answered Oct 12 '22 01:10

Duncan Smart