🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.commandlinetools
Article #199

Re: msbuild fails to compile project (delphi 2009)

#199
From: huwk
Date: Tue, 10 Feb 2009 06:54
32 lines
2454 bytes
On 2月9日, 上午10時05分, huwk <bertc...@gmail.com> wrote:
> I have problem compiling a project from command line using msbuild.
> how can i solve it??
>
> D:\Test>msbuild Test.dproj
> Microsoft (R) Build Engine Version 2.0.50727.3053
> [Microsoft .NET Framework, Version 2.0.50727.3082]
> Copyright (C) Microsoft Corporation 2005. All rights reserved.
>
> 已經開始建置於 2009/2/9 上午 10:00:00。
> __________________________________________________
> 專案 "D:\Test\Test.dproj" (預設目標):
>
> D:\Test\Test.dproj : error MSB4040: 專案中沒有目標。  ( There is no target in
> the project.)
>
> 專案 "Test.dproj" 建置完成 -- 失敗。 (fail)
>
> 建置失敗。
> D:\Test\Test.dproj : error MSB4040: 專案中沒有目標。
>     0 個警告
>     1 個錯誤  (one error)
>
> 經過時間 00:00:00

I found the problem!
Set BDS before call msbuild!
http://huwk.blogspot.com/2009/02/msbuild-fails-to-compile-delphi-2009.html#links
Technical Details
Message-ID: <22afb671-fd7c-4666-81c5-ece31412a704@40g2000prx.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!40g2000prx.googlegroups.com!not-for-mail
References: <bf930fdd-24e5-46ad-9709-2a25384aa7f8@d36g2000prf.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,fbb62c0a4bbdcc3a
X-Google-Attributes: gidff8f1,domainid0,public,usenet
X-Google-Language: ChineseT,BIG5
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!40g2000prx.googlegroups.com!not-for-mail
From: huwk <bertccyu@gmail.com>
Newsgroups: borland.public.delphi.commandlinetools
Subject: Re: msbuild fails to compile project (delphi 2009)
Date: Mon, 9 Feb 2009 22:54:54 -0800 (PST)
Organization: http://groups.google.com
Lines: 32
Message-ID: <22afb671-fd7c-4666-81c5-ece31412a704@40g2000prx.googlegroups.com>
References: <bf930fdd-24e5-46ad-9709-2a25384aa7f8@d36g2000prf.googlegroups.com>
NNTP-Posting-Host: 61.218.133.91
Mime-Version: 1.0
Content-Type: text/plain; charset=Big5
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234248894 3855 127.0.0.1 (10 Feb 2009 06:54:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 10 Feb 2009 06:54:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 40g2000prx.googlegroups.com; posting-host=61.218.133.91; 
 posting-account=SCsvvQkAAAD9I13sCV6HKAGKmT9uYXpg
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
 GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET
 CLR 1.1.4322),gzip(gfe),gzip(gfe)