-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Localize strings of link error messages on non-Windows #8238
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
JanKrivanek
left a comment
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.
Looks good. Thank you!
Forgind
left a comment
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.
LGTM!
Co-authored-by: Forgind <[email protected]>
| { | ||
| hardLinkCreated = link(exitingFileName, newFileName) == 0; | ||
| errorMessage = hardLinkCreated ? null : "The link() library call failed with the following error code: " + Marshal.GetLastWin32Error(); | ||
| errorMessage = hardLinkCreated ? null : log.FormatResourceString("Copy.LinklibraryFailedPrefix", "link()", Marshal.GetLastWin32Error()); |
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.
This resource doesn't seem to exist?
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.
That's awkward. Will fix—thanks for pointing that out!
dotnet#8238 added a reference to "Copy.LinkLibraryFailedPrefix" but didn't actually add that to our .resx. This adds it.
Fixes https://github.com/dotnet/msbuild/pull/8238/files#r1125001007 Context #8238 added a reference to "Copy.LinkLibraryFailedPrefix" but didn't actually add that to our .resx. This adds it. Changes Made Added a resource
Fixes #8231
Changes Made
Create resouse string and pass the log object as a parameter in the MakeHardLink function
Testing
Test locally