You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because the EmptyFiles package is expected to copy an EmptyFile directory to the bin folder on build, and does this via targets files in the nuget package.
Something has changed in .NET 5 around the behavior of transitive dependencies here, if we explicitly reference EmptyFile as a top-level dependency then it works. That would be a quick workaround for Shouldly users.
I'm just creating a PR in EmptyFiles which I think will handle .NET5 appropriately.
The text was updated successfully, but these errors were encountered:
As found by @gkinsman, when using things like
.ShouldMatchApproved()
results in an exception being thrown when targettingnet5
:Repo: https://github.com/gkinsman/ShouldlyRepro
This is because the
EmptyFiles
package is expected to copy anEmptyFile
directory to the bin folder on build, and does this via targets files in the nuget package.Something has changed in .NET 5 around the behavior of transitive dependencies here, if we explicitly reference
EmptyFile
as a top-level dependency then it works. That would be a quick workaround for Shouldly users.I'm just creating a PR in
EmptyFiles
which I think will handle .NET5 appropriately.The text was updated successfully, but these errors were encountered: