简体   繁体   English

如何在Visual Studio建模项目上更改目标框架?

[英]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.

相关问题 如何在Mac的Visual Studio中更改目标框架? - How can I change the target framework in Visual studio for Mac? 如何更改visual studio项目的目标? - How to change target of visual studio project? 如何在Visual Studio 2017项目(新的.csproj文件格式)中设置`OutputPath`,而不会使目标框架混乱已解析的路径? - How do I set `OutputPath` in a Visual Studio 2017 project (new .csproj file format) without the target framework cluttering the resolved path? Visual Studio - 多目标时更改目标框架 - Visual Studio - Change target framework when multitargeting 如何在使用 Visual Studio 时为 .net 框架 4.7.2 项目创建 SDK 样式项目? - How do I reate an SDK style project for a .net framework 4.7.2 project in using visual studio? 如何在Visual Studio 2010最终建模项目中创建属性? - How can I create properties in Visual studio 2010 ultimate modeling project? Visual Studio扩展项目:如何更改目标Visual Studio版本? - Visual Studio extension project: how to change target Visual Studio version(s)? Visual Studio中的“目标框架” - “Target Framework” in Visual Studio 如何在 Visual Studio 2019 中创建 .NET framework 4.6 版本的 XUnit 项目? - How do I create .NET framework 4.6 version of XUnit project in Visual Studio 2019? 如何在visual studio 2013中设置“目标框架”? - How to set the “Target Framework” in visual studio 2013?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM