From 82f949d5a38c578f833b4fd3c60c1b08fa8b0826 Mon Sep 17 00:00:00 2001 From: Sam Xu Date: Wed, 22 Apr 2020 15:01:40 -0700 Subject: [PATCH] update the build CI and project --- azure-pipelines-1.yml | 140 ++++++++++++++++++ ...rosoft.OData.Client.Nightly.Release.nuspec | 82 ++++++++++ .../Microsoft.OData.Client.Release.nuspec | 87 +++++++++++ .../Microsoft.OData.Client.csproj | 1 + .../Microsoft.OData.Core.Net35.Release.nuspec | 32 ++++ ...icrosoft.OData.Core.Nightly.Release.nuspec | 35 +++++ .../Microsoft.OData.Core.Release.nuspec | 36 +++++ .../Microsoft.OData.Edm.Net35.Release.nuspec | 26 ++++ ...Microsoft.OData.Edm.Nightly.Release.nuspec | 29 ++++ .../Microsoft.OData.Edm.Release.nuspec | 30 ++++ .../Microsoft.Spatial.Nightly.Release.nuspec | 26 ++++ .../Microsoft.Spatial.Release.nuspec | 30 ++++ 12 files changed, 554 insertions(+) create mode 100644 src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Nightly.Release.nuspec create mode 100644 src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Release.nuspec create mode 100644 src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Net35.Release.nuspec create mode 100644 src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Nightly.Release.nuspec create mode 100644 src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Release.nuspec create mode 100644 src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Net35.Release.nuspec create mode 100644 src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Nightly.Release.nuspec create mode 100644 src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Release.nuspec create mode 100644 src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Nightly.Release.nuspec create mode 100644 src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Release.nuspec diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 408712c727..a21ab576e6 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -76,7 +76,140 @@ steps: +# //---------------------------------------- +- task: EsrpCodeSigning@1 + + displayName: 'ESRP CodeSign - OData' + inputs: + ConnectedServiceName: 'ESRP CodeSigning - OData' + #FolderPath: '$(Build.SourcesDirectory)\src\Microsoft.Spatial\bin\Debug\netstandard2.0' + FolderPath: '$(Build.SourcesDirectory)\src' + + Pattern: 'Microsoft.Spatial.dll,Microsoft.OData.Edm.dll,Microsoft.OData.Core.dll,Microsoft.OData.Client.dll' + + signConfigType: inlineSignParams + + inlineOperation: | + [ + { + "keyCode": "MSSharedLibSnKey", + "operationSetCode": "StrongNameSign", + "parameters": null, + "toolName": "sn.exe", + "toolVersion": "V4.6.1586.0" + }, + { + "keyCode": "MSSharedLibSnKey", + "operationSetCode": "StrongNameVerify", + "parameters": null, + "toolName": "sn.exe", + "toolVersion": "V4.6.1586.0" + }, + { + "keyCode": "CP-230012", + "operationSetCode": "SigntoolSign", + "parameters": [ + { + "parameterName": "OpusName", + "parameterValue": "TestSign" + }, + { + "parameterName": "OpusInfo", + "parameterValue": "http://test" + }, + { + "parameterName": "PageHash", + "parameterValue": "/NPH" + }, + { + "parameterName": "TimeStamp", + "parameterValue": "/t \"http://ts4096.gtm.microsoft.com/TSS/AuthenticodeTS\"" + } + ], + "toolName": "signtool.exe", + "toolVersion": "6.2.9304.0" + }, + { + "keyCode": "CP-230012", + "operationSetCode": "SigntoolSign", + "parameters": [ + { + "parameterName": "OpusName", + "parameterValue": "TestSign" + }, + { + "parameterName": "OpusInfo", + "parameterValue": "http://test" + }, + { + "parameterName": "Append", + "parameterValue": "/AS" + }, + { + "parameterName": "PageHash", + "parameterValue": "/NPH" + }, + { + "parameterName": "FileDigest", + "parameterValue": "/fd sha256" + }, + { + "parameterName": "TimeStamp", + "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" + } + ], + "toolName": "signtool.exe", + "toolVersion": "6.2.9304.0" + }, + { + "keyCode": "CP-230012", + "operationSetCode": "SigntoolVerify", + "parameters": [ + { + "parameterName": "VerifyAll", + "parameterValue": "/all" + } + ], + "toolName": "signtool.exe", + "toolVersion": "6.2.9304.0" + } + ] + + SessionTimeout: 20 + VerboseLogin: true + + + +- task: CopyFiles@2 + displayName: 'Copy Files - Product' + inputs: + SourceFolder: | + $(ProductBinPath1) + $(ProductBinPath2) + TargetFolder: '$(Build.ArtifactStagingDirectory)\Product' + + + + + +- task: NuGetCommand@2 + displayName: 'NuGet - pack Microsoft.Spatial.Nightly.Release' + inputs: + command: custom + feedsToUse: config + arguments: 'pack $(Build.SourcesDirectory)\src\Microsoft.Spatial\Build.NuGet\Microsoft.Spatial.Nightly.Release.nuspec -NonInteractive -OutputDirectory $(Build.ArtifactStagingDirectory)\Nuget -Properties Configuration=$(BuildConfiguration);ProductRoot=$(ProductBinPath);SourcesRoot=$(Build.SourcesDirectory);VersionFullSemantic=$(VersionFullSemantic);NightlyBuildVersion=$(VersionNugetNightlyBuild);VersionNuGetSemantic=$(VersionNuGetSemantic) -Verbosity Detailed -Symbols' + + + + +# - task: NuGetCommand@2 +# displayName: 'NuGet - pack Microsoft.OData.Spatial.Nightly.nuspec ' +# inputs: +# command: custom +# arguments: 'pack $(Build.SourcesDirectory)\src\Microsoft.Spatial\Build.NuGet\Microsoft.Spatial.Nightly.Release.nuspec -NonInteractive -OutputDirectory $(Build.ArtifactStagingDirectory)\Nuget -Properties Configuration=$(BuildConfiguration);ProductRoot=$(ProductBinPath);SourcesRoot=$(Build.SourcesDirectory);VersionFullSemantic=$(VersionFullSemantic);NightlyBuildVersion=$(VersionNugetNightlyBuild);VersionNuGetSemantic=$(VersionNuGetSemantic);SystemComponentPackageDependency="$(SystemComponentPackageDependency)";ODataLibPackageDependency="$(ODataLibPackageDependency)" -Verbosity Detailed -Symbols' + +# \\fdffdf @@ -385,6 +518,13 @@ steps: +- task: NuGetCommand@2 + displayName: 'NuGet - pack Microsoft.OData.Spatial.Nightly.nuspec ' + inputs: + command: custom + arguments: 'pack $(Build.SourcesDirectory)\src\Microsoft.Spatial\Build.NuGet\Microsoft.Spatial.Nightly.Release.nuspec -NonInteractive -OutputDirectory $(Build.ArtifactStagingDirectory)\Nuget -Properties Configuration=$(BuildConfiguration);ProductRoot=$(ProductBinPath);SourcesRoot=$(Build.SourcesDirectory);VersionFullSemantic=$(VersionFullSemantic);NightlyBuildVersion=$(VersionNugetNightlyBuild);VersionNuGetSemantic=$(VersionNuGetSemantic);SystemComponentPackageDependency="$(SystemComponentPackageDependency)";ODataLibPackageDependency="$(ODataLibPackageDependency)" -Verbosity Detailed -Symbols' + + - task: CopyFiles@2 displayName: 'Copy Files - Product' inputs: diff --git a/src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Nightly.Release.nuspec b/src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Nightly.Release.nuspec new file mode 100644 index 0000000000..47cd8fc888 --- /dev/null +++ b/src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Nightly.Release.nuspec @@ -0,0 +1,82 @@ + + + + OData Client for .NET + Microsoft.OData.Client + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionFullSemantic$-Nightly$NightlyBuildVersion$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + LINQ-enabled client API for issuing OData queries and consuming OData JSON payloads. Supports OData v4. + LINQ-enabled client API for issuing OData queries and consuming OData JSON payloads. Supports OData v4. Targets .NET 4.5 and .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Release.nuspec b/src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Release.nuspec new file mode 100644 index 0000000000..51ad213308 --- /dev/null +++ b/src/Microsoft.OData.Client/Build.NuGet/Microsoft.OData.Client.Release.nuspec @@ -0,0 +1,87 @@ + + + + OData Client for .NET + Microsoft.OData.Client + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionNuGetSemantic$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + LINQ-enabled client API for issuing OData queries and consuming OData JSON payloads. Supports OData v4. + LINQ-enabled client API for issuing OData queries and consuming OData JSON payloads. Supports OData v4. Targets .NET 4.5 and .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + http://odata.github.io/odata.net/v7/#ODL-$VersionFullSemantic$ + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Client/Microsoft.OData.Client.csproj b/src/Microsoft.OData.Client/Microsoft.OData.Client.csproj index 57f33b6408..feb0198ac6 100644 --- a/src/Microsoft.OData.Client/Microsoft.OData.Client.csproj +++ b/src/Microsoft.OData.Client/Microsoft.OData.Client.csproj @@ -154,6 +154,7 @@ + diff --git a/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Net35.Release.nuspec b/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Net35.Release.nuspec new file mode 100644 index 0000000000..0c48d7bbd4 --- /dev/null +++ b/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Net35.Release.nuspec @@ -0,0 +1,32 @@ + + + + ODataLib + Microsoft.OData.Core.Net35 + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionNuGetSemantic$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. + Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData producers and consumers. Targets .NET Portable Lib with support for .NET 3.5. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Nightly.Release.nuspec b/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Nightly.Release.nuspec new file mode 100644 index 0000000000..0cd18b2862 --- /dev/null +++ b/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Nightly.Release.nuspec @@ -0,0 +1,35 @@ + + + + ODataLib + Microsoft.OData.Core + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionFullSemantic$-Nightly$NightlyBuildVersion$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. + Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Release.nuspec b/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Release.nuspec new file mode 100644 index 0000000000..b094ae1ed9 --- /dev/null +++ b/src/Microsoft.OData.Core/Build.NuGet/Microsoft.OData.Core.Release.nuspec @@ -0,0 +1,36 @@ + + + + ODataLib + Microsoft.OData.Core + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionNuGetSemantic$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. + Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + http://odata.github.io/odata.net/v7/#ODL-$VersionFullSemantic$ + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Net35.Release.nuspec b/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Net35.Release.nuspec new file mode 100644 index 0000000000..ca6b1ef144 --- /dev/null +++ b/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Net35.Release.nuspec @@ -0,0 +1,26 @@ + + + + EdmLib + Microsoft.OData.Edm.Net35 + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionNuGetSemantic$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Classes to represent, construct, parse, serialize and validate entity data models. Supports OData v4. + Classes to represent, construct, parse, serialize and validate entity data models. Supports OData v4. Targets .NET Lib with support for .NET 3.5. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Nightly.Release.nuspec b/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Nightly.Release.nuspec new file mode 100644 index 0000000000..0d962ecd9f --- /dev/null +++ b/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Nightly.Release.nuspec @@ -0,0 +1,29 @@ + + + + EdmLib + Microsoft.OData.Edm + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionFullSemantic$-Nightly$NightlyBuildVersion$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Classes to represent, construct, parse, serialize and validate entity data models. Supports OData v4. + Classes to represent, construct, parse, serialize and validate entity data models. Supports OData v4. Targets .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Release.nuspec b/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Release.nuspec new file mode 100644 index 0000000000..b3818e6c93 --- /dev/null +++ b/src/Microsoft.OData.Edm/Build.NuGet/Microsoft.OData.Edm.Release.nuspec @@ -0,0 +1,30 @@ + + + + EdmLib + Microsoft.OData.Edm + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionNuGetSemantic$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Classes to represent, construct, parse, serialize and validate entity data models. Supports OData v4. + Classes to represent, construct, parse, serialize and validate entity data models. Supports OData v4. Targets .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + http://odata.github.io/odata.net/v7/#ODL-$VersionFullSemantic$ + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Nightly.Release.nuspec b/src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Nightly.Release.nuspec new file mode 100644 index 0000000000..21261d3529 --- /dev/null +++ b/src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Nightly.Release.nuspec @@ -0,0 +1,26 @@ + + + + Microsoft.Spatial + Microsoft.Spatial + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionFullSemantic$-Nightly$NightlyBuildVersion$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Contains classes and methods that facilitate geography and geometry spatial operations. + Contains classes and methods that facilitate geography and geometry spatial operations. Targets .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + © Microsoft Corporation. All rights reserved. + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Release.nuspec b/src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Release.nuspec new file mode 100644 index 0000000000..4f5a86c8c9 --- /dev/null +++ b/src/Microsoft.Spatial/Build.NuGet/Microsoft.Spatial.Release.nuspec @@ -0,0 +1,30 @@ + + + + Microsoft.Spatial + Microsoft.Spatial + wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices + $VersionNuGetSemantic$ + Microsoft + http://go.microsoft.com/fwlink/?linkid=833178 + http://odata.github.io/ + http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png + true + Contains classes and methods that facilitate geography and geometry spatial operations. + Contains classes and methods that facilitate geography and geometry spatial operations. Targets .NET Platform Standard 1.1. +OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net. + http://odata.github.io/odata.net/v7/#ODL-$VersionFullSemantic$ + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + \ No newline at end of file