You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matt McAuliffe <mm...@profiles.com> on 2003/02/17 21:32:29 UTC

problem using

Hi all,
 
I'm compiling .NET components and I currently use <exec> to do all of
the work however I would like to convert the build file to use the <csc>
task.  I seem to have problems with the ' character.
I've searched the archives and I'm not able to find a similar error.
Below is the output:
 
version_info:
     [echo] --(FPI)--> Java version = 1.3
     [echo] --(FPI)--> Apache Ant version 1.5.1 compiled on October 2
2002
     [echo] --(FPI)--> Windows XP
 
build_websvc:
     [echo] -- FPI--> building FPWebService.dll
      [csc] compiling 14 files
      [csc] Executing 'csc' with arguments:
      [csc] '/nologo'
      [csc] '/debug-'
      [csc] '/incremental-'
      [csc] '/optimize+'
      [csc] '/target:library'
      [csc] '/warn:3'
      [csc]
'/out:C:\swdev\build\distrib\SoftwareDevelopment\Products\WebService\FPW
ebConfig\bin\FPWebConfig.dll'
      [csc] '/nostdlib-'
      [csc]
'/reference:Accessibility.dll;cscompmgd.dll;CustomMarshalers.dll;Mscorcf
g.dll;System.Configuration.Install.dll;System.Data.dll;System.Des
gn.dll;System.DirectoryServices.dll;System.EnterpriseServices.dll;System
.dll;System.Drawing.Design.dll;System.Drawing.dll;System.Management.dll;
Syste
.Messaging.dll;System.Runtime.Remoting.dll;System.Runtime.Serialization.
Formatters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;System
.Web.
ll;System.Web.RegularExpressions.dll;System.Web.Services.dll;System.Wind
ows.Forms.dll;System.XML.dll;'
      [csc] '/fullpaths'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfig\AssemblyInfo.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfig\Configuration.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfig\FPConfiguration.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\AssemblyInfo.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\CalcService.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\CalcServiceList.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\Default.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\Global.asax.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\LoggingService.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\MSMQServer.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\MSMQServerList.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\ReportManager.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\WebService.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\WebServiceList.aspx.cs'
      [csc]
      [csc] The ' characters around the executable and arguments are
      [csc] not part of the command.
 
BUILD FAILED
file:C:/SoftwareDevelopment/dot_net/FPWebService/FPWebConfigurationSolut
ion/build.xml:71: CSC failed: java.io.IOException: CreateProcess: csc
/nologo
/debug- /incremental- /optimize+ /target:library /warn:3
/out:C:\swdev\build\distrib\SoftwareDevelopment\Products\WebService\FPWe
bConfig\bin\FPWebCon
ig.dll /nostdlib-
/reference:Accessibility.dll;cscompmgd.dll;CustomMarshalers.dll;Mscorcfg
.dll;System.Configuration.Install.dll;System.Data.dll;Syste
.Design.dll;System.DirectoryServices.dll;System.EnterpriseServices.dll;S
ystem.dll;System.Drawing.Design.dll;System.Drawing.dll;System.Management
.dll;
ystem.Messaging.dll;System.Runtime.Remoting.dll;System.Runtime.Serializa
tion.Formatters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;S
ystem
Web.dll;System.Web.RegularExpressions.dll;System.Web.Services.dll;System
.Windows.Forms.dll;System.XML.dll; /fullpaths
C:\SoftwareDevelopment\dot_net\
PWebService\FPWebConfigurationSolution\FPWebConfig\AssemblyInfo.cs
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfig
Configuration.cs
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfD
 
Total time: 1 second
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution>
 

Thanks in advance,
 

___________________________________________

Matthew McAuliffe

 

RE: problem using

Posted by Rick Sansburn <rs...@clareos.com>.
Make sure that the location of csc.exe is in you path.

Csc.exe is located in the folder
C:\WINNT\Microsoft.NET\Framework\v1.0.3705

