Skip to content

Commit

Permalink
added nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
micjahn committed Aug 30, 2020
1 parent f175691 commit d7c5ce6
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 3rdParty/NuGet/install_nuspec_intellisense.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@ECHO OFF

ECHO.
ECHO Script needs to be executed with administrator rights
ECHO.

SET scriptPath=%0
SET xsdPath=%scriptPath:install_nuspec_intellisense.cmd=nuspec.xsd%

if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Xml\Schemas" copy %xsdPath% "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Xml\Schemas\"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\Xml\Schemas" copy %xsdPath% "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\Xml\Schemas\"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Xml\Schemas" copy %xsdPath% "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Xml\Schemas\"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Xml\Schemas" copy %xsdPath% "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Xml\Schemas\"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\Xml\Schemas" copy %xsdPath% "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\Xml\Schemas\"

pause
Binary file added 3rdParty/NuGet/nuget.exe
Binary file not shown.
176 changes: 176 additions & 0 deletions 3rdParty/NuGet/nuspec.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="nuspec"
targetNamespace="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"
elementFormDefault="qualified"
xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"
xmlns:mstns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:complexType name="dependency">
<xs:attribute name="id" type="xs:string" use="required" />
<xs:attribute name="version" type="xs:string" use="optional" />
<xs:attribute name="include" type="xs:string" use="optional" />
<xs:attribute name="exclude" type="xs:string" use="optional" />
</xs:complexType>

<xs:complexType name="dependencyGroup">
<xs:sequence>
<xs:element name="dependency" minOccurs="0" maxOccurs="unbounded" type="dependency">
</xs:element>
</xs:sequence>
<xs:attribute name="targetFramework" type="xs:string" use="optional" />
</xs:complexType>

<xs:complexType name="reference">
<xs:attribute name="file" type="xs:string" use="required" />
</xs:complexType>

<xs:complexType name="contentFileEntries">
<xs:attribute name="include" type="xs:string" use="required" />
<xs:attribute name="exclude" type="xs:string" use="optional" />
<xs:attribute name="buildAction" type="xs:string" use="optional" />
<xs:attribute name="copyToOutput" type="xs:boolean" use="optional" />
<xs:attribute name="flatten" type="xs:boolean" use="optional" />
</xs:complexType>

<xs:complexType name="referenceGroup">
<xs:sequence>
<xs:element name="reference" minOccurs="1" maxOccurs="unbounded" type="reference">
</xs:element>
</xs:sequence>
<xs:attribute name="targetFramework" type="xs:string" use="optional" />
</xs:complexType>

<xs:complexType name="frameworkReference">
<xs:attribute name="name" type="xs:string" use="required" />
</xs:complexType>

<xs:complexType name="frameworkReferenceGroup">
<xs:sequence>
<xs:element name="frameworkReference" minOccurs="0" maxOccurs="unbounded" type="frameworkReference" />
</xs:sequence>
<xs:attribute name="targetFramework" type="xs:string" use="required" />
</xs:complexType>

<xs:element name="package">
<xs:complexType>
<xs:sequence>
<xs:element name="metadata" maxOccurs="1" minOccurs="1">
<xs:complexType>
<xs:all>
<xs:element name="id" maxOccurs="1" minOccurs="1" type="xs:string" />
<xs:element name="version" maxOccurs="1" minOccurs="1" type="xs:string" />
<xs:element name="title" maxOccurs="1" minOccurs="0" type="xs:string" />
<xs:element name="authors" maxOccurs="1" minOccurs="1" type="xs:string" />
<xs:element name="owners" maxOccurs="1" minOccurs="0" type="xs:string" />
<xs:element name="licenseUrl" maxOccurs="1" minOccurs="0" type="xs:anyURI" />
<xs:element name="projectUrl" maxOccurs="1" minOccurs="0" type="xs:anyURI" />
<xs:element name="iconUrl" maxOccurs="1" minOccurs="0" type="xs:anyURI" />
<xs:element name="requireLicenseAcceptance" maxOccurs="1" minOccurs="0" type="xs:boolean" />
<xs:element name="developmentDependency" maxOccurs="1" minOccurs="0" type="xs:boolean" />
<xs:element name="description" maxOccurs="1" minOccurs="1" type="xs:string" />
<xs:element name="summary" maxOccurs="1" minOccurs="0" type="xs:string" />
<xs:element name="releaseNotes" maxOccurs="1" minOccurs="0" type="xs:string" />
<xs:element name="copyright" maxOccurs="1" minOccurs="0" type="xs:string" />
<xs:element name="language" maxOccurs="1" minOccurs="0" type="xs:string" default="en-US" />
<xs:element name="tags" maxOccurs="1" minOccurs="0" type="xs:string" />
<xs:element name="serviceable" maxOccurs="1" minOccurs="0" type="xs:boolean" />
<xs:element name="repository" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:attribute name="type" type="xs:string" use="optional" />
<xs:attribute name="url" type="xs:anyURI" use="optional" />
<xs:attribute name="branch" type="xs:string" use="optional" />
<xs:attribute name="commit" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
<xs:element name="license" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="packageTypes" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="packageType" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="version" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="dependencies" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="dependency" type="dependency" />
<xs:element name="group" type="dependencyGroup" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="frameworkAssemblies" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="frameworkAssembly" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="assemblyName" type="xs:string" use="required" />
<xs:attribute name="targetFramework" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="frameworkReferences" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="group" minOccurs="0" maxOccurs="unbounded" type="frameworkReferenceGroup" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="references" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="reference" type="reference" />
<xs:element name="group" type="referenceGroup" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="contentFiles" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="files" type="contentFileEntries" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="minClientVersion" use="optional" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="files" minOccurs="0" maxOccurs="1" nillable="true">
<xs:complexType>
<xs:sequence>
<xs:element name="file" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="src" use="required" type="xs:string" />
<xs:attribute name="target" use="optional" type="xs:string" />
<xs:attribute name="exclude" use="optional" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit d7c5ce6

Please sign in to comment.