加载程序集文件时出现问题

发布于 2024-09-14 17:41:05 字数 1012 浏览 3 评论 0原文

我有这个问题:

Error   23  The "AssemblyInfo" task could not be loaded from the assembly AssemblyInfoTask, Version=1.0.51130.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'AssemblyInfoTask, Version=1.0.51130.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.  CustomActions

有什么建议吗?

更新 #1 该问题是在我的 PC 中从 SVN 复制项目后出现的。项目是用VS 2005编写的。我已经安装了VS 2005。

更新#2安装了VS2005的SP1后,它仍然无法工作。

更新 #3 我已经像这样更改了项目文件中的行**

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

<!--  <Import Project="$(SolutionDir)eService.VersionNumber.targets" />
-->

,它开始工作。因此,正如我所见,问题出在 eService.VersionNumber.targets 文件中。一切都在另一台电脑上运行并且文件存在。

I have this problem:

Error   23  The "AssemblyInfo" task could not be loaded from the assembly AssemblyInfoTask, Version=1.0.51130.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'AssemblyInfoTask, Version=1.0.51130.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.  CustomActions

Any sugestions?

Update #1 The Problem was ocured after copying project from SVN in my PC. Project is written in VS 2005. And I have installed VS 2005.

Update #2 Having installed SP1 for VS2005, It is still not working.

Update #3 I have changed lines in project file like this**

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

<!--  <Import Project="$(SolutionDir)eService.VersionNumber.targets" />
-->

and it starts to work. So, as I see, the problem was in the eService.VersionNumber.targets file. All is working in another PC and the files exist.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〗斷ホ乔殘χμё〖 2024-09-21 17:41:05

尝试转到 Visual Studio 中的解决方案资源管理器,然后打开引用文件夹。
您应该在那里找到旁边带有警告标志的 AssemblyInfoTask。
单击 AssemblyInfoTask 引用并检查属性窗口。在那里您可以找到 Visual Studio 查找程序集的路径。
确保 AssemblyInfoTask 程序集位于 Visual Studio 正在查找的位置,或者删除引用并使用新的正确路径再次添加它。
如果这是项目参考,您需要确保该项目位于您的解决方案中并且构建顺序正确。

Try go to solution explorer in Visual Studio, then open the references folder.
There you should find AssemblyInfoTask with a warning sign next to it.
Click the AssemblyInfoTask reference and check the properties window. There you can find the path where Visual Studio looks for the assembly.
Either make sure the AssemblyInfoTask assembly is where Visual Studio is looking, or remove the reference and add it again with a new correct path.
If this is an project reference you need to make sure that project is in your solution and that the build order is correct.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文