Aaron,
 
You'll need to install the runtime for all frameworks that you want to target. I don't think that copying a runtime installation folder from another machine will work (and is definitely not supported by MS).
 
For the SDK, it might work (but it will not be supported by MS either). You can either
 
- manually edit the NAnt configuration file (which might cause problems if you upgrade to newer versions of NAnt, as we consider the configuration file to be internal, and as such its not guaranteed to be "stable").
 
- add the necessary entries to the registry yourself, to allow NAnt to automatically discover that you have installed the SDK.
 
Hope this helps,
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Elder
Sent: woensdag 1 december 2004 6:14
To: [EMAIL PROTECTED]
Subject: [Nant-users] Best practices for portable NAnt Environments... [1 more try]

Sending again since there was no response.  Thanks!

 

 

 

Here is what I would like,

 

I would like to be able to check into my source control system NAnt as well as a copy of the .NET compiler (v1.1 & v1.0).  When developers sync to the project, they will always be syncing to a single controlled build environment.  The trick is…

 

How do I tell NAnt to use a copy of the .NET Framework SDK that is not installed, but located somewhere else on the developer’s PC?

 

I have looked at the NAnt.exe.config file, and this appears to be where NAnt gets the path (from the registry), but hacking up this file doesn’t seems like a great idea.  I have also read several articles on how to target different versions of the Framework, but they all assume that both frameworks are actually INSTALLED.

 

 

The benefits of this are many:

 

-          A single controlled build environment that any “syncing” party can build with

-          A single place to upgrade the build environment.  What to go to .NET v1.1 SP1?  No problem, let me just check in the new compiler.

 

Any thoughts?  I guess, I am looking for validation that messing with NAnt.exe.config is a good idea… and/or a way to override the sdkInstallRoot variable in the NAnt.exe.config file.

 

Thanks.

Aaron Elder
Director, Software Development

invokesystems
solid technology. sound thinking.
http://www.invokesystems.com

v: 425.818.5262
c: 425.761.7940
f: 425.818.5220
e: [EMAIL PROTECTED]

 

Reply via email to