相关疑难解决方法(0)

如何在VS2017最终定位多个框架?

对于ASP.NET Core,我可以在一个Project.json中定位多个框架(例如netcoreapp1.1dnx451):

"frameworks": {
   "netcoreapp1.1": {
     "dependencies": {
       "Microsoft.NETCore.App": {
         "version": "1.1.0",
         "type": "platform"
       }
     },
     "imports": [
       "dotnet5.6",
       "portable-net45+win8"
     ]
   },
   "dnx451": {}
 },
Run Code Online (Sandbox Code Playgroud)

在Visual Studio 2017的最终版本中,我只能定位netcoreapp1.1或者dnx451,但我认为无法同时定位两者.

我尝试直接编辑csproj文件以通过设置<TargetFramework>netcoreapp1.1;dnx451</TargetFramework>或者甚至 <TargetFrameworks>netcoreapp1.1;dnx451</TargetFrameworks>在Visual Studio中添加第二个框架而由于不支持的框架而导致错误.

那么,如何同时针对netcoreapp1.1dnx451在一个项目在Visual Studio 2017的最终版本?

asp.net-core visual-studio-2017

12
推荐指数
1
解决办法
7076
查看次数

标签 统计

asp.net-core ×1

visual-studio-2017 ×1