VSTS 托管代理无法加载 DLL MSB3246
VSTS hosted agent can't load DLL MSB3246
我们正在尝试在 VSTS 托管代理上移植我们的构建。我们有一堆 DLL 通过 git lfs 推送到远程。这些 DLL 在本地机器上运行良好。但是当我尝试 运行 在 VSTS 托管代理上构建时,其中一个 DLL 收到警告 MSB3246
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3246: Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'FooBar.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format
我们的 git lfs 中有 2 个 DLL。我在日志中没有看到其他 DLL success/failure 消息,所以不确定它是否工作正常或者它也可能有同样的问题(这个 DLL 可能首先破坏了东西)。
显然,我在引用此 DLL 中的代码时遇到错误。
Error CS0234: The type or namespace name 'Foo' does not exist in the namespace 'Bar' (are you missing an assembly reference?)
我在 https://social.msdn.microsoft.com/Forums/vstudio/en-US/f2d8d30f-62b0-476f-a28e-17e372b6c557/issues-with-build-on-hosted-build-controller?forum=TFService 上发现了类似的问题,但我们已经正确设置了 git 属性文件。
这里可能出了什么问题?有人已经解决了吗?
在 Get Sources 步骤中有一个特定的复选框来启用 git-lfs 支持。没有它,文件将被替换为 lfs 下载位置的占位符。当然,您不能针对这些进行编译。
我们正在尝试在 VSTS 托管代理上移植我们的构建。我们有一堆 DLL 通过 git lfs 推送到远程。这些 DLL 在本地机器上运行良好。但是当我尝试 运行 在 VSTS 托管代理上构建时,其中一个 DLL 收到警告 MSB3246
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3246: Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'FooBar.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format
我们的 git lfs 中有 2 个 DLL。我在日志中没有看到其他 DLL success/failure 消息,所以不确定它是否工作正常或者它也可能有同样的问题(这个 DLL 可能首先破坏了东西)。
显然,我在引用此 DLL 中的代码时遇到错误。
Error CS0234: The type or namespace name 'Foo' does not exist in the namespace 'Bar' (are you missing an assembly reference?)
我在 https://social.msdn.microsoft.com/Forums/vstudio/en-US/f2d8d30f-62b0-476f-a28e-17e372b6c557/issues-with-build-on-hosted-build-controller?forum=TFService 上发现了类似的问题,但我们已经正确设置了 git 属性文件。
这里可能出了什么问题?有人已经解决了吗?
在 Get Sources 步骤中有一个特定的复选框来启用 git-lfs 支持。没有它,文件将被替换为 lfs 下载位置的占位符。当然,您不能针对这些进行编译。