Ah!  I get it.

I suppose I could make Gallio clear and restore that variable  
automatically. I had not even thought of the fact that it would  
propagate and that it could be problematic.

Jeff



On Sep 18, 2009, at 6:50 PM, "Bruno Wouters" <[email protected]>  
wrote:

>
> Hi Jeff,
>
> Sorry for the late response...
>
> Before the tests start we build an assembly using msbuild.exe. This  
> is launched from the C# test code. Because this COMPLUS_Version is  
> set, msbuild builds the project with the 2.0 csc.exe and fails on  
> things like extension methods etc.
>
> I solved it by clearing the COMPLUS_Version variable before building  
> and I restore it afterwards.
>
> Anyway, it's running very smooth since that issue.
>
> Again thanks for the hard work!
>
> Greets,
> Bruno
>
> -----Original Message-----
> From: [email protected]  
> [mailto:[email protected]] On Behalf Of Jeff Brown
> Sent: woensdag 16 september 2009 8:36
> To: [email protected]
> Cc: <[email protected]>
> Subject: MbUnit Re: COMPLUS_Version set by Gallio 3.1?
>
>
> The .net 3.5 framework uses the 2.0 vm. Gallio will see that your
> tests were compiled for the 2.0 vm so that's what it will run.
>
> What behaviour are you seeing?
>
> Jeff
>
>
>
> On Sep 15, 2009, at 1:31 PM, "Bruno Wouters" <[email protected]>
> wrote:
>
>>
>> I like to use 3.5 and the target framework is set to 3.5 on the
>> assembly containing the tests.
>>
>> Greets,
>> Bruno
>>
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Jeff Brown
>> Sent: dinsdag 15 september 2009 20:34
>> To: [email protected]
>> Subject: MbUnit Re: COMPLUS_Version set by Gallio 3.1?
>>
>>
>> Yes. The environment variable is set depending on the target  
>> framework
>> version used to compile the test assembly.
>>
>> Which version would you like it to use?
>>
>> Jeff
>>
>>
>> On Sep 15, 2009, at 7:52 AM, "Bruno Wouters"  
>> <[email protected]>
>> wrote:
>>
>>> Hi all,
>>>
>>>
>>>
>>> Is ‘COMPLUS_Version’ enviorment variable set by Gallio 3.1? 
>>>  I’m
>>> having problems with this being set to framework v2. I did not have
>>> this problem with 3.0.6 update 2.
>>>
>>> The performance improvements in 3.1 are really great!
>>>
>>>
>>>
>>> Thanks!
>>>
>>>
>>>
>>> Greets,
>>>
>>> Bruno
>>>
>>>
>>>>
>>
>>
>>
>>>
>
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to