kheLthusad
kheLthusad

Reputation: 51

Visual Studio keeps asking to "save file as"

Why does my project in Visual Studio keep asking me to "save file as" though the file already exists?

Upvotes: 5

Views: 5230

Answers (3)

ewolfman
ewolfman

Reputation: 361

Could be caused by differences in VS versions/updates and the project/sln files. If you are working in a team then perhaps not all team members have the same VS and update.

For example if the project/sln file is stored using version 14.0.25420.1 (team member #1)

In the project file you will see something like this: VisualStudioVersion = 14.0.25420.1

But your VS has a different version 14.0.25123.0 (team member #2), VS will attempt to change the version of the project/sln file which is why it asks to save it.

Upvotes: 0

pb.
pb.

Reputation: 461

Following on from @AdamZuckerman's answer:

To fix this issue, I've granted my user full control of the affected files which had (somehow!) been set to read/execute for my user.

Upvotes: 0

Adam Zuckerman
Adam Zuckerman

Reputation: 1641

The file you are attempting to overwrite is either write protected (O/S level) or opened with a write lock by another application than Visual Studio.

Several version control applications will mark the file read only at the O/S level to prevent accidental changes to the file. TFS and VSS come to mind.

Upvotes: 1

Related Questions