Bugs item #1915375, was opened at 2008-03-16 13:23
Message generated for change (Comment added) made by the_fiddler
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1915375&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Framework support
Group: 0.86
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephen A (the_fiddler)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solution task fails on Mono 1.9
Initial Comment:
Using the latest nightly (10 February), the solution task fails on Mono 1.9
(but works on .Net 2.0). The error reports a missing Microsoft.CSHARP.targets
file in /usr/local/lib/mono/2.0/
Indeed, I only have a Microsoft.CSharp.targets file (and not CSHARP), however
creating a symlink does not seem to help.
Here is the build file and the output:
Build file:
$ cat OpenTK.build
<?xml version="1.0" ?>
<project name="OpenTK" default="build">
<echo message="Using '${nant.settings.currentframework}' Framework"/>
<property name="bin.dir" value="bin" />
<property name="obj.dir" value="obj" />
<property name="doc.dir" value="doc" />
<property name="project.main.dir" value="${project::get-base-directory()}"
/>
<target name="build" description="">
<solution solutionfile="OpenTK.sln" configuration="Release" />
</target>
<target name="debug" description="">
<solution solutionfile="OpenTK.sln" configuration="Debug" />
</target>
</project>
Build error:
$ nant -v
NAnt 0.86 (Build 0.86.2962.0; nightly; 2/10/2008)
Copyright (C) 2001-2008 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///home/stapostol/Documents/opentk/opentk/Build/OpenTK.build
Target framework: Mono 2.0 Profile
Target(s) specified: build
[echo] Using 'mono-2.0' Framework
build:
[solution] Starting solution build.
BUILD FAILED
INTERNAL ERROR
Microsoft.Build.BuildEngine.InvalidProjectFileException: Imported project:
"/usr/local/lib/mono/2.0/Microsoft.CSHARP.Targets" does not exist. --->
Microsoft.Build.BuildEngine.InvalidProjectFileException: Imported project:
"/usr/local/lib/mono/2.0/Microsoft.CSHARP.Targets" does not exist.
at Microsoft.Build.BuildEngine.Import.Evaluate () [0x00000]
at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType
type) [0x00000]
at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x00000]
at Microsoft.Build.BuildEngine.Project.Evaluate () [0x00000]
at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x00000]
at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader
textReader) [0x00000] --- End of inner exception stack trace ---
at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader
textReader) [0x00000]
at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml)
[0x00000]
at NAnt.MSBuild.MSBuildProject..ctor (NAnt.VSNet.SolutionBase solution,
System.String projectPath, System.Xml.XmlElement xmlDefinition,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver, System.IO.DirectoryInfo
outputDir) [0x00000]
at NAnt.MSBuild.MSBuildProjectProvider.GetInstance (NAnt.VSNet.SolutionBase
solution, System.String projectPath, System.Xml.XmlElement xmlDefinition,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver, System.IO.DirectoryInfo
outputDir) [0x00000]
at NAnt.VSNet.ProjectFactory.CreateProject (NAnt.VSNet.SolutionBase solution,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver referencesResolver,
System.IO.DirectoryInfo outputDir, System.String projectPath) [0x00000]
at NAnt.VSNet.ProjectFactory.LoadProject (NAnt.VSNet.SolutionBase solution,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver referencesResolver,
System.IO.DirectoryInfo outputDir, System.String path) [0x00000]
at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache gacCache,
NAnt.VSNet.ReferencesResolver refResolver, System.Collections.Hashtable
explicitProjectDependencies) [0x00000]
at NAnt.VSNet.WhidbeySolution..ctor (System.String solutionContent,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.WhidbeySolutionProvider.GetInstance (System.String
solutionContent, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.SolutionFactory.LoadSolution (NAnt.VSNet.Tasks.SolutionTask
solutionTask, System.CodeDom.Compiler.TempFileCollection tfc,
NAnt.Core.Util.GacCache gacCache, NAnt.VSNet.ReferencesResolver refResolver)
[0x00000]
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask () [0x00000]
at NAnt.Core.Task.Execute () [0x00000]
Please send bug report to [EMAIL PROTECTED]
Total time: 0.9 seconds.
----------------------------------------------------------------------
>Comment By: Stephen A (the_fiddler)
Date: 2008-03-16 13:26
Message:
Logged In: YES
user_id=1602001
Originator: YES
Follow up. Creating a symlink *does* help (has to be
Microsoft.CSHARP.Targets), but the build fails later on, with:
Target framework: Mono 2.0 Profile
Target(s) specified: build
[echo] Using 'mono-2.0' Framework
build:
[solution] Starting solution build.
BUILD FAILED
INTERNAL ERROR
System.ArgumentNullException: Argument cannot be null.
Parameter name: path
at System.IO.FileSystemInfo.CheckPath (System.String path) [0x00000]
at System.IO.DirectoryInfo..ctor (System.String path) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:.ctor
(string)
at NAnt.MSBuild.MSBuildConfiguration..ctor (NAnt.MSBuild.MSBuildProject
project, Microsoft.Build.BuildEngine.Project msproj,
NAnt.VSNet.Configuration projectConfig) [0x00000]
at NAnt.MSBuild.MSBuildProject..ctor (NAnt.VSNet.SolutionBase solution,
System.String projectPath, System.Xml.XmlElement xmlDefinition,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver,
System.IO.DirectoryInfo outputDir) [0x00000]
at NAnt.MSBuild.MSBuildProjectProvider.GetInstance
(NAnt.VSNet.SolutionBase solution, System.String projectPath,
System.Xml.XmlElement xmlDefinition, NAnt.VSNet.Tasks.SolutionTask
solutionTask, System.CodeDom.Compiler.TempFileCollection tfc,
NAnt.Core.Util.GacCache gacCache, NAnt.VSNet.ReferencesResolver
refResolver, System.IO.DirectoryInfo outputDir) [0x00000]
at NAnt.VSNet.ProjectFactory.CreateProject (NAnt.VSNet.SolutionBase
solution, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver referencesResolver,
System.IO.DirectoryInfo outputDir, System.String projectPath) [0x00000]
at NAnt.VSNet.ProjectFactory.LoadProject (NAnt.VSNet.SolutionBase
solution, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver referencesResolver,
System.IO.DirectoryInfo outputDir, System.String path) [0x00000]
at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver,
System.Collections.Hashtable explicitProjectDependencies) [0x00000]
at NAnt.VSNet.WhidbeySolution..ctor (System.String solutionContent,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.WhidbeySolutionProvider.GetInstance (System.String
solutionContent, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.SolutionFactory.LoadSolution
(NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask () [0x00000]
at NAnt.Core.Task.Execute () [0x00000]
Please send bug report to [EMAIL PROTECTED]
Total time: 1 seconds.
----------------------------------------------------------------------
Comment By: Stephen A (the_fiddler)
Date: 2008-03-16 13:26
Message:
Logged In: YES
user_id=1602001
Originator: YES
Follow up. Creating a symlink *does* help (has to be
Microsoft.CSHARP.Targets), but the build fails later on, with:
Target framework: Mono 2.0 Profile
Target(s) specified: build
[echo] Using 'mono-2.0' Framework
build:
[solution] Starting solution build.
BUILD FAILED
INTERNAL ERROR
System.ArgumentNullException: Argument cannot be null.
Parameter name: path
at System.IO.FileSystemInfo.CheckPath (System.String path) [0x00000]
at System.IO.DirectoryInfo..ctor (System.String path) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:.ctor
(string)
at NAnt.MSBuild.MSBuildConfiguration..ctor (NAnt.MSBuild.MSBuildProject
project, Microsoft.Build.BuildEngine.Project msproj,
NAnt.VSNet.Configuration projectConfig) [0x00000]
at NAnt.MSBuild.MSBuildProject..ctor (NAnt.VSNet.SolutionBase solution,
System.String projectPath, System.Xml.XmlElement xmlDefinition,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver,
System.IO.DirectoryInfo outputDir) [0x00000]
at NAnt.MSBuild.MSBuildProjectProvider.GetInstance
(NAnt.VSNet.SolutionBase solution, System.String projectPath,
System.Xml.XmlElement xmlDefinition, NAnt.VSNet.Tasks.SolutionTask
solutionTask, System.CodeDom.Compiler.TempFileCollection tfc,
NAnt.Core.Util.GacCache gacCache, NAnt.VSNet.ReferencesResolver
refResolver, System.IO.DirectoryInfo outputDir) [0x00000]
at NAnt.VSNet.ProjectFactory.CreateProject (NAnt.VSNet.SolutionBase
solution, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver referencesResolver,
System.IO.DirectoryInfo outputDir, System.String projectPath) [0x00000]
at NAnt.VSNet.ProjectFactory.LoadProject (NAnt.VSNet.SolutionBase
solution, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver referencesResolver,
System.IO.DirectoryInfo outputDir, System.String path) [0x00000]
at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver,
System.Collections.Hashtable explicitProjectDependencies) [0x00000]
at NAnt.VSNet.WhidbeySolution..ctor (System.String solutionContent,
NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.WhidbeySolutionProvider.GetInstance (System.String
solutionContent, NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.SolutionFactory.LoadSolution
(NAnt.VSNet.Tasks.SolutionTask solutionTask,
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache
gacCache, NAnt.VSNet.ReferencesResolver refResolver) [0x00000]
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask () [0x00000]
at NAnt.Core.Task.Execute () [0x00000]
Please send bug report to [EMAIL PROTECTED]
Total time: 1 seconds.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1915375&group_id=31650
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers