Skip to content

Move to netstandard2.0#261

Merged
tmat merged 4 commits intomainfrom
dev/jaredpar/ns20
Apr 13, 2022
Merged

Move to netstandard2.0#261
tmat merged 4 commits intomainfrom
dev/jaredpar/ns20

Conversation

@jaredpar
Copy link
Copy Markdown
Member

This moves the project to use netstandard2.0 as the base target
framework for projects. There is no value in maintaining netstandard1.1
and net20 anymore.

This moves the project to use netstandard2.0 as the base target
framework for projects. There is no value in maintaining netstandard1.1
and net20 anymore.
try
{
#if NET20
return Environment.GetEnvironmentVariable(name);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Environment.GetEnvironmentVariable(name);

This was a workaround for netstandard1.1, the NET20 code is certainly better :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah okay. Will fix that.

@tmat
Copy link
Copy Markdown
Member

tmat commented Apr 13, 2022

Let's also set version here: https://github.com/dotnet/symreader/blob/main/eng/Versions.props#L6 tp 2.0.0 since this is a breaking change.


#else

[assembly: System.Security.AllowPartiallyTrustedCallers]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tmat want to make sure u see that I deleted this. It seems to serve no purpose and just cause issues. Want to make sure I'm not missing a reason for it being there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't recall why we had it. Seems unnecessary for netstandard2.0.

@jaredpar
Copy link
Copy Markdown
Member Author

@tmat version updated

@jaredpar jaredpar marked this pull request as ready for review April 13, 2022 16:28
@tmat tmat merged commit 203af4a into main Apr 13, 2022
@jaredpar jaredpar deleted the dev/jaredpar/ns20 branch April 13, 2022 18:22
@ViktorHofer
Copy link
Copy Markdown
Member

Sorry for commenting on an old PR but any idea why this change never shipped to customers? NuGet's latest version is still 1.4.0.

@jaredpar
Copy link
Copy Markdown
Member Author

@tmat will need to answer as I'm unfamiliar with how NuPkg are produced from this repo

@ViktorHofer
Copy link
Copy Markdown
Member

@tmat would you know the answer to my above question?

@tmat
Copy link
Copy Markdown
Member

tmat commented Apr 24, 2023

@jaredpar This repo changes very rarely. We don't produce release versions regularly.

@ViktorHofer
Copy link
Copy Markdown
Member

Can we please prioritize releasing a new version with the netstandard2.0 change? The existing package version brings in NETStandard.Library/1.6.1 which itself transitively brings in the entire .NET Standard 1.6 dependency graph (which is huge). That graph might contains either deprecated or vulnerable packages which we haven't touched for years.

I noticed this as I looked into a package that depends on Microsoft.DiaSymReader and the reference caused Component Governance warnings.

@ViktorHofer
Copy link
Copy Markdown
Member

Created an issue for this: #282

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.

3 participants