Skip to content

Commit

Permalink
update the build CI and project
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg authored and Sreejithpin committed May 7, 2020
1 parent c9fae43 commit 82f949d
Show file tree
Hide file tree
Showing 12 changed files with 554 additions and 0 deletions.
140 changes: 140 additions & 0 deletions azure-pipelines-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<title>OData Client for .NET</title>
<id>Microsoft.OData.Client</id>
<tags>wcf data services odata odatalib edmlib spatial ado.net ef entity framework open protocol wcfds wcfdataservices dataservices</tags>
<version>$VersionFullSemantic$-Nightly$NightlyBuildVersion$</version>
<authors>Microsoft</authors>
<licenseUrl>http://go.microsoft.com/fwlink/?linkid=833178</licenseUrl>
<projectUrl>http://odata.github.io/</projectUrl>
<iconUrl>http://static.tumblr.com/hgchgxz/9ualgdf98/icon.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<summary>LINQ-enabled client API for issuing OData queries and consuming OData JSON payloads. Supports OData v4. </summary>
<description>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.</description>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<dependencies>
<dependency id="Microsoft.OData.Core" version="[$VersionFullSemantic$-Nightly$NightlyBuildVersion$]" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Windows" targetFramework="sl4" />
<frameworkAssembly assemblyName="System.Xml.Linq" targetFramework="sl4" />
</frameworkAssemblies>
</metadata>
<files>
<file src="$ProductRoot$\Desktop\Microsoft.OData.Client.dll" target="lib\net45" />
<file src="$ProductRoot$\Desktop\Microsoft.OData.Client.xml" target="lib\net45" />
<file src="$ProductRoot$\Desktop\Microsoft.OData.Client.pdb" target="lib\net45" />
<file src="$ProductRoot$\.NETPortable\v5.0\Microsoft.OData.Client.dll" target="lib\netstandard1.1" />
<file src="$ProductRoot$\.NETPortable\v5.0\Microsoft.OData.Client.pdb" target="lib\netstandard1.1" />
<file src="$ProductRoot$\.NETPortable\v5.0\Microsoft.OData.Client.xml" target="lib\netstandard1.1" />
<file src="$SourcesRoot$\src\Microsoft.OData.Client\**\*.cs" target="src\Microsoft.OData.Client" />
<!-- files imported from EdmLib -->
<file src="$SourcesRoot$\src\Microsoft.OData.Edm\Csdl\EdmValueParser.cs" target="src\Microsoft.OData.Edm\Csdl\EdmValueParser.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Edm\Csdl\EdmValueWriter.cs" target="src\Microsoft.OData.Edm\Csdl\EdmValueWriter.cs" />
<!-- files imported from odatalib -->
<file src="$SourcesRoot$\src\Microsoft.OData.Core\ExceptionUtils.cs" target="src\Microsoft.OData.Core\ExceptionUtils.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Evaluation\EdmValueUtils.cs" target="src\Microsoft.OData.Core\Evaluation\EdmValueUtils.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Evaluation\KeySerializer.cs" target="src\Microsoft.OData.Core\Evaluation\KeySerializer.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Evaluation\LiteralFormatter.cs" target="src\Microsoft.OData.Core\Evaluation\LiteralFormatter.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Evaluation\ODataResourceMetadataBuilder.cs" target="src\Microsoft.OData.Core\Evaluation\ODataResourceMetadataBuilder.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Evaluation\ODataUriBuilder.cs" target="src\Microsoft.OData.Core\Evaluation\ODataUriBuilder.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Json\JsonSharedUtils.cs" target="src\Microsoft.OData.Core\Json\JsonSharedUtils.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\SimpleLazy.cs" target="src\Microsoft.OData.Core\SimpleLazy.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\Metadata\EdmLibraryExtensions.cs" target="src\Microsoft.OData.Core\Metadata\EdmLibraryExtensions.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\InternalErrorCodesCommon.cs" target="src\Microsoft.OData.Core\InternalErrorCodesCommon.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\TaskUtils.cs" target="src\Microsoft.OData.Core\TaskUtils.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\QueryTokenKind.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\QueryTokenKind.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\ReadOnlyEnumerableForUriParser.cs" target="src\Microsoft.OData.Core\UriParser\ReadOnlyEnumerableForUriParser.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\NamedValue.cs" target="src\Microsoft.OData.Core\UriParser\NamedValue.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\AllToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\AllToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\AnyToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\AnyToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\BinaryOperatorToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\BinaryOperatorToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\CustomQueryOptionToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\CustomQueryOptionToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\DottedIdentifierToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\DottedIdentifierToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\EndPathToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\EndPathToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\ExpandTermToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\ExpandTermToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\ExpandToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\ExpandToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\FunctionCallToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\FunctionCallToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\FunctionParameterAliasToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\FunctionParameterAliasToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\FunctionParameterToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\FunctionParameterToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\InnerPathToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\InnerPathToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\Visitors\IPathSegmentTokenVisitor.cs" target="src\Microsoft.OData.Core\UriParser\Visitors\IPathSegmentTokenVisitor.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\Visitors\ISyntacticTreeVisitor.cs" target="src\Microsoft.OData.Core\UriParser\Visitors\ISyntacticTreeVisitor.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\LambdaToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\LambdaToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\LiteralToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\LiteralToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\NonSystemToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\NonSystemToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\OrderByToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\OrderByToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\PathSegmentToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\PathSegmentToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\PathToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\PathToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\QueryToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\QueryToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\RangeVariableToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\RangeVariableToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\SelectExpandTermToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\SelectExpandTermToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\SelectTermToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\SelectTermToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\SelectToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\SelectToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\StarToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\StarToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\SystemToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\SystemToken.cs" />
<file src="$SourcesRoot$\src\Microsoft.OData.Core\UriParser\SyntacticAst\UnaryOperatorToken.cs" target="src\Microsoft.OData.Core\UriParser\SyntacticAst\UnaryOperatorToken.cs" />
<file src="$SourcesRoot$\src\PlatformHelper.cs" target="src\PlatformHelper.cs" />
<file src="$SourcesRoot$\src\AssemblyInfo\AssemblyMetadataAttribute.cs" target="src\AssemblyMetadataAttribute.cs" />
</files>
</package>
Loading

0 comments on commit 82f949d

Please sign in to comment.