VSTO 和清单文件不是从命令行创建的

vsto and manifest files are not created from the command line

提问人:BobD 提问时间:11/3/2023 更新时间:11/3/2023 访问量:10

问:

我有 2 个来自 VStudio 2010 for Excel 加载项的旧 c# VSTO 项目。 这两个项目都是在 VStudio 2010 中编译的,并分别创建 4 个文件:.dll、.pdb、.vsto、.manifest。 这两个项目都从 msbuild .Net 4.0 命令行编译和创建指定的文件。(“C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe”...)

主产品由 BuidTools VisualStudio 2019 (msbuild2019) 中的 msbuild 从命令行编译,密钥为 /p:VisualStudioVersion=“11.0” (“C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild.exe” ... /p:VisualStudioVersion=“11.0...”) 从 msbuild2019 命令行编译 2 个项目之一,并创建整个文件集。

第二个项目从 msbuild2019 命令行编译,没有错误,但不创建 .vsto 和 .manifest 文件。

在哪里寻找问题?

对第二个问题项目的 msbuild40 和 msbuild2019 编译的诊断级别日志的分析显示

  • 正如预期的那样,VSToolsPath 是不同的,
  • msbuild2019 日志至少缺少以下字段: DeploymentManifestExtension DeploymentManifestFileName DeploymentManifestWithPath DeploymentManifestWithPathForPublishing DeploymentManifestWithPathPublished VSTO_DeploymentFileMappingExtension VSTO_ProjectType

ApplicationManifestFileNameCollection ApplicationManifestWithPathCollection ... /

C# VSTO 清单

评论


答: 暂无答案