Gert, 

I appreciate the response.  Below is the target I have setup; which does
compile the assembly without issues, it just won?t install in the GAC.  The
problem must be associated with the command-line compiler parameters. 

I tried the build with verbose output and the result contains too much
confidential information to post publicly to this list server. 

<target name="set.config.DebugBuild"> 
      <property name="build.debug" value="true" /> 
      <property name="build.defines" value="TRACE;DEBUG;LOG4NET;STRONG" /> 
      <property name="current.build.config" value="debug" /> 
      <property name="SHARP.bin" value="SHARP/bin/Debug" /> 
      <property name="SHARP.assembly" value="SHARP/bin/Debug/SHARP.dll" /> 
</target> 

<!-- 
************************************************************************* 
SHARP Build 
************************************************************************* 
--> 

<target name="build.SHARP" 
      description="Builds the SHARP.dll assembly"> 
      <csc target="library" 
            output="${SHARP.assembly}" 
            debug="${build.debug}" 
            define="${build.defines}" > 
            <nowarn> 
                  <warning number="1668" /> 
                  <warning number="0618" /> 
            </nowarn> 
            <sources> 
                  <include name="SHARP/**/*.cs" /> 
            </sources> 
            <references> 
                  <include name="System.dll" /> 
                  <include name="System.Data.dll" /> 
                  <include name="System.Xml.dll" /> 
                  <include name="${log4net.assembly}" /> 
                  <include name="${nunit.assembly}" /> 
                  <include name="${spisapi.dir}\Microsoft.SharePoint.dll" /> 
            </references> 
      </csc> 
</target> 


Again, I appreciate you taking a look at this. 

Sincerely, 

Bob Mixon 
Bob Mixon | Managing Director | ShareSquared, Inc. 
Office: (800) 445-1279 x200 | Direct: (714) 323-5386 |
[EMAIL PROTECTED] | www.sharesquared.com 

The Knowledge Management Solutions Experts-----Original Message----- 
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 2:47 AM 
To: Bob Mixon [SPS MVP]; [email protected] 
Subject: Re: [NAnt-users] csc task in NAnt 

  

  

----- Original Message ----- 

From: "Bob Mixon [SPS MVP]" <[EMAIL PROTECTED]> 

To: <[email protected]> 

Sent: Wednesday, July 12, 2006 5:40 AM 

Subject: [NAnt-users] csc task in NAnt 

  

  

> 

> Greetings all, 

> 

> I have an assembly that is installed in the GAC, with a strong keypair. 

> When I compile this assembly in the .NET IDE, everything work as expected 

> and I can install it in the GAC without incident.  However, when I use the 

> csc task to compile the assembly, I am unable to install it in the GAC. 

> Can 

> someone please tell me what I am missing when using the csc task? 

  

Can you share the relevant part of your build scripts with us, and include a 

verbose log ? 

  

Gert 
-- 
View this message in context: 
http://www.nabble.com/csc-task-in-NAnt-tf1928685.html#a5288244
Sent from the NAnt - Users forum at Nabble.com.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to