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

Normalize casing of targeting pack projects and nuspecs #1189

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Mar 5, 2025

All SBRP projects except the targeting packs consistently use the casing of the package id (+ "." + packageversion), i.e.
Microsoft.Extensions.Logging.8.0.0.csproj.

A few targeting pack projects didn't follow that casing. Similar for the nuspecs which should always be lower-cased.

This is in preparation to use the live targeting packs in SBRP and remove the self SBRP dependency. This change is repo-local and doesn't impact the published SBRP artifacts.

All SBRP projects except the targeting packs consistently use the casing
of the package id (+ "." + packageversion), i.e.
`Microsoft.Extensions.Logging.8.0.0.csproj`.

A few targeting pack projects didn't follow that casing. Similar for the
nuspecs which should always be lower-cased.

This is in preparation to use the live targeting packs in SBRP
and remove the self SBRP dependency.
Copy link
Member

@mthalman mthalman left a comment

Choose a reason for hiding this comment

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

Thoughts on updating the directory name to match this casing?

Copy link
Member

@mthalman mthalman left a comment

Choose a reason for hiding this comment

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

These targeting packs are all generated from an internal tool. Ultimately, the tool should also be updated so that future targeting pack generations will use this desired casing. I believe it's caused by this line: (internal link). That sets the folder name by deriving it from the nuspec name (which is lowercase). Then other files, like csproj, get based off of the folder name, continuing the casing pattern.

@ViktorHofer
Copy link
Member Author

Thoughts on updating the directory name to match this casing?

The directory name is expected to be lower-case. I.e. see https://github.com/dotnet/source-build-reference-packages/tree/FixCasingOfTargetingPacks/src/referencePackages/src

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Mar 5, 2025

These targeting packs are all generated from an internal tool. Ultimately, the tool should also be updated so that future targeting pack generations will use this desired casing. I believe it's caused by this line: (internal link). That sets the folder name by deriving it from the nuspec name (which is lowercase). Then other files, like csproj, get based off of the folder name, continuing the casing pattern.

Yes it would be good to update whatever tool produces these targeting packs. Can someone please help with that? I filed dotnet/source-build#4933 as a tracking issue.

@MichaelSimons MichaelSimons merged commit aa3e9de into main Mar 5, 2025
4 checks passed
@MichaelSimons MichaelSimons deleted the FixCasingOfTargetingPacks branch March 5, 2025 14:40
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.

None yet

3 participants