简体   繁体   中英

F# project silently updates my references

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: 在构建之前

Then after I compile and run it once, if I go back to the reference manager, I see this: 建成后

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM