File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,21 @@ extends:
7878 versionSpec : ' >=6.11.0'
7979 checkLatest : true
8080
81+ - task : NuGetAuthenticate@1
82+ displayName : ' Authenticate approved NuGet feed'
83+
84+ - pwsh : |
85+ @'
86+ <?xml version="1.0" encoding="utf-8"?>
87+ <configuration>
88+ <packageSources>
89+ <clear />
90+ <add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" />
91+ </packageSources>
92+ </configuration>
93+ '@ | Set-Content -Path '$(Build.SourcesDirectory)\nuget.config'
94+ displayName: 'Configure approved NuGet feed'
95+
8196 # Build the Product project
8297 - task : DotNetCoreCLI@2
8398 displayName : ' build'
Original file line number Diff line number Diff line change @@ -60,6 +60,19 @@ extends:
6060 inputs :
6161 versionSpec : ' >=6.11.0'
6262 checkLatest : true
63+ - task : NuGetAuthenticate@1
64+ displayName : Authenticate approved NuGet feed
65+ - pwsh : |
66+ @'
67+ <?xml version="1.0" encoding="utf-8"?>
68+ <configuration>
69+ <packageSources>
70+ <clear />
71+ <add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" />
72+ </packageSources>
73+ </configuration>
74+ '@ | Set-Content -Path '$(Build.SourcesDirectory)\nuget.config'
75+ displayName: Configure approved NuGet feed
6376 - pwsh : |
6477 $version = ([xml](Get-Content src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj)).Project.PropertyGroup.Version
6578 if ($version -notmatch '^2\.\d+\.\d+(-[0-9A-Za-z.-]+)?$') { throw "Expected a hidi 2.x version, got $version." }
You can’t perform that action at this time.
0 commit comments