[英]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: 我们最近迁移到了.NET 4.5.2,现在我们的建模项目已发出如下警告:
The primary reference "XXX" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework.
无法解析主引用“ XXX”,因为它是根据“ .NETFramework,Version = v4.5.2”框架构建的。 This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
此版本比当前目标框架“ .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.
它没有我可以访问的常规项目属性UI。 Nor does the .modelproj file have a TargetFrameworkVersion node I could hand-edit.
.modelproj文件也没有我可以手动编辑的TargetFrameworkVersion节点。
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. 我致电Microsoft技术支持。 This is a bug in VS2012 but it has been fixed in VS2013.
这是VS2012中的错误,但已在VS2013中修复。 One more reason to upgrade to latest!
升级到最新版本的另一个原因!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.