简体   繁体   中英

How do I change the Target Framework on a Visual Studio Modeling Project?

We recently migrated to .NET 4.5.2 and now our modeling project has warnings like this one:

The primary reference "XXX" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

I can't figure out how to change the target framework for the modeling project. It doesn't have a normal project properties UI I can access. Nor does the .modelproj file have a TargetFrameworkVersion node I could hand-edit.

I would ignore the warnings, except layer diagram validation is broken (validation succeeds when it shouldn't), and layer diagram validation is our primary use of this project. Any ideas?

I called Microsoft Technical Support. This is a bug in VS2012 but it has been fixed in VS2013. One more reason to upgrade to latest!

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