Trying to build a netcf-1.0 app but I'm getting errors like:
    Framework 'netcf-1.0' is invalid and has not been loaded : Registry
Value Not Found! -
key='SOFTWARE\Microsoft\.NETCompactFramework\\sdkInstallRoot';hive='LocalMachine';.
    Target framework could not be changed. "netcf-1.0" is not a valid
framework identifier. Valid values are: netcf-2.0, net-1.0, net-2.0, net-1.1
.
    Invalid framework 'netcf-1.0' specified.

(using nant 0.85 and did try 0.86-beta with no luck)

I have the following packages installed:
    Microsoft .NET Framework (English) v1.0.3705
    Microsoft .NET Framework 1.1
    Microsoft .NET Framework SDK (English) 1.1
    Microsoft .NET Framework 2.0
    Microsoft .NET Compact Framework 1.0 SP3
    Microsoft .NET Compact Framework 1.0 SP3 Developer
    Microsoft .NET Compact Framework 2.0 SP2
    Microsoft Visual Studio 2005 Professional Edition
    Windows Mobile 5.0 Smartphone SDK

Any ideas what I missing?

Incidentally after browsing the registry I was able to make some changes to
NAnt.exe.config and now have it "running". The fix is so ugly though that it
still must not being doing the right thing. Here is what I did:

While I don't have the registry setting it is looking for:
    SOFTWARE\Microsoft\.NETCompactFramework\\sdkInstallRoot

I do have this one:
    SOFTWARE\Microsoft\.NETCompactFramework\v1.0.5000.0\InstallRoot (which
points to C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\)

So I modified NAnt.exe.config to use this setting which caused me to adjust
a few other lines because:
    - I don't have a sub-directory called "v1.0.5000"
    - My sub-directory "WindowsCE" has no space in its name. (
NAnt.exe.config expects "Windows CE")
    - I don't have a "bin" sub-directory at all!

Here is the diff:

$diff NAnt.exe.config-orig NAnt.exe.config-hack
435c435
<                     sdkdirectory="${path::combine(sdkInstallRoot, '
v1.0.5000\bin')}"
---
>                   sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}"
// **DIRECTORY DOESN'T EXIST FOR ME**
437c437
<
frameworkassemblydirectory="${path::combine(sdkInstallRoot, '
v1.0.5000\Windows CE')}"
---
>
frameworkassemblydirectory="${path::combine(sdkInstallRoot, 'WindowsCE')}"
450c450
<
key="SOFTWARE\Microsoft\.NETCompactFramework\sdkInstallRoot"
---
>
key="SOFTWARE\Microsoft\.NETCompactFramework\v1.0.5000.0\InstallRoot\"


It now appears to run correctly but as you can imagine I'm skeptical it is
doing the right things.

Any help is greatly appreciated!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to