我写了一个自定义的msbuild任务,并用MSBuild 14.0 x64编译它。 写了msbuild场景以使用此任务并尝试使用相同的msbuild 14.0 x64运行它。但它失败了,错误:
build.proj(90,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'RefForTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
RefForTask是我的CustomTask.dll
的依赖项但是,如果我使用MSBuild 14.0 x86运行我的方案,它可以正常工作!
我做错了什么?