The v1.0.3705 folder may be different depending on your build of the
.NET framework.

-- Rick


-----Original Message-----
From: Matt McAuliffe [mailto:mmcauliffe@profiles.com] 
Sent: Monday, February 17, 2003 3:32 PM
To: user@ant.apache.org
Subject: problem using <csc>


Hi all,
 
I'm compiling .NET components and I currently use <exec> to do all of
the work however I would like to convert the build file to use the <csc>
task.  I seem to have problems with the ' character. I've searched the
archives and I'm not able to find a similar error. Below is the output:
 
version_info:
     [echo] --(FPI)--> Java version = 1.3
     [echo] --(FPI)--> Apache Ant version 1.5.1 compiled on October 2
2002
     [echo] --(FPI)--> Windows XP
 
build_websvc:
     [echo] -- FPI--> building FPWebService.dll
      [csc] compiling 14 files
      [csc] Executing 'csc' with arguments:
      [csc] '/nologo'
      [csc] '/debug-'
      [csc] '/incremental-'
      [csc] '/optimize+'
      [csc] '/target:library'
      [csc] '/warn:3'
      [csc]
'/out:C:\swdev\build\distrib\SoftwareDevelopment\Products\WebService\FPW
ebConfig\bin\FPWebConfig.dll'
      [csc] '/nostdlib-'
      [csc]
'/reference:Accessibility.dll;cscompmgd.dll;CustomMarshalers.dll;Mscorcf
g.dll;System.Configuration.Install.dll;System.Data.dll;System.Des
gn.dll;System.DirectoryServices.dll;System.EnterpriseServices.dll;System
.dll;System.Drawing.Design.dll;System.Drawing.dll;System.Management.dll;
Syste
.Messaging.dll;System.Runtime.Remoting.dll;System.Runtime.Serialization.
Formatters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;System
.Web.
ll;System.Web.RegularExpressions.dll;System.Web.Services.dll;System.Wind
ows.Forms.dll;System.XML.dll;'
      [csc] '/fullpaths'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfig\AssemblyInfo.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfig\Configuration.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfig\FPConfiguration.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\AssemblyInfo.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\CalcService.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\CalcServiceList.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\Default.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\Global.asax.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\LoggingService.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\MSMQServer.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\MSMQServerList.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\ReportManager.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\WebService.aspx.cs'
      [csc]
'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\
FPWebConfigEditor\WebServiceList.aspx.cs'
      [csc]
      [csc] The ' characters around the executable and arguments are
      [csc] not part of the command.
 
BUILD FAILED
file:C:/SoftwareDevelopment/dot_net/FPWebService/FPWebConfigurationSolut
ion/build.xml:71: CSC failed: java.io.IOException: CreateProcess: csc
/nologo
/debug- /incremental- /optimize+ /target:library /warn:3
/out:C:\swdev\build\distrib\SoftwareDevelopment\Products\WebService\FPWe
bConfig\bin\FPWebCon
ig.dll /nostdlib-
/reference:Accessibility.dll;cscompmgd.dll;CustomMarshalers.dll;Mscorcfg
.dll;System.Configuration.Install.dll;System.Data.dll;Syste
.Design.dll;System.DirectoryServices.dll;System.EnterpriseServices.dll;S
ystem.dll;System.Drawing.Design.dll;System.Drawing.dll;System.Management
.dll;
ystem.Messaging.dll;System.Runtime.Remoting.dll;System.Runtime.Serializa
tion.Formatters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;S
ystem
Web.dll;System.Web.RegularExpressions.dll;System.Web.Services.dll;System
.Windows.Forms.dll;System.XML.dll; /fullpaths
C:\SoftwareDevelopment\dot_net\
PWebService\FPWebConfigurationSolution\FPWebConfig\AssemblyInfo.cs
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfig
Configuration.cs
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfD
 
Total time: 1 second
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution>
 

Thanks in advance,
 

___________________________________________

Matthew McAuliffe