.net - msix 和多个目标框架不起作用
问题描述
我有多个目标框架的 wpf 项目
<TargetFrameworks>netcoreapp3.0;net48</TargetFrameworks>
在 vs2019 中,我创建了Windows Application Packaging Project
(MSIX 包)并添加了对我的项目的引用。
但是当我尝试构建打包项目时,我收到了这个错误:
error MSB4057: The target "GetTargetPathWithTargetPlatformMoniker" does not exist in the project.
error MSB4057: The target "GetTargetPath" does not exist in the project.
error MSB4057: The target "GetDeployableContentReferenceOutputs" does not exist in the project.
当我使用单个目标时,一切正常
<TargetFramework>netcoreapp3.0</TargetFramework>
解决方案
推荐阅读
- javascript - 如何在不使用数组 [键] 的情况下访问数组值?
- sql-server - SSIS 中的 OData 目标
- html - Angular 6:在使用公共 api 的数据库时创建我自己的数据库?
- angular - 具有多个条件和重定向的 Angular 防护
- numpy - 如何获得与contourf相对应的数组?
- sql-server - SSIS – 如何使用我的自定义日志提供程序获取自定义日志条目?
- model-binding - 模型绑定Asp net core 2.2
- local-storage - NGXS 和 LocalStorage:如何从本地存储中排除某些数据
- java - 在 mockito 测试用例中使用 @Value 属性
- javascript - 为什么闪亮的默认应用程序会导致 javascript 错误和警告?