From 8b31b7ccbc71ea722b84597f83a9816a8c8a8221 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:04:37 +0530 Subject: [PATCH 01/14] mslearn-tailspin-spacegame-web [skip ci] --- azure-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 23402e427df..345f2a2f386 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,11 @@ pool: MyAgentPool steps: -- bash: echo hello world \ No newline at end of file +- bash: echo hello world + + +- task: DotNetCoreCLI@2 + displayName: dotnet restore + inputs: + command: restore + projects: '$(serviceLocation)/**/*.csproj' + includeNuGetOrg: true \ No newline at end of file From 652d15608e9327be787fb2be04ff82039d8adb9f Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:08:09 +0530 Subject: [PATCH 02/14] Update azure-pipelines.yml --- azure-pipelines.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 345f2a2f386..646ff771e2b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,8 @@ -pool: MyAgentPool +pool: + vmImage: windows-latest + + variable: + buildConfiguration: 'Release' steps: - bash: echo hello world @@ -8,4 +12,4 @@ steps: inputs: command: restore projects: '$(serviceLocation)/**/*.csproj' - includeNuGetOrg: true \ No newline at end of file + includeNuGetOrg: true From e31b2f133ae87bbc6196d00ed4c8ee1e1e0a1f1a Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:13:38 +0530 Subject: [PATCH 03/14] Update azure-pipelines.yml --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 646ff771e2b..b64e78df8bc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,6 +3,10 @@ pool: variable: buildConfiguration: 'Release' + + - script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)' + steps: - bash: echo hello world From 78cdf568d7bc3e870e7183620b958d7de5b3cf84 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:15:28 +0530 Subject: [PATCH 04/14] Update azure-pipelines.yml --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b64e78df8bc..206d3c48f2f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,8 @@ pool: variable: buildConfiguration: 'Release' - - script: dotnet build --configuration $(buildConfiguration) + steps: + - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration)' steps: From 49e53daf7d912b14c15fed1084cfd4bd7d73aca3 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:16:49 +0530 Subject: [PATCH 05/14] Add files via upload --- nuget.config | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 nuget.config diff --git a/nuget.config b/nuget.config new file mode 100644 index 00000000000..4a9acecf9e6 --- /dev/null +++ b/nuget.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From 590dcbf42d27c0731eac935e3d4c9b38376e976b Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:18:30 +0530 Subject: [PATCH 06/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 206d3c48f2f..ff293ca30b9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,7 @@ pool: steps: - script: dotnet build --configuration $(buildConfiguration) - displayName: 'dotnet build $(buildConfiguration)' + displayName: 'dotnet build $(buildConfiguration)' steps: - bash: echo hello world From 3b21a94b2014ac07ff0e7dce64845e4c425110b4 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:23:10 +0530 Subject: [PATCH 07/14] Update azure-pipelines.yml --- azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ff293ca30b9..f6efcf64135 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,7 +11,12 @@ pool: steps: - bash: echo hello world - +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '**/*.sln' + - task: DotNetCoreCLI@2 displayName: dotnet restore inputs: From 719557717c0a57aacd9b6a79cb748e54371bfa8f Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:31:16 +0530 Subject: [PATCH 08/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f6efcf64135..c47d6f82cfd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,6 +20,9 @@ steps: - task: DotNetCoreCLI@2 displayName: dotnet restore inputs: - command: restore + command: 'restore' projects: '$(serviceLocation)/**/*.csproj' + feedsToUse: 'select' includeNuGetOrg: true + vstsFeed: '943df222-76ac-470a-af13-9b54ce21bf21' + From defcc932f1032ca0a48536acc9dee13e62bfb665 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:35:27 +0530 Subject: [PATCH 09/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c47d6f82cfd..f824040d209 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,12 +17,13 @@ steps: inputs: restoreSolution: '**/*.sln' +#Restore packages with the .NET Core CLI task - task: DotNetCoreCLI@2 - displayName: dotnet restore + displayName: 'dotnet restore' inputs: command: 'restore' - projects: '$(serviceLocation)/**/*.csproj' feedsToUse: 'select' + feedRestore: 'projectName/feedName' + projects: '**/*.csproj' includeNuGetOrg: true - vstsFeed: '943df222-76ac-470a-af13-9b54ce21bf21' From fb70c8ec1ff9d968c7b8cb422f4e49ebb438f065 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:08:34 +0530 Subject: [PATCH 10/14] Update azure-pipelines.yml --- azure-pipelines.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f824040d209..4550376a629 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,3 +27,15 @@ steps: projects: '**/*.csproj' includeNuGetOrg: true +- task: DotNetCoreCLI@2 + displayName: 'Publish the project - Release' + inputs: + command: 'publish' + projects: '**/*.csproj' + publishWebProjects: false + arguments: '--no-build --configuration Release --output $(Build.ArtifactStagingDirectory)/Release' + zipAfterPublish: true + +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' + condition: succeeded() From ca17cf289f407d6a611c0cf04d470a7169f2e345 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:13:30 +0530 Subject: [PATCH 11/14] Update azure-pipelines.yml --- azure-pipelines.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4550376a629..be1c2a1f5b2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,9 +1,32 @@ pool: vmImage: windows-latest - variable: +variables: buildConfiguration: 'Release' + wwwrootDir: 'Tailspin.SpaceGame.Web/wwwroot' + dotnetSdkVersion: '6.x' +steps: +- task: UseDotNet@2 + displayName: 'Use .NET SDK $(dotnetSdkVersion)' + inputs: + version: '$(dotnetSdkVersion)' + +- task: Npm@1 + displayName: 'Run npm install' + inputs: + verbose: false + +- script: './node_modules/.bin/node-sass $(wwwrootDir) --output $(wwwrootDir)' + displayName: 'Compile Sass assets' + +- task: gulp@1 + displayName: 'Run gulp tasks' + +- script: 'echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt' + displayName: 'Write build info' + workingDirectory: $(wwwrootDir) + steps: - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration)' @@ -26,7 +49,14 @@ steps: feedRestore: 'projectName/feedName' projects: '**/*.csproj' includeNuGetOrg: true - + +- task: DotNetCoreCLI@2 + displayName: 'Build the project - $(buildConfiguration)' + inputs: + command: 'build' + arguments: '--no-restore --configuration $(buildConfiguration)' + projects: '**/*.csproj' + - task: DotNetCoreCLI@2 displayName: 'Publish the project - Release' inputs: From 866fab607d1a1ee934bc6cd060425ff84e38da50 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:14:26 +0530 Subject: [PATCH 12/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index be1c2a1f5b2..cd95c1346ce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,13 +26,7 @@ steps: - script: 'echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt' displayName: 'Write build info' workingDirectory: $(wwwrootDir) - - steps: - - script: dotnet build --configuration $(buildConfiguration) - displayName: 'dotnet build $(buildConfiguration)' - -steps: -- bash: echo hello world + - task: NuGetToolInstaller@1 From d83cd7ec50f05728f9920c5c2b4fda7b54ebb0d2 Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:00:07 +0530 Subject: [PATCH 13/14] Create Sample.txt --- Sample.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 Sample.txt diff --git a/Sample.txt b/Sample.txt new file mode 100644 index 00000000000..ea4b2417e3a --- /dev/null +++ b/Sample.txt @@ -0,0 +1 @@ +Echo "hello world" From 6b38421b8aef55f7f59658d92d6d864472ae32ab Mon Sep 17 00:00:00 2001 From: naveenharikrishnan <101193695+naveenharikrishnan@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:19:59 +0530 Subject: [PATCH 14/14] Update README.md Updated Readme file --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ece99adf323..383d35398f4 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,5 @@ Privacy information can be found at https://privacy.microsoft.com/en-us/ Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise. + +[![Board Status](https://dev.azure.com/SampleDevops010/9cc91818-6627-4607-a741-068b0346a483/ffa689c7-89f9-480e-bd1a-925d70385f1d/_apis/work/boardbadge/4a0d1d11-63c2-4fe5-9b15-a2353b6fad2c)](https://dev.azure.com/SampleDevops010/9cc91818-6627-4607-a741-068b0346a483/_boards/board/t/ffa689c7-89f9-480e-bd1a-925d70385f1d/Issues/)