I had an issue with .suo file where Visual Studio retrieving an incorrect path to a project from old location after I moved the files to new location.

I have tried below things but didn’t work
• Removing and re-adding the project from the correct location. An error message comes up saying The project file at C:\My Projects\ExampleSolution\ExampleProjectWrong\ExampleProjectCorrect.csproj could not be found.
• Manually editing the .sln file to ensure all references to ExampleProjectCorrect.csproj have the correct paths.
• Doing a find in files on the solution directory for both the correct and incorrect paths, to try and track down where studio is hiding the incorrect path.
• Deleting the cache directories for VS and TFS

At last I found that .suo is storing all reference and vs is pointing to .suo file only even you changed to new location. Deleted .suo file and added new location, it’s now working fine.

Remember, checking .suo to TFS may cause lot of issues.

Thanks Phani Abburi for the help. Hope this might be useful in some where


Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Fake DB

How to do unit testing for media items in Sitecore + xUnit testing : Fake DB

Unit testing in Sitecore is a tricky one since you need create an items in Fake dB. I didn’t find much information about Media items unit testing and below piece of code may help you! Read more…

Fake DB

PageContext item in Sitecore Fake DB + Unit test cases

I tried to set PageContext using  RenderingContext.EnterContext but didn’t work using (RenderingContext.EnterContext(new Rendering(), contextItem)) { I have set it using  ContextService.Get().Push(pageContext); Here is the code, which may help you using (Db db = new Db using (Db Read more…

Sitecore 8.2

Mocking a reference field in Sitecore Fake DB for Unit test cases

I’m working on Unit test cases and mocking a reference field could be a complex task. Here is the code, which may help you [Fact] public void ReferenceFieldMockingTest() { ID newTemplateId = ID.NewID; ID referenceItemId Read more…