Stuff that may be useful to debug my original failure as follows (Foo's replacing my client's name):
--
[solution] Building Foo.Server [debug]...
[copy] Copying 2 files to C:\tools\eclipse\workspace\psa\src\Common.Server\bin\Debug\.
[copy] Copying 15 files to C:\tools\eclipse\workspace\psa\src\Common.Server\bin\Debug\.
[compile] error CS1566: Error reading resource file 'c:\Documents and Settings\mroberts.THOUGHTWORKS\Local Settings\Temp\kyetias_\Foo.Server.BaseService.resources' -- 'The system cannot find the file specified. '
C:\Documents and Settings\mroberts.THOUGHTWORKS\Local Settings\Temp\kyetias_>dir
Volume in drive C has no label.
Volume Serial Number is 3CBD-999B
Directory of C:\Documents and Settings\mroberts.THOUGHTWORKS\Local Settings\Temp\kyetias_
08/19/2003 05:38 PM <DIR> .
08/19/2003 05:38 PM <DIR> ..
08/19/2003 05:38 PM 1,454 compile-commands.txt
1 File(s) 1,454 bytes
2 Dir(s) 13,689,982,976 bytes freeC:\Documents and Settings\mroberts.THOUGHTWORKS\Local Settings\Temp\kyetias_>type compile-commands.txt
/target:library
/nologo
/filealign:4096
/define:DEBUG;TRACE
/warn:4
/baseaddress:285212672
/optimize-
/debug+
/incremental-
/checked-
/unsafe-
/warnaserror-
/out:"C:\tools\eclipse\workspace\psa\src\Common.Server\bin\Debug\Foo.Common.Server.dll"
/r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll"
/r:"C:\tools\eclipse\workspace\psa\src\Microsoft.ApplicationBlocks.Data\bin\Debug\Microsoft.ApplicationBlocks.Data.dll"
/r:"C:\tools\eclipse\workspace\psa\lib\FooDirAuthMgr.dll"
/r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
/r:"C:\tools\eclipse\workspace\psa\lib\Microsoft.EnterpriseInstrumentation.Schema.dll"
/r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll"
/r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
/r:"C:\tools\eclipse\workspace\psa\lib\nunit.framework.dll"
/r:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Services.dll"
/res:"C:\DOCUME~1\MROBER~1.THO\LOCALS~1\Temp\kyetias_\Foo.Server.BaseService.resources"
<snip>
C:\tools\eclipse\workspace\psa>type src\Common.Server\Common.Server.csproj
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{286F8FB6-B313-4E7D-969C-2538496BFBCD}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "Foo.Common.Server"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Library"
PreBuildEvent = ""
PostBuildEvent = ""
RootNamespace = "Foo.Common.Server"
RunPostBuildEvent = "OnBuildSuccess"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "TRACE"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "true"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
/>
<Reference
Name = "nunit.framework"
AssemblyName = "nunit.framework"
HintPath = "..\..\lib\nunit.framework.dll"
/>
<Reference
Name = "Microsoft.EnterpriseInstrumentation.Schema"
AssemblyName = "Microsoft.EnterpriseInstrumentation.Schema"
HintPath = "..\..\lib\Microsoft.EnterpriseInstrumentation.Schema.dll"
/>
<Reference
Name = "System.Web"
AssemblyName = "System.Web"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll"
/>
<Reference
Name = "System.Web.Services"
AssemblyName = "System.Web.Services"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Service
/>
<Reference
Name = "FooDirAuthMgr"
AssemblyName = "FooAuthMgr"
HintPath = "..\..\lib\FooAuthMgr.dll"
/>
<Reference
Name = "Microsoft.ApplicationBlocks.Data"
Project = "{30933672-466E-4F67-A111-ABF267539146}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "AssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "BaseService.cs"
SubType = "Component"
BuildAction = "Compile"
/>
<File
RelPath = "BaseService.resx"
DependentUpon = "BaseService.cs"
BuildAction = "EmbeddedResource"
/>
<File
RelPath = "Builder.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "EnterpriseInstrumentation.config"
BuildAction = "None"
/>
.
.
</Include>
</Files>
</CSHARP>
</VisualStudioProject>
--
Ian MacLean wrote:
Jaroslaw, Patch applied to the main branch. Thanks.
Ian
Hi!
I noticed that *.resx files aren't handled properly by the <solution> task.
They produce ArgumentNullException from inside ResGenTask:
---------------------------------- System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at NAnt.DotNet.Tasks.ResGenTask.GetOutputFile(String filename) in
X:\work\nant\src\NAnt.DotNet\Tasks\ResGenTask.cs:line 271
at NAnt.DotNet.Tasks.ResGenTask.ExecuteTask() in
X:\work\nant\src\NAnt.DotNet\Tasks\ResGenTask.cs:line 174
at NAnt.Core.Task.Execute() in X:\work\nant\src\NAnt.Core\Task.cs:line
142
at NAnt.VSNet.Tasks.Resource.CompileResx() in
X:\work\nant\src\NAnt.VSNet\Resource.cs:line 233
at NAnt.VSNet.Tasks.Resource.Compile(ConfigurationSettings cs, Boolean
bShowCommands) in X:\work\nant\src\NAnt.VSNet\Resource.cs:line 53
at NAnt.VSNet.Tasks.Project.Compile(String strConfiguration, ArrayList
alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
in X:\work\nant\src\NAnt.VSNet\Project.cs:line 298
at NAnt.VSNet.Tasks.Solution.Compile(String strConfiguration, ArrayList
alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
in X:\work\nant\src\NAnt.VSNet\Solution.cs:line 257
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
X:\work\nant\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 112
at NAnt.Core.Task.Execute() in X:\work\nant\src\NAnt.Core\Task.cs:line
142
at NAnt.Core.Target.Execute() in
X:\work\nant\src\NAnt.Core\Target.cs:line 137
at NAnt.Core.Project.Execute(String targetName) in
X:\work\nant\src\NAnt.Core\Project.cs:line 613
at NAnt.Core.Project.Execute() in
X:\work\nant\src\NAnt.Core\Project.cs:line 596
at NAnt.Core.Project.Run() in X:\work\nant\src\NAnt.Core\Project.cs:line
637
-----------------------------------
looks like <solution> doesn't provide "BaseDirectory" and "ToDirectory"
properties for ResGenTask.
I found that anything other than null which is a correct path will do for
these parameters, so I made a simple change:
Index: Resource.cs =================================================================== RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Resource.cs,v retrieving revision 1.10 diff -u -r1.10 Resource.cs --- Resource.cs 23 Jul 2003 17:24:14 -0000 1.10 +++ Resource.cs 12 Aug 2003 18:50:06 -0000 @@ -226,6 +226,8 @@ rt.Output = strOutFile; rt.Verbose = false; rt.Project = _nanttask.Project; + rt.BaseDirectory = Path.GetDirectoryName(strInFile); + rt.ToDirectory = Path.GetDirectoryName(strInFile);
rt.Project.Indent(); rt.Execute();
Can anyone commit it to CVS? Also, can you please take a look at my previous
patch for case sensitivity problems?
Jarek
------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
