File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,6 +188,27 @@ stages:
188188 targetPath : ' $(Build.ArtifactStagingDirectory)'
189189 artifactName : ' NuGetPackage'
190190 artifactType : ' pipeline'
191+
192+ - pwsh : |
193+ $nugetConfig = @(
194+ '<?xml version="1.0" encoding="utf-8"?>'
195+ '<configuration>'
196+ ' <packageSources>'
197+ ' <clear />'
198+ ' <add key="local-sdk" value="$(Build.ArtifactStagingDirectory)" />'
199+ ' <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />'
200+ ' </packageSources>'
201+ '</configuration>'
202+ )
203+ $nugetConfig | Set-Content -Path "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"
204+ displayName: Create NuGet config for SmokeTest
205+
206+ - task : DotNetCoreCLI@2
207+ displayName : Build SmokeTest
208+ inputs :
209+ command : ' build'
210+ projects : ' test/SmokeTest/SmokeTest.csproj'
211+ arguments : ' --configuration $(buildConfiguration) --configfile "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"'
191212
192213 - task : NuGetCommand@2
193214 condition : >-
You can’t perform that action at this time.
0 commit comments