Hi Larry,

 

Did you actually set the target framework to "silverlight-2.0"?

 

Try running NAnt in verbose mode (NAnt.exe -verbose .) and attach the build
output.

 

Gert

 

From: Larry Wanzer [mailto:larry.wan...@gmail.com] 
Sent: maandag 12 januari 2009 20:18
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Silverlight

 

I see that the latest beta build of Nant 0.86 is supposed to support
Silverlight 2.  I am running the latest nightly build, but have been unable
to build my Silverlight project.

I'm using the CSC task as follows:

<target name="ExecutiveViewSite" description="Builds the Executive View
Site">
    <csc target="library"
         output="${executive.output.path}/ExecutiveView.Site.dll"
         debug="${debug}"
         noconfig="true"
         nostdlib="true">
      <sources basedir="ExecutiveView.Site">
        <exclude name="**/obj/**" />
        <include name="**/*.cs" />
      </sources>
      <resources basedir="ExecutiveView.Site" dynamicprefix="true"
prefix="ExecutiveView.Site">
        <exclude name="**/obj/**" />
      </resources>
      <references>
        <include name="${reference.path}/Microsoft.Windows.Controls.dll" />
        <include
name="${reference.path}/Microsoft.Windows.Controls.Input.dll" />
        <include name="${reference.path}/silverlight/mscorlib.dll" />
        <include name="${reference.path}/silverlight/RichTextEdit.dll" />
        <include name="${reference.path}/silverlight/system.dll" />
        <include name="${reference.path}/silverlight/System.Core.dll" />
        <include name="${reference.path}/silverlight/System.Net.dll" />
        <include
name="${reference.path}/silverlight/System.Runtime.Serialization.dll" />
        <include
name="${reference.path}/silverlight/System.ServiceModel.dll" />
        <include name="${reference.path}/silverlight/System.Windows.dll" />
        <include
name="${reference.path}/silverlight/System.Windows.Browser.dll" />
        <include
name="${reference.path}/silverlight/System.Windows.Controls.dll" />
        <include
name="${reference.path}/silverlight/System.Windows.Controls.Data.dll" />
        <include name="${reference.path}/silverlight/System.Xml.dll" />
        <include name="${reference.path}/silverlight/System.Xml.Linq.dll" />
        <include
name="${reference.path}/silverlight/System.Xml.Serialization.dll" />
      </references>
    </csc>
  </target>

The error I receive when it tries to compile one of my converters is

[csc]
c:\Development\Turniverse\src\ExecutiveView\ExecutiveView.Site\Converters\Ba
ckgroundColorConverter.cs(21,2
5): error CS1061: 'ExecutiveView.Site.AiringCellBackgroundColors' does not
contain a definition for 'Border_Red' and no extension
method 'Border_Red' accepting a first argument of type
'ExecutiveView.Site.AiringCellBackgroundColors' could be found (are you mis
sing a using directive or an assembly reference?)

Now, in the code, Border_Red is being pulled from App.Resources, which is
the resource dictionary in the App.xaml file.  So I figured I needed to add
the compilation of *.xaml files to the sources section, but that causes the
following errors on all of the xaml files in my project.

[csc]
c:\Development\Turniverse\src\ExecutiveView\ExecutiveView.Site\App.xaml(1,1)
: error CS0116: A namespace does not directly contain members such as fields
or methods

Am I not marking something up correctly?  

I tried to use the MSBuild task, which works fine for compilation, but it
fails after that because my project has post-build events for copying
Windsor Castle config files on successful build; and I haven't found a
command line switch for ignoring post-build events with MSBuild.

Any help would be appreciated.

Larry Wanzer
Turner Broadcasting Systems

Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.10.3/1877 - Release Date: 1/5/2009
7:20 PM

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to