0

我正在设置一个新的构建服务器。由于运行 32 位 msbuild 时出现此错误,我无法构建项目:

(Build target) ->
ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format. [c:\code\Mobile.metaproj]

32 位 msbuild 调用:

c:\code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /Mobile -p Mobile\ -f -d PrecompiledWeb\Mobile\

我通过使用 64 位版本找到了一种解决方法:

E:\code>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v /Mobile -p Mobile\ -f -d PrecompiledWeb\Mobile\

使用 64 位版本的 msbuild 移动站点构建良好,但银灯项目将无法构建。

这是第22条!!!

如何告诉 32 位 msbuild 调用 64 位 aspnet_compiler?

如何更正 32 位 aspnet_compiler?

4

0 回答 0