Skip to content
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

Remove conditional compilation for PSv6 and therefore netstandard2.0 for Engine and Rules projects #1600

Merged
merged 4 commits into from
Nov 10, 2020

Conversation

bergmeister
Copy link
Collaborator

@bergmeister bergmeister commented Oct 24, 2020

PR Summary

This is due to PS 6.2 having reached EOL. The Engine and Rules projects target netcoreapp3.1 for PS 7, therefore the netstandard2.0 compilation target for them is not needed any more. Because the CrossCompatility project is still generic and is not targeting netcoreapp3.1 for PS 7, we can and should keep that project using netstandard2.0.
This will make the module smaller in size and the build faster as a nice side-effect.

PR Checklist

$binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath "PSv$($PSVersionTable.PSVersion.Major)"
}
elseif ($PSVersionTable.PSVersion.Major -eq 6 ) {
[Version] $minimumPowerShellCoreVersion = '7.0.3'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I chose to bump not just from 6.2.4 to 7.0.0 but also to 7.0.3 in anticipation of PR #1597 getting merged, which will bump the minimum version to 7.0.3. Since 7.0.2 is not supported anyway because 7.0.3 is already more than a month old, this should not be an issue.

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.7.0" />
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
<Compile Remove="UseSingularNouns.cs" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I put this in the same block since the previous PR did the same, but I'd be happy to move it to its own block too

@rjmholt rjmholt merged commit 965eca5 into master Nov 10, 2020
@rjmholt rjmholt deleted the RemovePSV6 branch November 10, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants