ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Sansburn" <rsansb...@clareos.com>
Subject RE: problem using <csc>
Date Mon, 17 Feb 2003 21:30:37 GMT
Build the two different binaries with two different targets making sure
to set the srcDir attribute for both targets.  If the binaries share
files/directories then you would want to add the excludes or
excludesfile attribute to each target. 

You would also want the FPWebConfigEditor.dll target to depend on the
FPWebConfig.dll.

Here is the list of tasks for the <csc> task
http://ant.apache.org/manual/OptionalTasks/dotnet.html



-----Original Message-----
From: Matt McAuliffe [mailto:mmcauliffe@profiles.com] 
Sent: Monday, February 17, 2003 4:21 PM
To: Ant Users List
Subject: RE: problem using <csc>


Yes, they are 2 separate binaries:


    <exec executable="${csc.exe}"
  	  failonerror="true">
      <arg line="/t:library /out:${output.dir}/bin/FPWebConfig.dll
${dotnet.src}\FPWebConfigurationSolution\FPWebConfig\*.cs"/>
    </exec>    

    <exec executable="${csc.exe}"
	  failonerror="true">
      <arg line="/define:VBASIC
/reference:${output.dir}/bin/FPWebConfig.dll /t:library
/out:${output.dir}/bin/FPWebConfigEditor.dll ${src.root}\*.cs"/>
    </exec> 

-----Original Message-----
From: Rick Sansburn [mailto:rsansburn@clareos.com] 
Sent: Monday, February 17, 2003 1:10 PM
To: 'Ant Users List'
Subject: RE: problem using <csc>


You have 2 AssemblyInfo.cs files.

One in ...\FPWebConfig\ and the other in ...\FPWebConfigEditor\

I could never get my project to run correctly after being built with
csc.exe.  What <exec> command were you running?

-- Rick


-----Original Message-----
From: Matt McAuliffe [mailto:mmcauliffe@profiles.com] 
Sent: Monday, February 17, 2003 3:49 PM
To: Ant Users List
Subject: RE: problem using <csc>


Thanks, I did that now I'm getting the following.  It's showing
compilation errors when it builds fine with the <exec> task.


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.Desi
gn.dll;System.DirectoryServices.dll;System.EnterpriseServices.dll;System
.dll;System.Drawing.Design.dll;System.Drawing.dll;System.Management.dll;
System
.Messaging.dll;System.Runtime.Remoting.dll;System.Runtime.Serialization.
Formatters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;System
.Web.d
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.
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(62,12): error CS0579: Duplicate '
AssemblyKeyName' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(61,12): error CS0579: Duplicate '
AssemblyKeyFile' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(60,12): error CS0579: Duplicate '
AssemblyDelaySign' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(29,12): error CS0579: Duplicate '
AssemblyVersion' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(16,12): error CS0579: Duplicate '
AssemblyCulture' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(15,12): error CS0579: Duplicate '
AssemblyTrademark' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(14,12): error CS0579: Duplicate '
AssemblyCopyright' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(13,12): error CS0579: Duplicate '
AssemblyProduct' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(12,12): error CS0579: Duplicate '
AssemblyCompany' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(11,12): error CS0579: Duplicate '
AssemblyConfiguration' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(10,12): error CS0579: Duplicate '
AssemblyDescription' attribute
      [csc]
C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\F
PWebConfigEditor\AssemblyInfo.cs(9,12): error CS0579: Duplicate 'A
ssemblyTitle' attribute

BUILD FAILED
file:C:/SoftwareDevelopment/dot_net/FPWebService/FPWebConfigurationSolut
ion/build.xml:71: CSC returned: 1

-----Original Message-----
From: Rick Sansburn [mailto:rsansburn@clareos.com] 
Sent: Monday, February 17, 2003 12:37 PM
To: 'Ant Users List'
Subject: RE: problem using <csc>


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

 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message