Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio keeps asking to save project file as

I am using VS 2010 and recently I moved some files around and changed paths etc.

The solution still compiles correctly and all files are able to be loaded/compiled without error however just about every time I go to compile after a change it gives me the save as dialog and asks me to save one of the projects, if I try to give it a new name or something the dialog does not exist nothing I do can make it exit apart from pressing cancel.

If I do a build straight after cancelling it works fine and I'm not presented with the save as dialog. I have verified that the project file is not read only.

Any ideas as to whats going on here.

The solution is stored in TFS 2008

like image 805
Daniel Powell Avatar asked Jun 29 '11 00:06

Daniel Powell


People also ask

What is Visual Studio .VS file?

The vs folder is a folder that is created automatically by Visual Studio when you create new C# projects.. vs folders contain information about breakpoints, opened documents, and the current state of the solutions.

How do I save a Visual Studio project to my desktop?

Click File > Save As. Under Choose a Location, choose Computer or a web location to save the file. Under Choose a Folder, click a folder at the location. In the File name box, type the project name.

How do I save my work in Visual Studio?

From the File menu, choose Save File As, and then click the drop-down button next to the Save button. The Advanced Save Options dialog box is displayed. Under Encoding, select the encoding to use for the file. Optionally, under Line endings, select the format for end-of-line characters.


3 Answers

You need to run VS as administrator. (right click on VS Icon- Run as administrator)

like image 109
Mike Avatar answered Nov 06 '22 23:11

Mike


You need to do 2 things
1- remove the read-only tick from the project folder
2- when a save-as window prompts at build, just overwrite the project
next time you build, the window won't pop up

like image 29
Samer_Azar Avatar answered Nov 06 '22 23:11

Samer_Azar


Are the bindings in TFS set up correctly with the new location? TFS will mark files as read only unless they get checked in. It might have been marked as such before you moved everything around, and now, isn't being checked out properly.

like image 26
Paul McLean Avatar answered Nov 06 '22 23:11

Paul McLean