Skip to content

Commit

Permalink
Update XSD to include details about ImplicitUsings and Using items
Browse files Browse the repository at this point in the history
Fixes #6745
  • Loading branch information
pranavkm committed Aug 13, 2021
1 parent 62c6327 commit 60cebe1
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/MSBuild/MSBuild/Microsoft.Build.CommonTypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1552,13 +1552,26 @@ elementFormDefault="qualified">
<xs:element name="GenerateSerializationAssemblies" type="msb:StringPropertyType" substitutionGroup="msb:Property"/>
<xs:element name="HostInBrowser" type="msb:boolean" substitutionGroup="msb:Property"/>
<xs:element name="IgnoreImportLibrary" type="msb:boolean" substitutionGroup="msb:Property"/>
<xs:element name="ImplicitUsings" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="ImplicitUsings" _locComment="" -->Enable implicit global usings for the C# project. Possible values are enable, true, and disable.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="enable" />
<xs:enumeration value="true" />
<xs:enumeration value="disable" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Install" type="msb:StringPropertyType" substitutionGroup="msb:Property"/>
<xs:element name="InstallFrom" type="msb:StringPropertyType" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="InstallFrom" _locComment="" -->Web, Unc, or Disk</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AnalysisLevel" type="msb:StringPropertyType" substitutionGroup="msb:Property"/>

<xs:element name="InstallUrl" type="msb:StringPropertyType" substitutionGroup="msb:Property"/>
<xs:element name="IsCodeSharingProject" type="msb:boolean" substitutionGroup="msb:Property"/>
<xs:element name="IsPackable" type="msb:boolean" substitutionGroup="msb:Property">
Expand Down Expand Up @@ -5761,4 +5774,39 @@ elementFormDefault="qualified">
</xs:complexType>
</xs:element>

<xs:element name="Using" substitutionGroup="msb:Item">
<xs:annotation>
<xs:documentation>
<!-- _locID_text="Using" _locComment="" -->A C# global using to add to the project.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="msb:SimpleItemType">
<xs:attribute name="Include" type="xs:string">
<xs:annotation>
<xs:documentation>
<!-- _locID_text="Using_Include" _locComment="" -->The namespace or type identifier to add, e.g. Microsoft.AspNetCore
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Alias" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
<!-- _locID_text="Using_Alias" _locComment="" -->Optional alias for the namespace or type.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Static" type="msb:boolean" use="optional">
<xs:annotation>
<xs:documentation>
<!-- _locID_text="Using_Static" _locComment="" -->Determines whether the identifier should be registered as a static import.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>

</xs:schema>

0 comments on commit 60cebe1

Please sign in to comment.