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,26 @@ stages:
188188 targetPath : ' $(Build.ArtifactStagingDirectory)'
189189 artifactName : ' NuGetPackage'
190190 artifactType : ' pipeline'
191+
192+ - pwsh : |
193+ @"
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+ "@ | Set-Content -Path "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"
203+ displayName: Create NuGet config for SmokeTest
204+
205+ - task : DotNetCoreCLI@2
206+ displayName : Build SmokeTest
207+ inputs :
208+ command : ' build'
209+ projects : ' test/SmokeTest/SmokeTest.csproj'
210+ arguments : ' --configuration $(buildConfiguration) --configfile "$(Build.SourcesDirectory)/test/SmokeTest/NuGet.Azdo.Config"'
191211
192212 - task : NuGetCommand@2
193213 condition : >-
You can’t perform that action at this time.
0 commit comments