我想在2009年德爾福我使用的MSBuild與.NET 3.5「錯誤MSB4040有項目沒有目標」使用的MSBuild + Delphi2009
一個項目的構建自動化
我只需撥打:
Z:\Server>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild "BestSellerAppServer.g
roupproj" /target:Build
而得到這樣的:
Build started 27/08/2009 01:15:45 p.m..
Project "Z:\Server\BestSellerAppServer.groupproj" on node 0 (Build target(s)).
Project "Z:\Server\BestSellerAppServer.groupproj" (1) is building "Z:\Server\Be
stSellerAppServer.dproj" (2) on node 0 (default targets).
Z:\Server\BestSellerAppServer.dproj : error MSB4040: There is no target in the
project.
Done Building Project "Z:\Server\BestSellerAppServer.dproj" (default targets) -
- FAILED.
Done Building Project "Z:\Server\BestSellerAppServer.groupproj" (Build target(s
)) -- FAILED.
Build FAILED.
"Z:\Server\BestSellerAppServer.groupproj" (Build target) (1) ->
"Z:\Server\BestSellerAppServer.dproj" (default target) (2) ->
Z:\Server\BestSellerAppServer.dproj : error MSB4040: There is no target in th
e project.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.06
我編譯罰款IDE中。
我發現這個http://huwk.blogspot.com/2009/02/msbuild-fails-to-compile-delphi-2009.html,但沒有解決問題。
謝謝,那就是訣竅。 – mamcx 2009-08-28 00:54:40
是的,包括更新PATH變量到MSBuild.exe! – Nashev 2017-06-15 16:01:22