If you already have a solution and you can build with Visual Studio it is
pretty easy. Just do something like:
<msbuild project="${ProjectDir}/Product/${project::get-name()}.sln"
verbose="true">
<property name="Configuration" value="Release" />
<arg line="/noconsolelogger" />
<arg
line="/logger:nant/ThoughtWorks.CruiseControl.MSBuild.dll;msbuild-results.xml"
/>
</msbuild>
Actually, I am using the msbuild task. Nant will use the correct version of
msbuild based on the netframework setting you use. And, msbuild will support
the targeting automatically. So, if you are targeting .Net 3.5 with a Visual
Studio 2010 project then you will get the right binaries. When I have moved
from Visual Studio 2008 projects to 2010 all I have had to do is change:
If you don't have a solution just create one with Visual Studio, add in all the
projects with the correct dependency. It should be pretty easy.
This:
<property name="nant.settings.currentframework" value="net-3.5" />
To this:
<property name="nant.settings.currentframework" value="net-4.0" />
BOb
From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, January 23, 2012 1:11 PM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build
process
Bob,
Thanks for the reply. I am working with a system that has been in place for a
while and many different DLLs are currently being built with CSC. How
different is building with MSBuild as opposed to CSC?
From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Monday, January 23, 2012 8:53 AM
To: Scott Pennington; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build
process
I have found the best solution was to use msbuild to actually do the compile
called from the exec task.
BOb
From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, January 23, 2012 11:23 AM
To: nant-users@lists.sourceforge.net<mailto:nant-users@lists.sourceforge.net>
Subject: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build
process
We are starting to have .NET 4.0 Framework Projects that will need to be built.
We currently build by using the CSC tag and not using the project files.
So I will need to be able to build csc with either 4.0 or 3.5 depending on the
dll. we are using NAnt version 0.91
Thanks for any help. I will post to the list what I finally get to work.
Scott Pennington
Senior Software Engineer
Prosper Marketplace, Inc.
111 Sutter Street, 22nd Floor
San Francisco CA 94104
www.prosper.com<http://www.prosper.com/>
CONFIDENTIALITY STATEMENT: This email message, together with all attachments,
is intended only for the individual or entity to which it is addressed and may
contain legally privileged or confidential information. Any dissemination,
distribution or copying of this communication by persons or entities other than
the intended recipient, is strictly prohibited, and may be unlawful. If you
have received this communication in error please contact the sender immediately
and delete the transmitted material and all copies from your system, or if
received in hard copy format, return the material to us via the United States
Postal Service. Thank you.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users