NAnt Fix for .NET 3.5 Compiling Without Visual Studio

View: New views
2 Messages — Rating Filter:   Alert me  

NAnt Fix for .NET 3.5 Compiling Without Visual Studio

by Ben Floyd :: Rate this Message:

| View Threaded | Show Only this Message

I recently had the problem that I created a build server that did not have Visual Studio installed and I needed to compile .NET 3.5 code. I figured out that NAnt 0.86 beta 1 was looking for registry keys in the HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0a\WinSDKNetFxTools hive. To fix this I installed the Windows Server 2008 and .NET 3.5 SDK, which creates the registry keys at HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.1\WinSDKNetFxTools.

To get NAnt to recognize the installed SDK I added the following registry keys:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0a]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0a\WinSDKNetFxTools]
"InstallationFolder"="C:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\\"
"ProductVersion"="6.1"

It basically points the v6.0 SDK to the v6.1 one that is installed. From there, NAnt can find the tools necessary to compile .NET 3.5 code without having Visual Studio installed. I'm not sure there is anything that the NAnt dev team could do about this because they don't actively modify the environment to detect installed SDKs.

If anyone has a suggestion on how to get this check into the trunk for NAnt please let the dev team know! I've written a blog post about this as well at http://dataplex.org/blog/2009/01/fixing-nant-086-beta-1-for-net-35-continuous-integration/

Thanks,
Ben Floyd

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: NAnt Fix for .NET 3.5 Compiling Without Visual Studio

by gertdriesen :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Ben,

 

This issue is already fixed in CVS, and will be part of the next drop.

 

Gert

 

From: Ben Floyd [mailto:dataplex@...]
Sent: donderdag 29 januari 2009 23:46
To: nant-users@...
Subject: [NAnt-users] NAnt Fix for .NET 3.5 Compiling Without Visual Studio

 

I recently had the problem that I created a build server that did not have Visual Studio installed and I needed to compile .NET 3.5 code. I figured out that NAnt 0.86 beta 1 was looking for registry keys in the HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0a\WinSDKNetFxTools hive. To fix this I installed the Windows Server 2008 and .NET 3.5 SDK, which creates the registry keys at HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.1\WinSDKNetFxTools.

To get NAnt to recognize the installed SDK I added the following registry keys:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0a]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0a\WinSDKNetFxTools]
"InstallationFolder"="C:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\\"
"ProductVersion"="6.1"

It basically points the v6.0 SDK to the v6.1 one that is installed. From there, NAnt can find the tools necessary to compile .NET 3.5 code without having Visual Studio installed. I'm not sure there is anything that the NAnt dev team could do about this because they don't actively modify the environment to detect installed SDKs.

If anyone has a suggestion on how to get this check into the trunk for NAnt please let the dev team know! I've written a blog post about this as well at http://dataplex.org/blog/2009/01/fixing-nant-086-beta-1-for-net-35-continuous-integration/

Thanks,
Ben Floyd

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.15/1923 - Release Date: 1/29/2009 7:13 AM


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users