MSBuild无法在东京使用 [英] MSBuild does not work anymore with Tokyo

查看:109
本文介绍了MSBuild无法在东京使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个要分批编译的项目组.那里有100多个项目.

I have multiple project groups that I want to compile at batch. There are over 100 projects in there.

2010年,我们有了一个如下的"make"文件:

In 2010 we had a "make" file like this:

call "c:\Borland\RAD Studio\19.0\bin\rsvars.bat"
"c:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" /t:Clean,Build  Group1.groupproj 

在东京之下,它不再起作用. 我得到:

Under Tokyo it does not work anymore. I get:

C:\Borland\RAD Studio\19.0\Bin\CodeGear.Cpp.Targets(3695,5): error : Error: Unable to open file 'L_ER_FD.RES' [P:\Ent\_common\er\prj\l_er_fd.cbproj]

但是,项目组可以从IDE进行编译.
我们认为这与.vres文件(来自.rc)的创建有关,该文件由IDE在内存中创建,并且从未写入文件.

However, the project group compiles just fine from IDE.
We think it is related to the creation of the .vres file (from .rc) which are create in memory by the IDE and never written to file.

注意:
-我从C ++ Builder Tokyo尝试过此方法,但我猜它也发生在Delphi下.我会尽快进行测试.
-我有MSBuild v12.

Notes:
- I tried this from C++ Builder Tokyo but I guess it happens also under Delphi. I will test that soon.
- I have MSBuild v12.

推荐答案

我遇到了同样的问题,并且设法解决了这个问题.因此,我在Rad Studio的旧版本上使用了以下脚本,并且该脚本可以正常工作:

I had the same problem and I managed to get around it. So I had the following script on older version of Rad Studio and it was working:

call rsvars.bat
call msbuild Utils25.cbproj /t:Clean;Build /p:Configuration=Release /p:platform=Win32 > result.err

但是在Rad Studio 10.2.3上,这会产生像您一样的链接错误.经过大量测试,我发现如果您清理并在单独的msbuild调用上构建,则可以正常工作.因此,以下工作有效:

but on Rad Studio 10.2.3 this was producing me a linking error like yours. After a lot of testing I found that if you do clean and build on separate msbuild calls it works as expected. So the following works:

call rsvars.bat
call msbuild Utils25.cbproj /t:Clean /p:Configuration=Release /p:platform=Win32 > clean.err
call msbuild Utils25.cbproj /t:Build /p:Configuration=Release /p:platform=Win32 > build.err

这篇关于MSBuild无法在东京使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