Re: [nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

2008-03-17 Thread Martin Aliger
Hello,

I'm not sure that we can support MSBuild projects (.sln saved in VS 2005 and
2008) under Mono.

Currently we need MSBuild executables on the machine, and those are
distributed by .net framework itself. Mono came with XBuild system but I
didn't check how it works in reality (see
http://www.mono-project.com/Microsoft.Build)

You can try to copy Microsoft.Build assemblies to your Mono machine and try
to run them there. It can work. It can fail as well, being completely
unsupported scenario. Moreover, I'm not sure its legally valid.


In any case System.ArgumentNullException is not the best message you
should get. I'll look on this one.



Ing. Martin Aliger
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
SourceForge.net
Sent: Sunday, March 16, 2008 12:45 PM
To: [EMAIL PROTECTED]
Subject: [nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

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=detailatid=402868aid=1915375group_i
d=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 () [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType
type) [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x0] 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader
textReader) [0x0] --- End of inner exception stack trace ---

  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader
textReader) [0x0] 
  at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml)
[0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.ProjectFactory.LoadProject (NAnt.VSNet.SolutionBase
solution, NAnt.VSNet.Tasks.SolutionTask

[nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

2008-03-16 Thread SourceForge.net
Bugs item #1915375, was opened at 2008-03-16 13:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=402868aid=1915375group_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 () [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType 
type) [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x0] 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] --- End of inner exception stack trace ---

  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] 
  at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml) 
[0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache gacCache, 
NAnt.VSNet.ReferencesResolver refResolver, System.Collections.Hashtable 
explicitProjectDependencies) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.WhidbeySolutionProvider.GetInstance (System.String 
solutionContent, NAnt.VSNet.Tasks.SolutionTask solutionTask, 
System.CodeDom.Compiler.TempFileCollection tfc, NAnt.Core.Util.GacCache 
gacCache, 

[nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

2008-03-16 Thread SourceForge.net
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=detailatid=402868aid=1915375group_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 () [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType 
type) [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x0] 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] --- End of inner exception stack trace ---

  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] 
  at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml) 
[0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache gacCache, 
NAnt.VSNet.ReferencesResolver refResolver, System.Collections.Hashtable 
explicitProjectDependencies) [0x0] 
  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) [0x0] 
  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 

[nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

2008-03-16 Thread SourceForge.net
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=detailatid=402868aid=1915375group_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 () [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType 
type) [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x0] 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] --- End of inner exception stack trace ---

  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] 
  at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml) 
[0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache gacCache, 
NAnt.VSNet.ReferencesResolver refResolver, System.Collections.Hashtable 
explicitProjectDependencies) [0x0] 
  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) [0x0] 
  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 

[nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

2008-03-16 Thread SourceForge.net
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=detailatid=402868aid=1915375group_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 () [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType 
type) [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x0] 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] --- End of inner exception stack trace ---

  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] 
  at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml) 
[0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache gacCache, 
NAnt.VSNet.ReferencesResolver refResolver, System.Collections.Hashtable 
explicitProjectDependencies) [0x0] 
  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) [0x0] 
  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 

[nant-dev] [ nant-Bugs-1915375 ] Solution task fails on Mono 1.9

2008-03-16 Thread SourceForge.net
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=detailatid=402868aid=1915375group_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 () [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType 
type) [0x0] 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x0] 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x0] 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] --- End of inner exception stack trace ---

  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader 
textReader) [0x0] 
  at Microsoft.Build.BuildEngine.Project.LoadXml (System.String projectXml) 
[0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  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) [0x0] 
  at NAnt.VSNet.SolutionBase.LoadProjects (NAnt.Core.Util.GacCache gacCache, 
NAnt.VSNet.ReferencesResolver refResolver, System.Collections.Hashtable 
explicitProjectDependencies) [0x0] 
  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) [0x0] 
  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