Re: [NAnt-users] MSBuild task and .NET 3.5
Bob, I seem to recall that as long as I executed the correct version of MSBuild from the command line (.NET 2.0 vs .NET 3.5), MSBuild 'did the right thing'. I can be certain that it worked in all cases as I was struggling with several issues simultaneously-in addition to moving to VS 2008 solutions and projects, I was also trying to get some newly minted C++ projects to build as well. As I go along, I will try to 'prove out' my theory about Nant and it's behavior with SDK Version 6.1 vs. 6.0A. There are some additional workstations here that haven't been fully upgraded to VS 2008 as yet and I can use them as 'guinea pigs'. I have yet as well to scan the registry to see what keys have changed that might affect Nant's interaction with the SDKs. TBD. I'll keep you posted. Thanks to all for your help. Ken Parrish Gomez, Inc. From: Bob Archer [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 4:48 PM To: Parrish, Ken; Gert Driesen; Julian Simpson; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] MSBuild task and .NET 3.5 Sounds like a bug in Nant to me. I think I asked but you never answered... can you build the project using MSBuild on the command line of the machine you are having problems with? If so, it is not the SDK issue but a Nant one. The only IDE I have on my build server is VS6 to compile VB stuff with... ug. All my .Net 2.0 builds run fine just having .Net and .Net SDK's installed. BOb From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 3:48 PM To: Gert Driesen; Julian Simpson; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Sorry folks for my slow response. Wearing many hat and fighting fires, as I am sure you can all relate to. When I posted my original question, I had installed the Windows SDK for Server 2008 and .NET Framework 3.5. I believe this installed SDK Version 6.1. However, Nant 0.86 did not, would not work with .NET 3.5 with this version of the SDK. I tried cheating and hacking the registry, but still no luck. I then installed Visual Studio 2008 and in so doing, installed SDK Version 6.0A. Once I did this, Nant 0.86 began to work with .NET 3.5. I adjusted the framework tag as follows: frameworks platform name=win32 default=net-3.5 . . . /frameworks Then things began to work-finally. So, it appears that Nant Version 0.86 requires Version 6.0A of the SDK and that Version 6.1, even though it is 'supposedly' newer and supports .NET Framework 3.5, doesn't work. What I don't know and can't say for sure, is whether Nant Version 0.86 SHOULD be able to work with SDK Version 6.1. I just don't know enough about the differences between SDK to say for sure. As far as I can tell, when I ONLY had Version 6.1 of the SDK, the registry entries pointed to the right directories. I would prefer not to have to install Visual Studio 2008 on a target build machine just to get support for Nant Version 0.86 and the msbuild task. I'd rather just install the appropriate SDK. However, I cannot seem to find a separate installation of SDK Version 6.0A on Microsoft's web site. At this point, all my build scripts are functioning normally and I have full support for mixed builds of 2005 and 2008 solutions files. That's good. But, having had to install so many SDK on our build server, I have quickly running out of disk space. Having 3 SDKs and 2 IDEs on a build server should not be necessary-kind of a heavy-handed approach to this problem. Any additional thoughts or insights would be appreciated. Ken Parrish Gomez, Inc. From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 4:03 AM To: Parrish, Ken; Julian Simpson; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Ken, Are you sure that the mentioned registry key exists on both machines? I haven't checked this yet, but other users posted messages claiming that this registry key is not created when you installed v6.1 of the Windows SDK. Also, can you try using the most recent nightly build of NAnt as that fixes a few framework-related issues. More details on the fixes are available here: http://nant.sourceforge.net/nightly/latest/releasenotes.html Gert From: Parrish, Ken mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 11:10 PM To: Julian Simpson mailto:[EMAIL PROTECTED] ; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Julian, Thanks. This was very insightful. However, I have a conflict that I don't know how to resolve. On the machine for which Nant Version 0.86 works with 'net-3.5' framework specified, I have Windows SDK Version 6.0a installed. On the machine for which Nant Version 0.86 does not work with 'net-3.5' framework specified, I have Windows SDK Version 6.1
Re: [NAnt-users] MSBuild task and .NET 3.5
Great Ken... thanks for the info. It's very timely since I am very close to starting to move some of our products to the VS2008 project/.Net 3.5 compilers. I don't want to have to install VS on the build machine, even though it has plenty enough disk space. BOb (most of the thread trimmed so this message wouldn't be to long.) From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 5:30 PM To: Bob Archer; Gert Driesen; Julian Simpson; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] MSBuild task and .NET 3.5 Bob, I seem to recall that as long as I executed the correct version of MSBuild from the command line (.NET 2.0 vs .NET 3.5), MSBuild 'did the right thing'. I can be certain that it worked in all cases as I was struggling with several issues simultaneously-in addition to moving to VS 2008 solutions and projects, I was also trying to get some newly minted C++ projects to build as well. As I go along, I will try to 'prove out' my theory about Nant and it's behavior with SDK Version 6.1 vs. 6.0A. There are some additional workstations here that haven't been fully upgraded to VS 2008 as yet and I can use them as 'guinea pigs'. I have yet as well to scan the registry to see what keys have changed that might affect Nant's interaction with the SDKs. TBD. I'll keep you posted. Thanks to all for your help. Ken Parrish Gomez, Inc. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
Bob, Thanks for the reference. I am using Nant on two separate workstations. I installed Nant Version 0.86 on both machines. In both cases, I edited the Nant configuration file and set: frameworks platform name=win32 default=net-3.5 . /frameworks On one workstation, all is well. The msbuild task correctly references the .NET 3.5 framework. On our build server, I get the following error: NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net BUILD FAILED Microsoft .NET Framework 3.5 (net-3.5) is not installed, or not correctly configured. Object reference not set to an instance of an object. For more information regarding the cause of the build failure, run the build again in debug mode. Try 'nant -help' for more information I reinstalled / repaired the installation of .NET Framework 3.5 on this server, but that did not solve this problem. If I set the default platform back to 'net-2.0', it works find (as long as I don't reference VS 2008 solutions files). Do you or anyone have any thoughts or suggestions as to why I am getting the error above? Are there any additional OS or .NET components that need to be installed to support Nant with the .NET version 3.5 framework? Thanks, Ken Parrish Gomez, Inc. From: Bob Archer [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:35 PM To: Parrish, Ken; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] MSBuild task and .NET 3.5 You specify the framework targeting property when you start nant. Here is the faq on it. http://nant.sourceforge.net/faq.html#framework-support Bob From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:06 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] MSBuild task and .NET 3.5 Does anyone know how to insure that the msbuild task targets the version of MSBuild in the .NET Version 3.5 framework directory? Is it necessary to set the system path or is there a way to direct the msbuild task to use a particular version of MSBuild? Thanks, Ken Parrish Gomez, Inc. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
You probably need to install the .Net 3.5 SDK. Bob From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 2:03 PM To: Bob Archer; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] MSBuild task and .NET 3.5 Bob, Thanks for the reference. I am using Nant on two separate workstations. I installed Nant Version 0.86 on both machines. In both cases, I edited the Nant configuration file and set: frameworks platform name=win32 default=net-3.5 . /frameworks On one workstation, all is well. The msbuild task correctly references the .NET 3.5 framework. On our build server, I get the following error: NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net BUILD FAILED Microsoft .NET Framework 3.5 (net-3.5) is not installed, or not correctly configured. Object reference not set to an instance of an object. For more information regarding the cause of the build failure, run the build again in debug mode. Try 'nant -help' for more information I reinstalled / repaired the installation of .NET Framework 3.5 on this server, but that did not solve this problem. If I set the default platform back to 'net-2.0', it works find (as long as I don't reference VS 2008 solutions files). Do you or anyone have any thoughts or suggestions as to why I am getting the error above? Are there any additional OS or .NET components that need to be installed to support Nant with the .NET version 3.5 framework? Thanks, Ken Parrish Gomez, Inc. From: Bob Archer [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:35 PM To: Parrish, Ken; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] MSBuild task and .NET 3.5 You specify the framework targeting property when you start nant. Here is the faq on it. http://nant.sourceforge.net/faq.html#framework-support Bob From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:06 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] MSBuild task and .NET 3.5 Does anyone know how to insure that the msbuild task targets the version of MSBuild in the .NET Version 3.5 framework directory? Is it necessary to set the system path or is there a way to direct the msbuild task to use a particular version of MSBuild? Thanks, Ken Parrish Gomez, Inc. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
I am using Nant on two separate workstations. I installed Nant Version 0.86 on both machines. In both cases, I edited the Nant configuration file and set: Did you compare the two config files to make absolutely certain that they are the same? If so, it sounds like either something that should be in the path isn't, or that something didn't get installed properly. Brad - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
Where or how does Nant get the value, used in Nant.exe.config, for 'sdkInstallRoot' and 'installroot' ? Do these map to environment variables? Are they required? Thanks, Ken Parrish -Original Message- From: Brass Tilde [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 2:30 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 I am using Nant on two separate workstations. I installed Nant Version 0.86 on both machines. In both cases, I edited the Nant configuration file and set: Did you compare the two config files to make absolutely certain that they are the same? If so, it sounds like either something that should be in the path isn't, or that something didn't get installed properly. Brad - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
Julian, Thanks. This was very insightful. However, I have a conflict that I don't know how to resolve. On the machine for which Nant Version 0.86 works with 'net-3.5' framework specified, I have Windows SDK Version 6.0a installed. On the machine for which Nant Version 0.86 does not work with 'net-3.5' framework specified, I have Windows SDK Version 6.1 installed. Supposedly this is the version of the framework for .NET 3.5. I checked the registry key: SOFTWARE\Microsoft\Microsoft SDKs\v6.0A\WinSDKNetFxTools\InstallationFolder This is present on both machines and references the 6.0A or 6.1 version of the SDK respectively. It seems counter intuitive that I should need to revert BACK to SDK Version 6.0A from Version 6.1 in order for Nant 0.86 to operate properly. Is there some reason or explanation why Nant 0.86 might NOT be compatible with SDK Version 6.1? I would think that this problem manifests itself 'the other way 'round'. Any other ideas or clues would be greatly appreciated. Ken Parrish Gomez, Inc. From: Julian Simpson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 4:20 PM To: Parrish, Ken Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Having just spent this evening wrestling with the same issue, I can tell you that they come from the registry. Have a look at this post: http://www.timbarcz.com/blog/CategoryView,category,Nant.aspx They don't map to environment variables and the application uses them extensively. Jumping in late here but I presume that you'll want to install at least the .NET 3.5 SDK to make your build work. I just ended up installing a Visual Studio 2008 and the SDK to support the project I've been working on. Best Julian On 21 Oct 2008, at 20:17, Parrish, Ken wrote: Where or how does Nant get the value, used in Nant.exe.config, for 'sdkInstallRoot' and 'installroot' ? Do these map to environment variables? Are they required? -- Julian Simpson Software Build and Deployment http://www.build-doctor.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
Do you have visual studio installed on the one that is working... and not on the one that isn't.? From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 5:10 PM To: Julian Simpson; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Julian, Thanks. This was very insightful. However, I have a conflict that I don't know how to resolve. On the machine for which Nant Version 0.86 works with 'net-3.5' framework specified, I have Windows SDK Version 6.0a installed. On the machine for which Nant Version 0.86 does not work with 'net-3.5' framework specified, I have Windows SDK Version 6.1 installed. Supposedly this is the version of the framework for .NET 3.5. I checked the registry key: SOFTWARE\Microsoft\Microsoft SDKs\v6.0A\WinSDKNetFxTools\InstallationFolder This is present on both machines and references the 6.0A or 6.1 version of the SDK respectively. It seems counter intuitive that I should need to revert BACK to SDK Version 6.0A from Version 6.1 in order for Nant 0.86 to operate properly. Is there some reason or explanation why Nant 0.86 might NOT be compatible with SDK Version 6.1? I would think that this problem manifests itself 'the other way 'round'. Any other ideas or clues would be greatly appreciated. Ken Parrish Gomez, Inc. From: Julian Simpson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 4:20 PM To: Parrish, Ken Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Having just spent this evening wrestling with the same issue, I can tell you that they come from the registry. Have a look at this post: http://www.timbarcz.com/blog/CategoryView,category,Nant.aspx They don't map to environment variables and the application uses them extensively. Jumping in late here but I presume that you'll want to install at least the .NET 3.5 SDK to make your build work. I just ended up installing a Visual Studio 2008 and the SDK to support the project I've been working on. Best Julian On 21 Oct 2008, at 20:17, Parrish, Ken wrote: Where or how does Nant get the value, used in Nant.exe.config, for 'sdkInstallRoot' and 'installroot' ? Do these map to environment variables? Are they required? -- Julian Simpson Software Build and Deployment http://www.build-doctor.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
Hi, What Bob said. Do the paths in the registry exist on the filesystem? I know for a fact that you can build this stuff without Visual Studio, but I run out of time to investigate. I have twice ended up having to install the IDE and be move on. Best Julian. On 21 Oct 2008, at 23:02, Bob Archer wrote: Do you have visual studio installed on the one that is working… and not on the one that isn’t.? From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 5:10 PM To: Julian Simpson; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Julian, Thanks. This was very insightful. However, I have a conflict that I don’t know how to resolve. On the machine for which Nant Version 0.86 works with ‘net-3.5’ framework specified, I have Windows SDK Version 6.0a installed. On the machine for which Nant Version 0.86 does not work with ‘net-3.5’ framework specified, I have Windows SDK Version 6.1 installed. Supposedly this is the version of the framework for .NET 3.5. I checked the registry key: SOFTWARE\Microsoft\Microsoft SDKs\v6.0A\WinSDKNetFxTools \InstallationFolder This is present on both machines and references the 6.0A or 6.1 version of the SDK respectively. It seems counter intuitive that I should need to revert BACK to SDK Version 6.0A from Version 6.1 in order for Nant 0.86 to operate properly. Is there some reason or explanation why Nant 0.86 might NOT be compatible with SDK Version 6.1? I would think that this problem manifests itself ‘the other way ‘round’. Any other ideas or clues would be greatly appreciated. Ken Parrish Gomez, Inc. From: Julian Simpson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 4:20 PM To: Parrish, Ken Subject: Re: [NAnt-users] MSBuild task and .NET 3.5 Having just spent this evening wrestling with the same issue, I can tell you that they come from the registry. Have a look at this post: http://www.timbarcz.com/blog/CategoryView,category,Nant.aspx They don't map to environment variables and the application uses them extensively. Jumping in late here but I presume that you'll want to install at least the .NET 3.5 SDK to make your build work. I just ended up installing a Visual Studio 2008 and the SDK to support the project I've been working on. Best Julian On 21 Oct 2008, at 20:17, Parrish, Ken wrote: Where or how does Nant get the value, used in Nant.exe.config, for 'sdkInstallRoot' and 'installroot' ? Do these map to environment variables? Are they required? -- Julian Simpson Software Build and Deployment http://www.build-doctor.com -- Julian Simpson Software Build and Deployment http://www.build-doctor.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] MSBuild task and .NET 3.5
You specify the framework targeting property when you start nant. Here is the faq on it. http://nant.sourceforge.net/faq.html#framework-support Bob From: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:06 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] MSBuild task and .NET 3.5 Does anyone know how to insure that the msbuild task targets the version of MSBuild in the .NET Version 3.5 framework directory? Is it necessary to set the system path or is there a way to direct the msbuild task to use a particular version of MSBuild? Thanks, Ken Parrish Gomez, Inc. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users