RamblingCookieMonster / PSDepend

PowerShell Dependency Handler
MIT License
285 stars 76 forks source link

add ps version constraint for semanticversion class #113

Closed bgelens closed 4 years ago

bgelens commented 4 years ago

add ps version constraint for semanticversion class to be lower than psv6 or else we have a conflict with native class.

We have this error in Azure DevOps pipelines since the new code:

Line |
 154 |    Import-Module PSDepend
     |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Failed to import function /agent/_work/1/s/out/modulecache/PSDepend/0.3.4/Private/SemanticVersion.ps1: (15,68): error CS0436: The type 'SemanticVersion' in '' conflicts with the imported type 'SemanticVersion' in 'System.Management.Automation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Using the type defined in ''.     public sealed class SemanticVersion : IComparable, IComparable<SemanticVersion>, IEquatable<SemanticVersion>                                                                    ^ 
VOVELEE commented 4 years ago

This will be nice to be implemented. Same error in my pipelines too.

RamblingCookieMonster commented 4 years ago

Thanks for catching this!