You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Joe Mahlong <jo...@absa.co.za> on 2004/02/18 09:40:43 UTC
Build .Net Apps with Ant 1.6.1
Hi,
Has anyone succeeded so far to build .Net applications and does one need the dotnettasks.jar to be able to run .net tasks.
I get the following error message when trying to build .NET Application.
DMDLLINI.xml:39: csc failed: java.io.IOException: CreateProcess: csc /nologo /debug+ /d:RELEASE;def3 /optimize- /out:\DMDLLINI.dll /target:library /nostdlib- /warn:3 /fullpaths /incremental- DMDLLINI\Class1.cs \DMDLLINI\AssemblyInfo.cs error=2
at org.apache.tools.ant.taskdefs.optional.dotnet.NetCommand.runCommand(NetCommand.java:300)
at org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask.addFilesAndExecute(DotnetBaseMatchingTask.java:171)
at org.apache.tools.ant.taskdefs.optional.dotnet.DotnetCompile.execute(DotnetCompile.java:807)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Please Help
Regards
Joe
______________________________________________
E-mail Disclaimer and Company Information
http://www.absa.co.za/ABSA/EMail_Disclaimer
Re: Build .Net Apps with Ant 1.6.1
Posted by Joe Mahlong <jo...@absa.co.za>.
Thanks Stefan, CSC was not on my path...
----- Original Message -----
From: "Stefan Bodewig" <bo...@apache.org>
To: <us...@ant.apache.org>
Sent: Wednesday, February 18, 2004 11:01 AM
Subject: Re: Build .Net Apps with Ant 1.6.1
> On Wed, 18 Feb 2004, Joe Mahlong <jo...@absa.co.za> wrote:
>
> > Has anyone succeeded so far to build .Net applications
>
> Only to a very limited degree.
>
> > and does one need the dotnettasks.jar to be able to run .net tasks.
>
> To run the <csc> task you need ant-nodeps.jar, nothing else.
> What is dotnettasks.jar?
>
> > CreateProcess: ... error=2
>
> I'm not a Windows expert, but ISTR that error=2 means that the
> executable (csc.exe in thins case) is not on your Path.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
______________________________________________
E-mail Disclaimer and Company Information
http://www.absa.co.za/ABSA/EMail_Disclaimer
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Build .Net Apps with Ant 1.6.1
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 18 Feb 2004, Joe Mahlong <jo...@absa.co.za> wrote:
> Has anyone succeeded so far to build .Net applications
Only to a very limited degree.
> and does one need the dotnettasks.jar to be able to run .net tasks.
To run the <csc> task you need ant-nodeps.jar, nothing else.
What is dotnettasks.jar?
> CreateProcess: ... error=2
I'm not a Windows expert, but ISTR that error=2 means that the
executable (csc.exe in thins case) is not on your Path.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org