Hey all, I'm new to NAnt, but I have requirement at work to convert a LOT(!) of Visual Studio projects to run as NAnt scripts. Anyway, the problem I'm having is that everything compiles fine when I build through Visual Studio, but when I build through NAnt (using a slingshot script), I get a message that says: **************************************** > > [csc] Starting 'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\csc.exe (@"C:\DOCUME~1\rmayers1\LOCALS~1\Temp\tmp509.tmp" /unsafe- /checked-)' in 'D:\MBPA\ESP\Solutions' > error CS1548: Cryptographic failure while signing assembly 'd:\MBPA\ESP\Solutions\bin\Debug\Progressive.Claims.Shared.ESP.MetaStore.dll' -- 'Error reading key file '..\..\..\..\Keys\ESP.SNK' -- The system cannot find the path specified. ' > >BUILD FAILED >> **************************************** It looks to me like the problem is that NAnt is using a different base directory than Visual Studio, is that what I'm seeing? Is there a way to tell what directory path each system (NAnt and Visual Studio) are using? Better yet, is there some way to make that not matter? Here's the -v[erbose] output from NAnt, just in case context is required (note that I have tried hardcoding the absolute path in the AssemblyInfo.cs files of each project, and that compiles okay, but this is NOT a good solution for our case: **************************************** >NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 12/26/2003) >Copyright (C) 2001-2003 Gerry Shaw >http://nant.sourceforge.net > >Framework net-1.2 is invalid and has not been loaded : Framework directory C:\WINNT\Microsoft.NET\Framework\v1.2.30703 does not exist. >Framework mono-1.0 is invalid and has not been loaded : Property 'sdkInstallRoot' has not been set. >Framework sscli-1.0 is invalid and has not been loaded : Framework directory C:\sscli\build\v1.x86fstchk.rotor does not exist. >Buildfile: file:///D:/MBPA/ESP/Solutions/EspConsole.build >Base Directory: D:\MBPA\ESP\Solutions. >Target(s) specified: Debug > >Debug.CopyRefs: > > >Progressive.Claims.Shared.ESP.MetaStore.Debug: > > >setup: > > >Progressive.Claims.Shared.ESP.MetaStore: > > [csc] D:\MBPA\ESP\MetaStore\MetaStore\AssemblyInfo.cs is out of date, recompiling. > [csc] Compiling 35 files to D:\MBPA\ESP\Solutions\bin\Debug\Progressive.Claims.Shared.ESP.MetaStore.dll. > [csc] Contents of C:\DOCUME~1\rmayers1\LOCALS~1\Temp\tmp509.tmp. >/fullpaths >"/doc:D:\MBPA\ESP\Solutions\bin\Debug\Progressive.Claims.Shared.ESP.MetaStore.xml" >/debug >"/define:DEBUG" >"/define:TRACE" >"/warn:4" >/nologo >"/target:library" >"/define:DEBUG;TRACE" >"/out:D:\MBPA\ESP\Solutions\bin\Debug\Progressive.Claims.Shared.ESP.MetaStore.dll" >"D:\MBPA\ESP\MetaStore\MetaStore\AddressSpace.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\AssemblyInfo.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\Class1.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\ConnectionManager.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\DatabaseHandlerDispatcher.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\DataBaseManager.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\DataCollector.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\EventHandler.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\ExpressionParser.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDDataCollection.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDDataStatus.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDFilterItem.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDHashtable.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDHelpers.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObject.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObjectBroker.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObjectDispatcher.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObjectInfo.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObjectItem.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObjectItemHandler.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDObjectManager.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDQuery.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDSchema.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MDSchemaItem.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\MetatDataServerErrors.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\NameSpaceManager.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\ProcessAddress.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\ProviderConnectionHelper.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\ReleaseVersionStore.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\ServerEventHandler.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\Utilities\CompressedArray.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\Utilities\Configuration.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\Utilities\ConfigurationFilter.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\Utilities\Timer.cs" >"D:\MBPA\ESP\MetaStore\MetaStore\Utilities\Tree.cs" > > [csc] Starting 'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\csc.exe (@"C:\DOCUME~1\rmayers1\LOCALS~1\Temp\tmp509.tmp" /unsafe- /checked-)' in 'D:\MBPA\ESP\Solutions' > error CS1548: Cryptographic failure while signing assembly 'd:\MBPA\ESP\Solutions\bin\Debug\Progressive.Claims.Shared.ESP.MetaStore.dll' -- 'Error reading key file '..\..\..\..\Keys\ESP.SNK' -- The system cannot find the path specified. ' > >BUILD FAILED > >D:\MBPA\ESP\Solutions\EspConsole.build(42,6): >External Program Failed: C:\WINNT\Microsoft.NET\Framework\v1.1.4322 \csc.exe (return code was 1): >NAnt.Core.BuildException: D:\MBPA\ESP\Solutions\EspConsole.build(42,6): >External Program Failed: C:\WINNT\Microsoft.NET\Framework\v1.1.4322 \csc.exe (return code was 1) > at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() > at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask() > at NAnt.Core.Task.Execute() > at NAnt.Core.Target.Execute() > at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) > at NAnt.Core.Tasks.CallTask.ExecuteTask() > at NAnt.Core.Task.Execute() > at NAnt.Core.Target.Execute() > at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) > at NAnt.Core.Project.Execute() > at NAnt.Core.Project.Run() > >Total time: 0.8 seconds. > **************************************** Hopefully this will be enough for someone who has more experience in NAnt than me to be able to point me in a right direction - I've tried looking through the UseNet, through the NAnt (and NAntContrib) WIKI posts, through the mailing lists, through the docs - I can't seem to find what I'm looking for. Any help here would really be appreciated. Thanks in advance! Jai ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers