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
…6755)

Fixes #6745
  • Loading branch information
pranavkm authored Aug 16, 2021
1 parent c24b4e6 commit 9c14af5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/MSBuild/MSBuild/Microsoft.Build.CommonTypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,18 @@ 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>
Expand Down Expand Up @@ -5761,4 +5773,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 9c14af5

Please sign in to comment.