FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove conditional compilation for PSv6 and therefore netstandard2.0 for Engine and Rules projects by bergmeister · Pull Request #1600 · PowerShell/PSScriptAnalyzer · GitHub

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

Merged
Rob Holt (rjmholt) merged 4 commits into
masterfrom
RemovePSV6
Nov 10, 2020
Merged

Remove conditional compilation for PSv6 and therefore netstandard2.0 for Engine and Rules projects#1600
Rob Holt (rjmholt) merged 4 commits into
masterfrom
RemovePSV6

Conversation

Christoph Bergmeister (bergmeister) commented Oct 24, 2020
edited
Loading

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Comment thread Rules/Rules.csproj
<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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Rob Holt (rjmholt) merged commit 965eca5 into master Nov 10, 2020
Rob Holt (rjmholt) deleted the RemovePSV6 branch November 10, 2020 17:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL