Skip to content
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

Load C++, & Old Mstest adapter for UWP #1275

Merged
merged 5 commits into from
Nov 21, 2017
Merged

Load C++, & Old Mstest adapter for UWP #1275

merged 5 commits into from
Nov 21, 2017

Conversation

mayankbansal018
Copy link
Contributor

Description

In UWP .Net Native Compilation mode managed dll's are packaged differently, & File.Exists() fails.
Include these two dll's if so far no adapters(extensions) were found, & let Assembly.Load() fail if they are not present.

Related issue

Bug 520306: C++ UWP Unit tests are not discovered in release mode if targeting Tpv2
https://devdiv.visualstudio.com/DevDiv/VS.in%20Agile%20Testing%20IDE/_workitems?id=520306&_a=edit&triage=true

Removing tests for loading c++/c# UWP adapter.
One way to fix the test would be to add platform abstraction for Assembly Load

// For C++ UWP adatper, & OLD C# UWP(MSTest V1) adatper
// In UWP .Net Native Compilation mode managed dll's are packaged differently, & File.Exists() fails.
// Include these two dll's if so far no adapters(extensions) were found, & let Assembly.Load() fail if they are not present.
extensionPaths = extensionPaths.Concat(new[] { "Microsoft.VisualStudio.TestTools.CppUnitTestFramework.CppUnitTestExtension.dll", "Microsoft.VisualStudio.TestPlatform.Extensions.MSAppContainerAdapter.dll" });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to test these?

@mayankbansal018 mayankbansal018 merged commit 052e310 into microsoft:master Nov 21, 2017
@mayankbansal018 mayankbansal018 deleted the C++uwpnetnativeassemblyload branch December 6, 2017 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants