From 69c7632f9be9c4ee8e3acf2df482304a28a26d9b Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 14:02:41 +0200
Subject: [PATCH 1/7] Add pack properties
---
.../FollowingFileStream.ConsoleTestTool.csproj | 1 +
FollowingFileStream/FollowingFileStream.csproj | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/FollowingFileStream.ConsoleTestTool/FollowingFileStream.ConsoleTestTool.csproj b/FollowingFileStream.ConsoleTestTool/FollowingFileStream.ConsoleTestTool.csproj
index 4846b87..c35198b 100644
--- a/FollowingFileStream.ConsoleTestTool/FollowingFileStream.ConsoleTestTool.csproj
+++ b/FollowingFileStream.ConsoleTestTool/FollowingFileStream.ConsoleTestTool.csproj
@@ -8,6 +8,7 @@
Exe
netcoreapp2.2
7.1
+ false
diff --git a/FollowingFileStream/FollowingFileStream.csproj b/FollowingFileStream/FollowingFileStream.csproj
index 9d3f12c..55ced73 100644
--- a/FollowingFileStream/FollowingFileStream.csproj
+++ b/FollowingFileStream/FollowingFileStream.csproj
@@ -4,5 +4,10 @@
Library
netcoreapp2.2
+
+ FollowingFileStream
+ 1.0.0
+ Emmanuel André
+
From 3b536a3fa617b03b2ee35f8e763e2a46f12ea3e5 Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 14:08:25 +0200
Subject: [PATCH 2/7] Update azure-pipelines.yml for nuget push
---
azure-pipelines.yml | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 7f4c329..8fa7b92 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -20,10 +20,10 @@ steps:
- script: dotnet restore ./All.sln
displayName: Restore
-- script: dotnet build ./All.sln --configuration $(buildConfiguration)
+- script: dotnet build ./All.sln --no-restore --configuration $(buildConfiguration)
displayName: Build
-- script: dotnet test ./Tests.sln --configuration $(buildConfiguration) --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
+- script: dotnet test ./Tests.sln --no-build --configuration $(buildConfiguration) --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
displayName: Test
- task: PublishTestResults@2
@@ -36,4 +36,18 @@ steps:
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
- summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'
\ No newline at end of file
+ summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'
+
+- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build
+ displayName: Pack
+
+- task: NuGetCommand@2
+ displayName: 'nuget push'
+ inputs:
+ command: 'push'
+ feedsToUse: 'select'
+ packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
+ nuGetFeedType: 'internal'
+ publishVstsFeed: 'manandre'
+ versioningScheme: 'off'
+ allowPackageConflicts: true
\ No newline at end of file
From 4a7d59cd61d9122f2ac83a1487561863b02e1bd6 Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 14:21:34 +0200
Subject: [PATCH 3/7] Update azure-pipelines.yml for nuget pattern search
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 8fa7b92..8206705 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -46,7 +46,7 @@ steps:
inputs:
command: 'push'
feedsToUse: 'select'
- packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
+ packagesToPush: '$(System.DefaultWorkingDirectory)/**/*.nupkg;!$(System.DefaultWorkingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'manandre'
versioningScheme: 'off'
From a1c5cf6650f02af8e00a889a6303abc0d593dbfb Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 14:55:06 +0200
Subject: [PATCH 4/7] Update azure-pipelines.yml for publishing build artifacts
---
azure-pipelines.yml | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 8206705..7b56669 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -38,16 +38,11 @@ steps:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'
-- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build
+- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build -o $(Build.ArtifactStagingDirectory)
displayName: Pack
-- task: NuGetCommand@2
- displayName: 'nuget push'
+- task: PublishBuildArtifacts@1
inputs:
- command: 'push'
- feedsToUse: 'select'
- packagesToPush: '$(System.DefaultWorkingDirectory)/**/*.nupkg;!$(System.DefaultWorkingDirectory)/**/*.symbols.nupkg'
- nuGetFeedType: 'internal'
- publishVstsFeed: 'manandre'
- versioningScheme: 'off'
- allowPackageConflicts: true
\ No newline at end of file
+ PathtoPublish: '$(Build.ArtifactStagingDirectory)'
+ ArtifactName: 'drop'
+ publishLocation: 'Container'
\ No newline at end of file
From 3e3b1ceaf9cbef1586ec440d12ffac99d3f950dc Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 15:20:01 +0200
Subject: [PATCH 5/7] Update azure-pipelines.yml for Azure Pipelines
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 7b56669..73e5665 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -38,7 +38,7 @@ steps:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'
-- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build -o $(Build.ArtifactStagingDirectory)
+- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build -o $(Build.ArtifactStagingDirectory) --version-suffix "-$(Build.BuildId)"
displayName: Pack
- task: PublishBuildArtifacts@1
From f1a610b6ed26006b45313bcc7266b1b6bf38d3b0 Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 15:45:41 +0200
Subject: [PATCH 6/7] Add VersionSuffix
---
FollowingFileStream/FollowingFileStream.csproj | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/FollowingFileStream/FollowingFileStream.csproj b/FollowingFileStream/FollowingFileStream.csproj
index 55ced73..f84b55c 100644
--- a/FollowingFileStream/FollowingFileStream.csproj
+++ b/FollowingFileStream/FollowingFileStream.csproj
@@ -6,7 +6,8 @@
FollowingFileStream
- 1.0.0
+ 1.0.0
+ $(VersionSuffix)
Emmanuel André
From 099f1ca3d5e91d1836da6e7e8f90edaf90d9ddd3 Mon Sep 17 00:00:00 2001
From: manandre <2341261+manandre@users.noreply.github.com>
Date: Mon, 19 Aug 2019 15:50:42 +0200
Subject: [PATCH 7/7] Update azure-pipelines.yml for buildId dash
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 73e5665..d5a9241 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -38,7 +38,7 @@ steps:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'
-- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build -o $(Build.ArtifactStagingDirectory) --version-suffix "-$(Build.BuildId)"
+- script: dotnet pack ./All.sln --configuration $(buildConfiguration) --no-build -o $(Build.ArtifactStagingDirectory) --version-suffix "$(Build.BuildId)"
displayName: Pack
- task: PublishBuildArtifacts@1