Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

GitHub Actions runners may have restrictive global NuGet configurations that block nuget.org. This PR adds a dedicated NuGet-GitHub.Config pointing to nuget.org and configures workflows to use it.

Changes:

  • Added NuGet-GitHub.Config with nuget.org as the sole package source, clearing disabled sources to override machine/global configs
  • Updated .github/workflows/build.yml to explicitly restore with --configfile NuGet-GitHub.Config and build with --no-restore
- name: Restore NuGet packages
  run: dotnet restore --configfile NuGet-GitHub.Config
- name: Build with dotnet
  run: dotnet build --configuration ${{ matrix.configuration }} --no-restore

This separates restore from build, ensuring consistent package source behavior across all GitHub runner environments.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com>
Copilot AI changed the title [WIP] Add separate NuGet.Config for GitHub Configure GitHub workflows to use NuGet-GitHub.Config for package restore Jan 26, 2026
Copilot AI requested a review from neilr81 January 26, 2026 15:26
@neilr81 neilr81 marked this pull request as ready for review January 26, 2026 15:42
@neilr81 neilr81 requested a review from a team as a code owner January 26, 2026 15:42
@neilr81 neilr81 merged commit 3a5347d into bugfix/test-config Jan 26, 2026
1 check passed
@neilr81 neilr81 deleted the copilot/sub-pr-789 branch January 26, 2026 15:42
neilr81 added a commit that referenced this pull request Jan 27, 2026
* Adding separate Nuget.Config for GitHub

* Create Nuget.Config for package sources and settings

Add NuGet configuration file for package management

* Configure GitHub workflows to use NuGet-GitHub.Config for package restore (#790)

* Initial plan

* Update GitHub workflow to use NuGet-GitHub.Config for package restore

Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com>

* Update branch reference from master to main in build.yml

* Update Nuget.Config

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Enhance display name for package update job

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants