-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Porting Microsoft.Build to .NET Core #156
Conversation
…rt some of the code using these features to .NET Core.
…-> Dispose, Converter -> Func, reflection)
Hi @dsplaisted, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
// NOTE: This is safe to do because we have specified long-running so we get our own new thread. | ||
string threadName = "RequestBuilder thread"; | ||
|
||
#if FEATURE_APARTMENT_STATE | ||
if (Thread.CurrentThread.GetApartmentState() == ApartmentState.STA) | ||
{ | ||
// NOTE: This is safe to do because the STA scheduler always gives us our own new thread. | ||
Thread.CurrentThread.Name = "RequestBuilder STA thread"; |
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.
Shouldn't this be threadName = "RequestBuilder STA thread";
?
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.
Shouldn't this be
threadName = "RequestBuilder STA thread";
?
Yes, good catch!
…essfully, fix thread name in RequestBuilder
if (aCulture.LCID != bCulture.LCID) | ||
{ | ||
return false; | ||
} | ||
|
||
return true; | ||
#else | ||
return CultureInfo?.Name == that.CultureInfo?.Name; |
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.
Guess we're going C# 6 now :)
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.
Unless anyone has any objections... :-)
LGTM |
Porting Microsoft.Build to .NET Core
[mono/master] Update from upstream master and update SDKs
Progress towards getting Microsoft.Build to compile for .NET Core