Click here to Skip to main content
15,886,005 members
Articles / Programming Languages / XML

Converting .NET Assemblies to Silverlight Assemblies

Rate me:
Please Sign up or sign in to vote.
4.92/5 (15 votes)
3 Mar 2009CPOL5 min read 151.4K   1.4K   69  
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)


Written By
Software Developer (Senior) VCM Software
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions