On Thu, Aug 26, 2010 at 6:48 AM, Luke Bakken <luke.bak...@gmail.com> wrote:
>> Test program:
>>
>> using System;
>> using Microsoft.Win32;
>> public static class RegCheck
>> {
>>    public static void Main()
>>    {
>>
>> Console.WriteLine(Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NET
>> Framework",
>> false).GetValue("InstallRoot").ToString());
>>    }
>> }
>>
>> Compiled with "csc regcheck.cs" and then run, I get this output:
>>
>> C:\Windows\Microsoft.NET\Framework64\
>>
>> Compiled with "csc /platform:x86 regcheck.cs" and run:
>>
>> C:\Windows\Microsoft.NET\Framework\
>>
>>
>> How are you calling Nant?
>> From a 32bit program? From a 32bit command line?  From a 32bit install of a
>> CI server?
>
> I'm calling NAnt from the same command line where I ran that test
> program above. It's the "x64" visual studio tools command prompt.
>
> It's very strange that the test program exhibits the correct behavior
> while NAnt doesn't. I'm going to try building NAnt from source next.
>
> Luke

Well, what do you know? Building from source using the "x64" Visual
Studio 2010 prompt creates an NAnt version in which "readregistry"
works correctly.

I'm not sure of the best way to resolve this, but I'm sure it'll
affect someone else in the future.

Luke

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to