MSBuild.exe is Microsoft's equivalent of NAnt and is the build engine in
VS 2005.  When you hit the compile button in VS 2005, the IDE is
invoking MSBuild.exe on the solution file.  Note that MSBuild.exe works
on VS 2005 solutions ONLY.  

You can test this by running MSBuild.exe on the command line.

C:> PATH=%PATH%;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
C:> Msbuild.exe /property:Configuration=Release /target:Build C:\Program
Files\OMEGA\siebel\src\Transport\Transport.sln


MSBuild.exe is in the .NET 2.0 SDK so you need to make sure your PATH
includes the .NET 2.0 SDK directory which is
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 on my machine.

Or you can specify the full path to MSBuild.exe using the exec task's
basedir attribute (see [1]).  So on my machine I could do:
<exec program="msbuild.exe"
basedir="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727">
   <arg value="/property:Configuration=Release"/> 
   <arg value="/target:Build"/>
   <arg value="C:\Program
Files\OMEGA\siebel\src\Transport\Transport.sln" />
</exec>

The <exec> task is basically just running a program with the parameters
you specify as if you had run it from the command line.
 
 
 
[1] http://nant.sourceforge.net/release/latest/help/tasks/exec.html


________________________________

        From: Kumar .S [mailto:[EMAIL PROTECTED] 
        Sent: Tuesday, October 17, 2006 12:36 PM
        To: Arnette, Bill
        Subject: Re: [NAnt-users] "Error loading GUID..." when using
<solution> task forVS2005
        
        
        One last question. I am not using msbuild. I was using nant
script directly to build .net applications. I am keeping two build which
I was using 
         
        Previously:
         

        <?xml version="1.0" encoding="utf-8" ?> 
        <project name="OMEGA" default="Run">
         <target name="Transport" description="this is builds the
solutions file"> 

         <solution configuration="release" solutionfile="C:\Program
Files\OMEGA\siebel\src\Transport\Transport.sln"
failonerror="true"></solution></target> 
          
         <target name="Run" description="Runs the entire process of
pushing develop to qa."> 
          
          <call target="Transport" />  
          
         </target>
        </project>

        
        Now after seeing you email. I changed it to.. 
         

        <?xml version="1.0" encoding="utf-8" ?> 
        <project name="OMEGA" default="Run">
        <exec program="msbuild.exe">
        <arg value="/property:Configuration=Release"/> 
        <arg value="/target:Build"/>
        <arg value="C:\Program
Files\OMEGA\siebel\src\Transport\Transport.sln" />
        </exec>

        </project>

         

        After changing to the EXEC its not working.. its saying
msbuild.exe is not available. Please tell me what I need to keep in
stead of msbuild.exe. I am not talking about path. I am only using nant.
directly nottin else. I am not using msbuild.exe.. So, please tell me.
Please Last question.


         
        On 10/17/06, Arnette, Bill <[EMAIL PROTECTED]> wrote: 

                I haven't done any VS 2005 work myself but you would do
something like 
                 
                <exec program="msbuild.exe">
                                   <arg
value="/property:Configuration=Release">
                   <arg value="/target:Build">
                   <arg value="myproject.sln">
                </exec>
                 


________________________________

                        From: Kumar .S [mailto:[EMAIL PROTECTED] 
                        Sent: Tuesday, October 17, 2006 11:26 AM 
                        To: Arnette, Bill
                        Subject: Re: [NAnt-users] "Error loading
GUID..." when using <solution> task forVS2005
                        
                         
                                                Hello Arnette, 
                         
                                             Can you send a sample
script using <exec> to build an nant project. I am new user of Nant.
Till now I developed all my applications using nant on VS 2003. Now, we
are moving to VS 2005. Please I am not a extensive user of nant. I have
little time, so I request you for a sample script. Please. 
                         
                        Regards,
                        Kumar
                        
                         
                        On 10/17/06, Arnette, Bill
<[EMAIL PROTECTED] > wrote: 

                                Nant does not support VS 2005 solution
files yet.  Use the <exec> task
                                to call msbuild on VS 2005 solution
files. 
                                
                                > -----Original Message-----
                                > From:
[EMAIL PROTECTED] 
                                > [mailto:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] On Behalf
                                > Of [EMAIL PROTECTED]
                                > Sent: Tuesday, October 17, 2006 6:14
AM
                                > To: nant-users@lists.sourceforge.net 
                                > Subject: [NAnt-users] "Error loading
GUID..." when using
                                > <solution> task forVS2005
                                >
                                > Hi
                                >
                                > Why can't nant find the GUID in the
project file? 
                                > We have migrated a project from VS
2003 to VS 2005. VS 2005 converted 
                                > the project file for us.
                                > I am using the latest 0.85 release
when I build.
                                >
                                > Part from the log file:
                                >      [exec]  [solution] Starting
solution build. 
                                >
                                >      [exec] BUILD FAILED - 0 non-fatal
error(s), 1 warning(s) 
                                >
                                >      [exec] Error loading GUID of
project
                                >
'c:\home\ros\v570\20061017\TietoEnator\Ros\DesktopWebClient\Ti
                                > etoEnator. 
                                > RoS.DesktopWebClient.csproj'.
                                >      [exec]     Couldn't locate
ProjectGuid in project 
                                >
'c:\home\ros\v570\20061017\TietoEnator\Ros\DesktopWebClient\Ti
                                > etoEnator.
                                > RoS.DesktopWebClient.csproj '
                                >
                                >
                                > Part of the new (VS 2005) .csproj
file:
                                > <Project DefaultTargets="Build" 
                                >
xmlns="http://schemas.microsoft.com/developer/msbuild/2003
<http://schemas.microsoft.com/developer/msbuild/2003> ">
                                >   <PropertyGroup>
                                >     <ProjectType>Local</ProjectType>
                                >
<ProductVersion>8.0.50727</ProductVersion>
                                >     <SchemaVersion>2.0</SchemaVersion>

                                >
<ProjectGuid>{8B9487D6-D6A0-4BCD-A78B-25CA33739757}</ProjectGuid> 
                                >     ...
                                >
                                >
                                > Part of the old (VS 2003) .csproj
file:
                                > <VisualStudioProject>
                                >     <CSHARP 
                                >         ProjectType = "Local"
                                >         ProductVersion = " 7.10.3077"
                                >         SchemaVersion = "2.0"
                                >         ProjectGuid =
"{8B9487D6-D6A0-4BCD-A78B-25CA33739757}" 
                                >     >
                                >     ...
                                >
                                >
                                > ---------------
                                > Richard Persson
                                > TietoEnator AS
                                >
mailto:[EMAIL PROTECTED] 
                                > Office: +47 21 70 75 46
                                > Mobile: +47 48 20 85 46
                                >
                                >
                                >
--------------------------------------------------------------
                                > -----------
                                > Using Tomcat but need to do more? Need
to support web 
                                > services, security?
                                > Get stuff done quickly with
pre-integrated technology to make
                                > your job easier
                                > Download IBM WebSphere Application
Server v.1.0.1 based on
                                > Apache Geronimo
                                >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;> 
                                > dat=121642
                                >
_______________________________________________ 
                                > NAnt-users mailing list
                                > NAnt-users@lists.sourceforge.net
                                >
https://lists.sourceforge.net/lists/listinfo/nant-users
<https://lists.sourceforge.net/lists/listinfo/nant-users> 
                                >
                                
        
------------------------------------------------------------------------
-
                                Using Tomcat but need to do more? Need
to support web services, security?
                                Get stuff done quickly with
pre-integrated technology to make your job easier 
                                Download IBM WebSphere Application
Server v.1.0.1 based on Apache Geronimo
        
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=12164
2> 
        
_______________________________________________
                                NAnt-users mailing list
                                NAnt-users@lists.sourceforge.net
        
https://lists.sourceforge.net/lists/listinfo/nant-users
<https://lists.sourceforge.net/lists/listinfo/nant-users> 
                                


                        
        
------------------------------------------------------------------------
-
                Using Tomcat but need to do more? Need to support web
services, security?
                Get stuff done quickly with pre-integrated technology to
make your job easier
                Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
        
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
                
                _______________________________________________
                NAnt-users mailing list
                NAnt-users@lists.sourceforge.net
                https://lists.sourceforge.net/lists/listinfo/nant-users
<https://lists.sourceforge.net/lists/listinfo/nant-users> 
                
                
                



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to