Uh oh!
There was an error while loading. Please reload this page.
Rename CoreFx.Private.TestUtilities and reference it in slns - #34656
Conversation
ghost
commented
Apr 7, 2020
Tagging @ViktorHofer as an area owner |
ViktorHofer
commented
Apr 7, 2020
That's the script that I ran: |
| // Despite a lot of effort, couldn't get dotnet to load these assemblies from the sdk dir, so copy them to our binary dir | ||
| // File.Copy ($"{sdkdir}/Microsoft.DotNet.PlatformAbstractions.dll", AppContext.BaseDirectory, true); | ||
| File.Copy ($"{sdkdir}/CoreFx.Private.TestUtilities.dll", AppContext.BaseDirectory, true); | ||
| File.Copy ($"{sdkdir}/TestUtilities.dll", AppContext.BaseDirectory, true); |
There was a problem hiding this comment.
It's a tool that converts xunit tests into a simple app that doesn't depend on the xunit runner, we use it for bringing up webassembly on netcore mono as a lot of the xunit machinery doesn't work there.
There was a problem hiding this comment.
I see. Didn't know if this was for pre-consolidation.
| @@ -1,4 +1,4 @@ | |||
| Microsoft Visual Studio Solution File, Format Version 12.00 | |||
| Microsoft Visual Studio Solution File, Format Version 12.00 | |||
There was a problem hiding this comment.
Would changing the BOM marker change anything?
There was a problem hiding this comment.
Unsure, but I don't care much assuming we won't change these files again anytime soon (now that there is no target framework in them anymore).
safern
left a comment
There was a problem hiding this comment.
LGTM. Question, should we also rename: CoreFx.Private.TestUtilities.Unicode, to TestUtilities.Unicode ?
ViktorHofer
commented
Apr 7, 2020
|
GrabYourPitchforks
commented
Apr 7, 2020
Feel free to rename the |
ViktorHofer
commented
Apr 7, 2020
Failures are known infra ones. |
ViktorHofer
commented
Apr 7, 2020
@GrabYourPitchforks please send one, I'll be OOF rest of the week. |
This fixes the issue where VS refuses to build the test library because it has a reference to TestUtilities which isn't included in the sln. That wasn't a problem before but it seems now that we turned on project restore for everything or because we are using nuget static graph evaluation VS isn't happy about this anymore and errors.
Also I'm renaming CoreFx.Private.TestUtilities to TestUtilities as we don't want to use the
corefxterm anymore and don't needprivatein it anymore as well as we don't produce a package for that library anymore.I didn't rename CoreFx.Private.TestUtilities.Unicode as I don't have any context about that test library but I hope @GrabYourPitchforks will do the same for it.
Fixes#31876