I upgraded to NAnt .90 and modified the NAnt.Exe.Config to support .NET Framework 4. Installed the latest Windows SDK. I don't understand why my script is calling the LoadTasks when they are not even in the script. Anyone know how to fix these errors?
I'm running Nant on a simple script to send me a test email, but I'm getting the errors below: <?xml version="1.0" encoding="utf-8"?> <project xmlns="http://nant.sf.net/release/0.90/nant.xsd" name="Main Build" default="Test"> <target name="Test"> <mail from="james.d.macdiar...@saic.com" tolist="james.d.macdiar...@saic.com;" subject="Successful Email Test from Build machine using Nant 0.90" mailhost="<my smtp server>" /> </target> </project> ================= Errors =============================================== C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin>nant -buildfile:testmail.xml NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010) Copyright (C) 2001-2010 Gerry Shaw http://nant.sourceforge.net [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.CompressionTasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspa ces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.CompressionTasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.DotNetTasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspaces\A HLTA\3.7.0\Build\nAnt\bin\NAnt.DotNetTasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit1Tasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspaces\A HLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit1Tasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit2Tasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspaces\A HLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit2Tasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.VisualCppTasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspace s\AHLTA\3.7.0\Build\nAnt\bin\NAnt.VisualCppTasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.VSNetTasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspaces\AH LTA\3.7.0\Build\nAnt\bin\NAnt.VSNetTasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) [loadtasks] Failure scanning "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.Win32Tasks.dll" for extensions. Could not load file or assembly 'file:///C:\Workspaces\AH LTA\3.7.0\Build\nAnt\bin\NAnt.Win32Tasks.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) BUILD FAILED Failed to initialize the 'Microsoft .NET Framework 4.0' (net-4.0) target framework. Invalid element <readregistry>. Unknown task or datatype.
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users