Skip to content

Compile against net452 because net451 is not supported any more #828

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

Merged
merged 2 commits into from
Jan 8, 2019

Conversation

bergmeister
Copy link
Contributor

@bergmeister bergmeister commented Dec 15, 2018

Technically, net452 is an in-place upgrade anyway that does not need recompilation but for best practices, PSES should compile against the lowest support .Net Framework so that it works on each Windows machine (as long as they are sufficiently patched), more details are here: https://support.microsoft.com/en-us/help/17455/lifecycle-faq-net-framework
Similarly, after that we should move away from netcoreapp2.0, which is also not supported any more

Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

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

LGTM! I've actually been wanting to do this, but hadn't had time to do the due diligence on supported upgrades yet. Thanks @bergmeister.

@rjmholt rjmholt requested a review from rkeithhill December 17, 2018 19:44
@@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyTitle>PowerShell Editor Services</AssemblyTitle>
<Description>Provides common PowerShell editor capabilities as a .NET library.</Description>
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks>
<TargetFrameworks>netstandard1.6;net452</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be worth it to move to netstandard2.0 for .NET Core builds?

Copy link
Contributor

Choose a reason for hiding this comment

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

I have been wondering the same. Would there be any reason not to?

Copy link
Contributor

Choose a reason for hiding this comment

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

What version of .NET Core did 6.0 & 6.1 ship with? Seems like at least 6.0 was 1.x so maybe we're stuck with 1.6 until we're willing to drop support for 6.0 (and maybe 6.1). Doh!

Copy link
Contributor Author

@bergmeister bergmeister Dec 17, 2018

Choose a reason for hiding this comment

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

PSCore 6.0 and 6.1 both run on .Net Core 2.1 and implement netstandard2.0. The only hypothetical reason not to would be a reduced set of runtimes but this would only apply in restricted scenarios like e.g. mobile phone apps using Xamarin.
But I have been told not to submit a PR for such changes because the 2.0.0 branch upgrades it to .netstandard2.0 and PSStandard already. PR #830 got closed for that reason for example.

Copy link
Contributor

Choose a reason for hiding this comment

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

They're both compatible I'm pretty sure. The real work in the upgrade was eliminating net45 stuff and things PSStandard didn't like. In which case I think we may as well upgrade to netstandard2.0. But @TylerLeonhardt may have good reasons not to

Copy link
Member

Choose a reason for hiding this comment

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

6.0 ships with .NET Core 2.0

Copy link
Member

Choose a reason for hiding this comment

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

Unless something changed in the last patch version

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

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

LGTM

@rjmholt
Copy link
Contributor

rjmholt commented Dec 18, 2018

Ok, given that net451 is EOL, I think we want the net452 upgrade.

@rjmholt
Copy link
Contributor

rjmholt commented Dec 18, 2018

Will wait for other approvals

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

LGTM

@TylerLeonhardt TylerLeonhardt merged commit 4b39d01 into PowerShell:master Jan 8, 2019
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.

4 participants