The <solution> task does not seem to respect the defaultframework setting. Several messages to this list in the past couple days suggested that the <solution> task works by calling the csc.exe directly and it appears to choose the wrong one in the case you’re describing. I think someone suggested that you could force nant to run under the 1.1 framework which would force the <solution> task to call the correct csc.exe.
From: Carlo Poli
[mailto:[EMAIL PROTECTED]
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">) 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 |
Title: Solution incorrectly compiled against .NET version 1.0 (bug?)
- [Nant-users] Solution incorrectly compiled against .NET ... Carlo Poli
- Re: [Nant-users] Solution incorrectly compiled agai... Jaroslaw Kowalski
- RE: [Nant-users] Solution incorrectly compiled agai... Carlo Poli
- [Nant-users] Solution incorrectly compiled against ... Carlo Poli
- RE: [Nant-users] Solution incorrectly compiled agai... Erv Walter
- RE: [Nant-users] Solution incorrectly compiled ... Jean Rajotte
- Re: [Nant-users] Solution incorrectly compi... Ian MacLean