I appreciate your response, from my attempt to create a repro for you on a clean solution, I found that the solution task does in fact respect the target framework version.  I am unable to reproduce this outside of the project I'm having the problem in.  This leads me to believe that the assembly itself is the problem.  I'll investigate further in that direction.  Thanks for your time.

 

Matt Hulse

 

[EMAIL PROTECTED]

 

 

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 1:17 PM
To: Matt Hulse; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Solution task not using target framework

 

Matt,

 

The <solution> task should definitely respect the current target framework.

 

Do you have a small repro for the behavior you're seeing ?

 

Gert

 

> -----Original Message-----

> From: [EMAIL PROTECTED]

> [mailto:[EMAIL PROTECTED] On Behalf Of

> Matt Hulse

> Sent: donderdag 6 april 2006 18:59

> To: nant-users@lists.sourceforge.net

> Subject: [NAnt-users] Solution task not using target framework

>

> I have a c# .net solution that I am building with the

> <solution> task from the latest nightly build.  I'm

> registering the assembly output using regasm.exe from the 1.1

> framework directory since that is what will happen on the

> target machine.  This has worked fine until I installed the

> 2.0 framework for a separate project.  I now cannot register

> the assemblies using the 1.1 regasm.exe.  I get an error

> saying the assembly is not a valid .net assembly unless I

> register it using the 2.0 regasm.exe.

>

>

> The solution task builds the assemblies for the 2.0 framework

> even though I have set the default framework to net-1.1 in

> the nant config and I have set the property <property

> name="nant.settings.currentframework" value="net-1.1" /> in

> the build file.  The build output shows that the target

> framework is 1.1 but it seems like the solution task is using

> the latest framework anyway.  I would think the solution task

> should use the current target framework.

>

>

> Is this a bug? Is there another setting to specify the

> framework for the solution task?

>

>

> Thanks for your help.

>

>

> Matt Hulse

>

>

> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

>

>

>

 

Reply via email to