From 7ef3eb6b18954d97661f35d049e73605f319b4ad Mon Sep 17 00:00:00 2001 From: Sam Xu Date: Wed, 20 Dec 2017 17:36:52 -0800 Subject: [PATCH] Add nuget package files --- ...penAPI.OData.Reader.Nightly.Release.nuspec | 27 ++++ ...rosoft.OpenAPI.OData.Reader.Release.nuspec | 25 ++++ .../Microsoft.OpenAPI.OData.Reader.csproj | 1 + tool/GetNugetPackageMetadata.proj | 14 ++ tool/WebStack.versions.settings.targets | 125 ++++++++++++++++++ 5 files changed, 192 insertions(+) create mode 100644 src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Nightly.Release.nuspec create mode 100644 src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Release.nuspec create mode 100644 tool/GetNugetPackageMetadata.proj create mode 100644 tool/WebStack.versions.settings.targets diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Nightly.Release.nuspec b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Nightly.Release.nuspec new file mode 100644 index 0000000..9a33f87 --- /dev/null +++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Nightly.Release.nuspec @@ -0,0 +1,27 @@ + + + + Microsoft.OpenApi.OData + Microsoft Open API OData Reader + $VersionFullSemantic$-Nightly$NightlyBuildVersion$ + Microsoft + © Microsoft Corporation. All rights reserved. + This package contains contains the codes you need to convert OData CSDL to Open API Document of Model. + This package contains the codes you need to convert OData CSDL to Open API Document of Model. + en-US + http://github.com/Microsoft/OpenApi.Net.OData + http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm + true + Microsoft OpenApi OData EDM + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Release.nuspec b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Release.nuspec new file mode 100644 index 0000000..776cb95 --- /dev/null +++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.Release.nuspec @@ -0,0 +1,25 @@ + + + + Microsoft.OpenApi.OData + Microsoft Open API OData Reader + $VersionNuGetSemantic$ + Microsoft + © Microsoft Corporation. All rights reserved. + This package contains contains the codes you need to convert OData CSDL to Open API Document of Model. + This package contains the codes you need to convert OData CSDL to Open API Document of Model. + en-US + http://github.com/Microsoft/OpenApi.Net.OData + http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm + true + Microsoft OpenApi OData EDM + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj index 76162d3..5d9551d 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj +++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj @@ -16,6 +16,7 @@ true ..\..\bin\Debug\ ..\..\bin\Release\ + true diff --git a/tool/GetNugetPackageMetadata.proj b/tool/GetNugetPackageMetadata.proj new file mode 100644 index 0000000..fda6c79 --- /dev/null +++ b/tool/GetNugetPackageMetadata.proj @@ -0,0 +1,14 @@ + + + + $([System.DateTime]::Now.ToString("yyyyMMddHHmm")) + + + + + + + + + + \ No newline at end of file diff --git a/tool/WebStack.versions.settings.targets b/tool/WebStack.versions.settings.targets new file mode 100644 index 0000000..5656201 --- /dev/null +++ b/tool/WebStack.versions.settings.targets @@ -0,0 +1,125 @@ + + + + + + 1 + 0 + 0 + beta + + + + + [1.0.0-beta009, 2.0.0) + [7.3.1, 8.0.0) + + + + + 2017 + $([System.Convert]::ToInt16('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))')) + $([System.Convert]::ToString($(VersionDateCode))) + + + + + $(VersionMajor).$(VersionMinor).$(VersionBuild) + $(VersionFullSemantic).$(VersionRevision) + + + + + $(VersionFullSemantic) + $(VersionFullSemantic)-$(VersionRelease) + + + + + true + false + + + + 2017 + INVALID_VersionMajor + INVALID_VersionMajor + INVALID_VersionMinor + INVALID_VersionBuild + $([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd")) + 0 + + + + + $(VersionMajor).$(VersionMinor).$(VersionBuild).$(VersionRevision) + $(VersionMajor).$(VersionMinor).$(VersionBuild).$(VersionRevision) + $(AssemblyFileVersion) + $(IntermediateOutputPath)$(MSBuildProjectName).version.cs + + + + + + + + + + + + Microsoft Corporation. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + @(VersionText) + !$(VersionText.Contains('$(AssemblyFileVersion)')) + + + + + + + $([System.Convert]::ToInt16('$(VersionMajor)')) + $([System.Convert]::ToInt16('$(VersionMinor)')) + $([System.Convert]::ToUInt16('$(VersionBuild)')) + $([System.Convert]::ToInt16('$(VersionRevision)')) + + + + + ValidateVersionValues;ShouldGenerateVersionFile;GenerateVersionFileCore + + + +