Skip to content

Conversation

@13thirteen
Copy link

Running the .NET Standard 2.0 version on Linux throws PlatformNotSupportedException
See https://issues.apache.org/jira/browse/LOG4NET-652

Running the .NET Standard 2.0 version on Linux throws `PlatformNotSupportedException`
See https://issues.apache.org/jira/browse/LOG4NET-652
Copy link
Contributor

@fluffynuts fluffynuts left a comment

Choose a reason for hiding this comment

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

NETSTANDARD is a valid choice for win32 targets too

if (m_data.UserName == null && this.m_cacheUpdatable)
{
#if (NETCF || SSCLI || NETSTANDARD1_3) // NETSTANDARD1_3 TODO requires platform-specific code
#if (NETCF || SSCLI || NETSTANDARD) // NETSTANDARD TODO requires platform-specific code
Copy link
Contributor

Choose a reason for hiding this comment

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

win32 is a valid target for netstandard too -- surely there's a better alternative?

Copy link
Contributor

Choose a reason for hiding this comment

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

(for example: if the platform is !win32, we could try to invoke whoami)

@fluffynuts
Copy link
Contributor

Thanks for the contribution. This has been resolved in master and I have a release pending a vote on the dev lists for 2.0.12. I'm closing this out as people are looking for the fix. I would have preferred to have had your work & commit history so that the change would be attributed to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants