Question

I have an F# project in Visual Studio 2012 and I'm trying to reference a specific version of certain assemblies. However, whenever I compile and run the application, the references change to a newer version.

I can remove all references then add them back like this: Before build

Then after I compile and run it once, if I go back to the reference manager, I see this: After build

What's happening here and is there any way to prevent it?

Was it helpful?

Solution

I have seen this once with Office references in VS2012.

I think for some reason the change is not persisted back to the project file. And the compiler uses the file, which is reloaded when you check the references

The answer was to right click -> unload the project, then right-click again and edit the project file. By manual inspection, make sure the references are OK. Then just save the file and you should be good to go.

This bug in VS has been corrected now

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top