• 0

Default Build Directory for Visual C# Express?


Question

Well i wasted like an hour making a small app to analyze some of the systems diagnostics and it looked great and all, so i clicked "Build" and it said that the build succeeded. After that visual C# suddenly closed on me... I thought I was somewhat safe since I built it but the files are nowhere to be found. I have already looked in the projects folder in My Documents\Visual Studio 2008...

is there a temp dir where i can find project files or am I screwed by MS once again?

Edited by Tech God
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

When you create a new project, the project and its files are automatically created in My Documents\Visual Studio 2008\Projects\ProjectName folder. If it's not there, then chances are you created the project elsewhere. Search for *.csproj files. You can also try for *.sln files.

Link to comment
Share on other sites

  • 0

Did you save the project? Visual Studio will use a temporary directory until you save the project for the first time. It's actually a useful feature for those who want to do some quick dev work

Link to comment
Share on other sites

  • 0
Did you save the project? Visual Studio will use a temporary directory until you save the project for the first time. It's actually a useful feature for those who want to do some quick dev work

It does? Before I posted I opened up Visual C# Express, created a project, and checked the Projects folder. Everything's there. My installation is stock.

Link to comment
Share on other sites

  • 0
It does? Before I posted I opened up Visual C# Express, created a project, and checked the Projects folder. Everything's there. My installation is stock.

There is an option somewhere to not save your projects until you specifically hit "save". You're right though, on stock install, it normally doesn't do that. But you'll never know with microsoft :p

As been mentioned, try searching for .csproj files. It may be in your temp, provided that VC# haven't deleted it the next time you ran it...

Link to comment
Share on other sites

  • 0

Hm... it seems it saves all built files to a temp dir and deletes that folder upon close. No worries though, i used a data recovery tool to get back my entire project (except for the form design, it was overwritten :( ).... but i can recreate that easily.... it was the code I wanted. Gotta love windows filesystems.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.