-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable tests on netcoreapp3.1 #520
Conversation
RuntimePath is ./runtimes instead of ../runtimes
@AArnott - |
|
That said, interestingly that vcxproj test passes on net461 in CI but fails on netcoreapp3.1. If we can't figure out how to fix it, we can disable it using something like this on the test method: #if NETCOREAPP
[Trait("TestCategory", "FailsOnAzurePipelines")]
#endif |
93d9d30 might do the trick by making the test conditional - the test won't work if the v142 toolset is not installed or the Windows 10 SDK could not be resolved. I don't fully understand why the test would succeed on NetFx and fail on NetCore, though, perhaps somebody with a deeper understanding of the VC toolset can explain (or we just skip the test on Azure, like you suggest) :). |
I suspect it's because under .NET Core, the msbuild installation comes from the .NET Core SDK, which doesn't have C++ extensions installed. But when run under .NET Framework, the msbuild found comes from the VS installation which does have C++ installed. I'm concerned though about pinning too precise of a path here based on specific toolset versions. This seems like it will silently cause the test to start skipping when Azure Pipelines updates from the 14.2 VC toolset to something later. I'd be more comfortable with a test that won't stop running where it currently runs without raising a fuss. Can we perhaps instead use |
Sure, no problem. PS - I've noticed CI doesn't get triggered automatically on a push to a PR. Is that something that can be fixed? |
I sure hope so. It's broken everywhere. Please consider voting that ticket up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
I'm prototyping work related to #505. The managed Git implementation, at the moment, uses
Span<T>
and friends, and targetsnetcoreapp3.1
.I retargeted the project and tests to run on
netcoreapp3.1
and came across a couple of test failures, which this PR attempts to resolve:AssemblyVersionInfo
task throws no error when targeting a language which is not supportedRuntimePath
appears to be./runtimes
instead of../runtimes
netcoreapp
, and is only used in a test which is skipped. I have methods which rely on SevenZipNET throw aPlatformNotSupportException
.