Workaround issue with Verify on Windows in Rider on .NET 7#2176
Conversation
SeanFeldman
left a comment
There was a problem hiding this comment.
I was supposed to reduce the load on Matt, not add it 😂
|
sorry for the hassle peoples. it is weird though, the tests target net7 and i run rider and have not seen this. can u provide a minimal repro? |
|
@SimonCropp - If I can make a minimal repro, I'll open an issue on Verify. Playing a bit more with it, I don't think it's a Rider bug necessarily, but it manifests if you clone the Tried various things already to reproduce minimally, and I never get the lower-cased drive letter. (Using Rider's "Assembly Explorer" to check the metadata on the assembly is pretty neat, BTW) |
|
But honestly, the workaround took about 10 minutes tops, so not sure how much time I want to invest here. |
Two Verify tests are failing, only on Windows, only on Rider, and only for .NET 7.
On closer inspection, it appears that the
ProjectDirandSolutionDirMSBuild properties are being passed with a lower-case drive letterc:\instead ofC:\. These get written to assembly metadata attributes, and then fails the replacement that Verify does when scrubbing.Will add an issue to Verify for @SimonCropp to investigate, but for now I'm working around it by forcing the drive letter to be upper-cased.
@SeanFeldman - This will fix the test fail you had while onboarding.
#skip-changelog