-
Notifications
You must be signed in to change notification settings - Fork 278
Format NSubstitute.csproj layout + remove unusable code for net4.5 #761
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
alexandrnikitin
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.
Nice! Thank you!
Remove Microsoft.SourceLink.GitHub (starting from .net 8 included in sdk)
One caveat is we need to use .NET 8 SDK for release builds. cc @dtchepak
| #if NET45 | ||
| return new Task(() => throw ex); | ||
| #else | ||
| return Task.FromException(ex); |
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.
nit: we don't need a wrapper method after the change and this can be inlined
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.
you are totally right, done
Changes:
NSubstitute.csproj layout was updated to more classical:
note: no product changes, no need to release new nuget package