Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我想用 5 个项目打开 solition 时,一个项目出现如下错误
找不到“\AssemblyInfoTask\Microsoft.VersionNumber.targets”。确认声明中的路径正确,并且该文件存在于磁盘上。
可能是什么问题呢 ?
项目中有一行引用了用于递增版本号的 MSBuild 任务。您不得安装 MSBuildExtensions。您可以安装 MSBuild(正确)或删除它(见下文)。
查找此行并将其删除:
<Import Project="$(MSBuildExtensionsPath)\Microsoft\AssemblyInfoTask\Microsoft.VersionNumber.targets">
请注意,您可能正在删除重要功能,因此您可能不想重新签入。