Title: Solution incorrectly compiled against .NET version 1.0 (bug?)

Hi,

I'm trying to figure out the following problem. I'm using the new <solution> task from the daily build of 20030605 to build a project that's perfectly building in Visual Studio on the same machine. I'm using Visual Studio.NET 2003 and the .NET Framework 1.1 on Windows 2000 Server. The .NET Framework 1.0 is also installed. The following error is raised:

Using NAnt I'm getting the following error: error CS0117: 'System.Web.UI.WebControls.DropDownList' does not contain a definition for 'SelectedValue'.

The SelectedValue property has been added in the .NET1.1, so I'm thinking NAnt is using .NET1.0 to compile against. But I don't understand how.

I changed nant.exe.config in the following ways:

1) I changed the default framework to 1.1 (via <nantsettings defaultframework="net-1.1">)
2) I deleted the framework 1.0 definition (just to be sure ;-)
3) I changed the framework 1.1 definition to point explicitly to the folder C:\WINNT\Microsoft.NET\Framework\v1.1.4322 instead of a registry key

All to no avail. Does anyone have any clue why the solution task behaves this way, assumed that it indeed uses .NET 1.0?

Thanx in advance,


Carlo Poli
Macaw

Reply via email to