Title: Message
 
Try reversing the order of lines in your NAnt.exe.config so that they read:
 

<startup>

    <supportedRuntime version="v1.1.4322" />

    <supportedRuntime version="v1.0.3705" />

</startup>

This usually helps.

Jarek

----- Original Message -----

Sent: Tuesday, August 12, 2003 10:14 PM
Subject: [Nant-users] Side by Side Execution of Framework 1.1 and 1.0

Hi All,
 
I have both versions of the Framework SDK 1.0 and 1.1 installed on my machine. I am using Nant 0.8.3 rc2 to build my C# projects. One of these projects uses classes that are specific to the .NET Framework 1.1
 
My Question :
 
Which version of the .NET Framework runtime is being used when i run the Nant script ? Is there a way I can choose which Framework version should be used when I run a specific Task in Nant ?
 
The problem:
 
My Nunit2 task complains that it is unable to load a 1.1 Framework class called System.Runtime.Serialization.Formatters.TypeFilterLevel from assembly mscorlib.
If I uninstall the .NET Framework 1.0 from my machine -> then the NUnit2 task runs ok, but I need the 1.0 Framework to be able to use the Visual Studio 7.0. ( we are not upgrading to VS.NET 2003 soon )
 
I am guessing that if I could tell Nant to use the 1.1 Framework while running the NUnit2 task - then my problems will be solved. Is this possible ?
 
Any help will be greatly appreciated...
 
Here is the build message :

   [nunit2] Tests run: 3, Failures: 3, Not run: 0, Time: 0.0781225 seconds
 
Failures:
1) CPAA.IO.RuleBaseModel.Model2Xml.TestWriteRuleBaseXml : Could not load type Sy
stem.Runtime.Serialization.Formatters.TypeFilterLevel from assembly mscorlib, Ve
rsion=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
   at CPAA.IO.RuleBaseModel.Model2Xml.writeToXml(String fileName, Object graph)
   at CPAA.IO.RuleBaseModel.Model2Xml.TestWriteRuleBaseXml()
 
2) CPAA.IO.RuleBaseModel.Model2Xml.TestWriteRuleSetXml : Could not load type Sys
tem.Runtime.Serialization.Formatters.TypeFilterLevel from assembly mscorlib, Ver
sion=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
   at CPAA.IO.RuleBaseModel.Model2Xml.writeToXml(String fileName, Object graph)
   at CPAA.IO.RuleBaseModel.Model2Xml.TestWriteRuleSetXml()
 
3) CPAA.IO.RuleBaseModel.Model2Xml.TestWriteRuleXml : Could not load type System
.Runtime.Serialization.Formatters.TypeFilterLevel from assembly mscorlib, Versio
n=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
   at CPAA.IO.RuleBaseModel.Model2Xml.writeToXml(String fileName, Object graph)
   at CPAA.IO.RuleBaseModel.Model2Xml.TestWriteRuleXml()
 

   [nunit2] Tests Failed
Total time: 1 seconds.
 
 
 
Nipun Nair
Computer Associates
Software Engineer
tel: +1 650 594 8799
 
 

Reply via email to