-
-
Notifications
You must be signed in to change notification settings - Fork 288
Open
Description
Environment
- Windows 22H2
- .NET SDK Version: 8.07
Subject of the issue
Where there is a hierarchy of code that use Ardalis.GuardClauses updating the top level package, without updating the tranisitive library package to use the same version complies without error, but throws System.MissingMethodException : Method not found: 'System.String Ardalis.GuardClauses.GuardClauseExtensions.NullOrEmpty(Ardalis.GuardClauses.IGuardClause, System.String, System.String, System.String)'.
Steps to Reproduce:
- Update top-level package in client solution from v4.5 to v4.6
- Version 4.5 remaining in library packages
- Run application or tests
- Exception is thrown when guard clause is called.
Expected behaviour
Update to top-level package should not cause runtime exception where no changes have been made to top-level code.
Actual behaviour
Calls to guard clauses throw:
System.MissingMethodException : Method not found: 'System.String Ardalis.GuardClauses.GuardClauseExtensions.NullOrEmpty(Ardalis.GuardClauses.IGuardClause, System.String, System.String, System.String)'.
Tested resolution
Updating all libraries using the package to version 4.6 resolved the issue, as did reverting top-level package to 4.5 or removing top-level package and using transitive.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels