Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AddSourceToNuGetConfig task #44854

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Nov 13, 2024

Fixes dotnet/source-build#4687

  • Enable #nullable
  • Remove the multiple task invocations and multiple NuGet.config mutations by passing all feeds in and updating it only once.
  • Add comments and improve code styling

TODO: I still need to test the change E2E locally

@ViktorHofer ViktorHofer requested review from a team as code owners November 13, 2024 21:42
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Nov 13, 2024
XElement lastClearElement = packageSourcesElement.Descendants().LastOrDefault(e => e.Name == "clear");
string nuGetConfigContent = File.ReadAllText(NuGetConfigFile);
string newLineChars = FileUtilities.DetectNewLineChars(nuGetConfigContent);
XDocument xDocument = XDocument.Parse(nuGetConfigContent);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit - perhaps document instead of xDocument

@NikolaMilosavljevic
Copy link
Member

Since the task name was changed, should the filename also be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditionally add the net-sdk-supporting-feed
2 participants