Visual Studio 2012 says website project's project file is edited outside of environment
Asked Answered
I

1

8

After installing Visual Studio 2012 and opening/upgrading a Visual Studio 2010 solution from Team Foundation Server that contains two "website"-type projects I keep getting the message that "The project 'website' has been modified outside the environment" with the option to reload every time I add or remove a file to the "website" project.

This is odd, because as far as I know this type of project does not have a project file and thus it is impossible to edit it, in addition, nobody is editing anything outside of the environment.

Does anyone know what causes this and how to fix it?

Infra answered 28/8, 2012 at 19:17 Comment(0)
I
16

To at least partially answer my own question. You can solve this by closing Visual Studio 2012 and then deleting the .suo file for the solution. It should be sitting right next to the solution file and has the same name.

After deleting this file I reopened the solution and VS2012 went to get the entire solution from TFS again. When it was done, the problem was gone!

Infra answered 28/8, 2012 at 19:17 Comment(4)
This fixed it for me, but what caused it?Noreen
I'm not sure. It seems to come back at random intervals too making you do it all over again :sInfra
I noticed I had two .suo-files: .suo and .v11.suo. So maybe this is related by working in both VS2010 and VS2012? (Or by opening 'old' VS2010-solutions in VS2012 the first time.)Telmatelo
I have only the .v11.suo file so I don't think it's related to that.Infra

© 2022 - 2024 — McMap. All rights reserved.