Click here to Skip to main content
12,996,367 members (67,132 online)
Click here to Skip to main content

Stats

106.2K views
1.4K downloads
70 bookmarked
Posted 18 Jan 2009

Converting .NET Assemblies to Silverlight Assemblies

, 3 Mar 2009
Share your .NET assemblies with Silverlight.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SLAsmSettings" targetNamespace="urn:Silverlight-Assmblies/SLAsmSettings.xsd" elementFormDefault="qualified" xmlns="urn:Silverlight-Assmblies/SLAsmSettings.xsd" xmlns:mstns="urn:Silverlight-Assmblies/SLAsmSettings.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ExternAssembly">
    <xs:annotation>
      <xs:documentation>Represents a single Assembly reference in the loaded assembly</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="UnsupportedAttribute" type="xs:string" minOccurs="0" maxOccurs="unbounded" nillable="false">
        <xs:annotation>
          <xs:documentation>Represents an Attribute not supported by the target assembly version that should be removed</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The .Net Assembly Name to Locate</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Version" type="Version" use="required">
      <xs:annotation>
        <xs:documentation>The Target version of the referenced Assembly</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="PublicKeyToken" type="PublicKeyToken" use="required">
      <xs:annotation>
        <xs:documentation>The Target Public Key of the referenced Assembly</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="Version">
    <xs:restriction base="xs:string">
      <xs:pattern value="^(\d{1,5}.){3}\d{1,5}$" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PublicKeyToken">
    <xs:restriction base="xs:string">
      <xs:pattern value="^([A-F0-9]{2,2} ){7}[A-F0-9]{2,2}$" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="SLAsm.Settings">
    <xs:complexType>
      
      <xs:sequence>
        <xs:element name="ExternAssembly" type="ExternAssembly" minOccurs="1" maxOccurs="unbounded" />
      </xs:sequence>
      <xs:attribute name="ILAssembler" type="xs:string" use="optional">
        <xs:annotation>
          <xs:documentation>The Location of the IL Assembler (ILAsm.exe)</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="ILDisassembler" type="xs:string" use="required">
        <xs:annotation>
          <xs:documentation>The Location of the IL Disassembler (ILDAsm.exe)</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
</xs:schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Suriel Bendahan
Software Developer (Senior) VCM Software
Israel Israel
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170609.2 | Last Updated 3 Mar 2009
Article Copyright 2009 by Suriel Bendahan
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid