From a6c7ec8f5bfa5a462f3a501410aaa3c02ee6805e Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 13:37:48 -0700 Subject: [PATCH 01/10] finalize Azure Artifact build in pipeline - switch to DigitalRuby feed - moved company and product to csproj from assemblyinfo.cs - changed csproj to version-prefix --- azure-pipelines.yml | 3 +-- src/ExchangeSharp/ExchangeSharp.csproj | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6adf2217..25abd787 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -78,12 +78,11 @@ jobs: - task: NuGetToolInstaller@1 - task: NuGetAuthenticate@0 displayName: 'NuGet Authenticate' - #- script: nuget push $(Build.ArtifactStagingDirectory)/*.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/DigitalRuby/DigitalRuby/_packaging/DigitalRuby/nuget/v3/index.json -ApiKey AzureArtifacts -Verbosity Detailed - task: NuGetCommand@2 displayName: 'NuGet push' inputs: command: push - publishVstsFeed: DigitalRuby/DigitalRubyFeed + publishVstsFeed: DigitalRuby/DigitalRuby - job: build_tag displayName: Build console app timeoutInMinutes: 5 diff --git a/src/ExchangeSharp/ExchangeSharp.csproj b/src/ExchangeSharp/ExchangeSharp.csproj index 1084f27b..664fb634 100644 --- a/src/ExchangeSharp/ExchangeSharp.csproj +++ b/src/ExchangeSharp/ExchangeSharp.csproj @@ -8,8 +8,8 @@ 8 DigitalRuby.ExchangeSharp ExchangeSharp - C# API for cryptocurrency exchanges - 1.0.2 - jjxtra + 1.0.2 + jjxtra ExchangeSharp is a C# API for working with various cryptocurrency exchanges. Web sockets are also supported for some exchanges. Supported exchanges: Binance BitMEX Bitfinex Bithumb Bitstamp Bittrex BL3P Bleutrade BTSE Cryptopia Coinbase(GDAX) Digifinex Gemini Gitbtc Huobi Kraken Kucoin Livecoin NDAX OKCoin OKEx Poloniex TuxExchange Yobit ZBcom. Pull requests welcome. icon.png @@ -17,6 +17,8 @@ https://github.com/DigitalRuby/ExchangeSharp true https://github.com/DigitalRuby/ExchangeSharp/releases + Digital Ruby, LLC + IPBan README.md C# crypto cryptocurrency trade trader exchange sharp socket web socket websocket signalr secure API Binance BitMEX Bitfinex Bithumb Bitstamp Bittrex BL3P Bleutrade BTSE Cryptopia Coinbase GDAX Digifinex Gemini Gitbtc Huobi Kraken Kucoin Livecoin NDAX OKCoin OKEx Poloniex TuxExchange Yobit ZBcom https://github.com/DigitalRuby/ExchangeSharp From 4d3c088c7a723886631e03ada78e57f59e9f9251 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 13:51:17 -0700 Subject: [PATCH 02/10] try fixing date format --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 25abd787..71581db8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,7 +59,7 @@ jobs: inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(Date:yyyyMMddHHmmss)' + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$[format('{0:yyyyMMddHHmmss}', pipeline.startTime)] #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From a5cc6c8d19715f9d923daeb3123109e95d062cb0 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:02:24 -0700 Subject: [PATCH 03/10] missing quote and spacing --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 71581db8..6a6421ad 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -52,14 +52,14 @@ jobs: - task: DotNetCoreCLI@2 displayName: 'Restore' inputs: - command: 'restore' - projects: 'src/ExchangeSharp/ExchangeSharp.csproj' + command: 'restore' + projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - task: DotNetCoreCLI@2 displayName: 'Build lib+console' inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$[format('{0:yyyyMMddHHmmss}', pipeline.startTime)] + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$[format('{0:yyyyMMddHHmmss}', pipeline.startTime)]' #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From e36b0e977bab943d5387b74924eae908fa3288a1 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:08:23 -0700 Subject: [PATCH 04/10] try without conversion --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a6421ad..55232841 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,7 +59,7 @@ jobs: inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$[format('{0:yyyyMMddHHmmss}', pipeline.startTime)]' + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$[pipeline.startTime]' #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From f68df122dc0fc40b200510172eba90d398e66ff9 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:17:01 -0700 Subject: [PATCH 05/10] try parens instead of square --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 55232841..7f6990da 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,7 +59,7 @@ jobs: inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$[pipeline.startTime]' + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(pipeline.startTime)' #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From 69dd6b37f240d15b7c7bd0137c75211c1ccb68cc Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:34:55 -0700 Subject: [PATCH 06/10] try indirect variable --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7f6990da..06c024d8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,6 +35,7 @@ schedules: variables: BuildConfiguration: 'Release' DOTNET_CLI_TELEMETRY_OPTOUT: 1 + PipelineDate: $[format('{0:yyyyMMddHHmmss}', pipeline.startTime)] jobs: - job: build_ci @@ -59,7 +60,7 @@ jobs: inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(pipeline.startTime)' + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate)' #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From 6ee120c6931629239d61ff02884e998ae2e29a9c Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:39:12 -0700 Subject: [PATCH 07/10] skip pack step --- azure-pipelines.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06c024d8..72c5b3ef 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -69,13 +69,13 @@ jobs: # projects: 'tests/*/*.csproj' # publishTestResults: true # testRunTitle: 'All tests' - - task: DotNetCoreCLI@2 - displayName: 'NuGet Pack' - inputs: - command: pack - packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj' - packDestination: '$(Build.ArtifactStagingDirectory)' - versioningScheme: off + #- task: DotNetCoreCLI@2 + # displayName: 'NuGet Pack' + # inputs: + # command: pack + # packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj' + # packDestination: '$(Build.ArtifactStagingDirectory)' + # versioningScheme: off - task: NuGetToolInstaller@1 - task: NuGetAuthenticate@0 displayName: 'NuGet Authenticate' From 560be124549b89e6cdd66af5a3d3e74278950330 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:53:51 -0700 Subject: [PATCH 08/10] set build output dir --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 72c5b3ef..70c905a9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,7 @@ jobs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate)' + outputDir: '$(Build.ArtifactStagingDirectory)' #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From 1b3286cddef750afd7f2d28975c0c6cea32e5e11 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 14:58:02 -0700 Subject: [PATCH 09/10] set dir with arguments instead of inputs --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 70c905a9..22464a20 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -60,8 +60,7 @@ jobs: inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate)' - outputDir: '$(Build.ArtifactStagingDirectory)' + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate)' --output $(Build.ArtifactStagingDirectory) #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: From 410d971150b051a52e0b117b02f0294b2511cd60 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Wed, 11 May 2022 15:01:34 -0700 Subject: [PATCH 10/10] move end quote --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 22464a20..fe84bbf1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -60,7 +60,7 @@ jobs: inputs: command: 'build' projects: 'src/ExchangeSharp/ExchangeSharp.csproj' - arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate)' --output $(Build.ArtifactStagingDirectory) + arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate) --output $(Build.ArtifactStagingDirectory)' #- task: DotNetCoreCLI@2 # displayName: 'Tests' # inputs: