Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions eng/pipelines/NuGet.release.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This NuGet config is used by release builds only (VS, VSCode, DebuggerTesting).
Release pipelines run under CFSClean network isolation policies which block direct
access to api.nuget.org. The MIEngine-Dependencies feed upstreams nuget.org through
the CFS-compliant internal path. CI and local builds use src/.nuget/NuGet.config
which restores directly from nuget.org. -->
<configuration>
<packageSources>
<clear />
<add key="MIEngine-Dependencies" value="https://pkgs.dev.azure.com/devdiv/DevDiv/_packaging/MIEngine-Dependencies/nuget/v3/index.json" />
</packageSources>
</configuration>
3 changes: 2 additions & 1 deletion eng/pipelines/steps/BuildSolution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ parameters:
Configuration: 'Release'
BuildArguments: ''
OneESPT: false
NuGetConfigPath: '$(Build.SourcesDirectory)/src/.nuget/NuGet.config'

steps:
- template: ../tasks/NuGetCommand.yml
parameters:
Command: 'restore'
solution: ${{ parameters.Solution }}
selectOrConfig: 'config'
NugetConfigPath: '$(Build.SourcesDirectory)/src/.nuget/NuGet.config'
NugetConfigPath: '${{ parameters.NuGetConfigPath }}'

# If running under System.Debug (Enable system diagnostics), enable binlogs
- script: |
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/Build.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ steps:
parameters:
Configuration: ${{ parameters.Configuration }}
OneESPT: false
NuGetConfigPath: '$(Build.SourcesDirectory)/eng/pipelines/NuGet.release.config'

- template: ../tasks/CSharp.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
Command: 'restore'
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
FeedsToUse: 'config'
NugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
NugetConfigPath: '$(Build.SourcesDirectory)\eng\pipelines\NuGet.release.config'

- template: ../tasks/MSBuild.yml
parameters:
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/VS-release.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ steps:
Configuration: 'Lab.Release'
BuildArguments: /p:NuGetPath=$(NuGetExeToolPath) /p:NuGetPrerelease=false
OneESPT: true
NuGetConfigPath: '$(Build.SourcesDirectory)/eng/pipelines/NuGet.release.config'

- template: ../steps/CollectAndPublishBinaries.yml
parameters:
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/VSCode-release.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ steps:
parameters:
Configuration: 'Lab.Release'
OneESPT: true
NuGetConfigPath: '$(Build.SourcesDirectory)/eng/pipelines/NuGet.release.config'

- template: ../steps/CollectAndPublishBinaries.yml
parameters:
Expand Down
Loading