-
Notifications
You must be signed in to change notification settings - Fork 99
Publish-PSResource should create nupkg packages with lowercased name #1276
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
Conversation
File.Copy(System.IO.Path.Combine(outputNupkgDir, nupkgName), System.IO.Path.Combine(DestinationPath, nupkgName)); | ||
string srcPath = System.IO.Path.Combine(outputNupkgDir, nupkgName); | ||
// The file that gets created upon Copy should have lowercased package name. | ||
string destPath = System.IO.Path.Combine(DestinationPath, nupkgName.ToLower()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we care about the destination path not matching case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why we would care...the file path at the destination should always have lower case, as that's what we put there and expect to see after publish. The srcPath has to match the case as it's the file name with the casing the (Windows or Unix) system sees and has to copy
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
PR Summary
PR Context
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.