Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Oct 18, 2019

This should get all the libraries over to netstandard2.0. Test projects aren't converted yet. I prefer to do this in smaller chunks and make sure each part works. ;)

@jpobst jpobst force-pushed the sdk-csproj branch 7 times, most recently from dc155f1 to ab2379b Compare October 18, 2019 21:28
@jpobst jpobst marked this pull request as ready for review October 29, 2019 16:05
@jpobst jpobst changed the title [WIP] Migrate projects to SDK style / netstandard2.0. Migrate projects to SDK style / netstandard2.0. Oct 29, 2019
T: Java.Interop.JavaException
T: Java.Interop.JavaObject
# Warning is due to using `nameof()`, without .mdb symbols gendarme doesn't know it's not a constant
T: Java.Interop.JniNativeMethodRegistrationArguments
Copy link
Contributor

Choose a reason for hiding this comment

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

The warning is because the field is readonly as opposed to const. We certainly could use nameof() with a const, it would just require that we use operator+ to remove the warning:

const string invalidStateMessage = nameof(JniNativeMethodRegistrationArguments)" + " state is invalid. Please use constructor with parameters.";

Other than being "uglier", perhaps this is what we should do? Would likely result in (slightly) less CPU time/etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Related: Why did I not call that InvalidStateMessage? :-/

@jpobst jpobst force-pushed the sdk-csproj branch 2 times, most recently from 36c8180 to c149619 Compare October 31, 2019 21:10
@jonpryor jonpryor merged commit ff3081d into master Nov 6, 2019
@jonpryor jonpryor deleted the sdk-csproj branch November 6, 2019 19:54
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants