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
In FluentAssertions we have a test project UWP.Specs exercising running FluentAssertions with UWP with <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> enabled.
With 3.0.4 I can I can run the test Determining_caller_identity_should_not_throw_for_native_programs from the Visual Studio Test Explorer.
With 3.1.1 I get build time and runtime diagnostics:
Build time warning
1>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning : ILTransform : warning ILT0003: Method 'MSTestSettings.ValidateSettings(IMessageLogger)' will always throw an exception due to the missing method 'MSTestSettingsProvider.get_Settings()' in assembly 'Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
Runtime error
[Error] An exception occurred while test discoverer 'MSTestDiscoverer' was loading tests. Exception: Method 'MSTestSettingsProvider.get_Settings()' from assembly 'Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices' was not included in compilation, but was referenced in MSTestSettings.ValidateSettings(IMessageLogger). There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
Describe the bug
In FluentAssertions we have a test project UWP.Specs exercising running FluentAssertions with UWP with
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
enabled.With 3.0.4 I can I can run the test
Determining_caller_identity_should_not_throw_for_native_programs
from the Visual Studio Test Explorer.With 3.1.1 I get build time and runtime diagnostics:
Build time warning
Runtime error
Steps To Reproduce
UWP.Specs
and select build (it's excluded from the configuration manager)Determining_caller_identity_should_not_throw_for_native_programs
succeedsTests\UWP.Specs\UWP.Specs.csproj
to use 3.1.1UWP.Specs
againDetermining_caller_identity_should_not_throw_for_native_programs
no longer runs.Expected behavior
Determining_caller_identity_should_not_throw_for_native_programs
should be executableActual behavior
Cannot execute
Determining_caller_identity_should_not_throw_for_native_programs
Additional context
I tried to dig into this and it looks like this addition to
MSTest.TestAdapter
from #1669testfx/src/Adapter/MSTest.TestAdapter/MSTestSettings.cs
Lines 466 to 469 in 1223683
tries to reference code from
MSTestAdapter.PlatformServices
which is excluded for the UWP target.testfx/src/Adapter/MSTestAdapter.PlatformServices/Services/SettingsProvider.cs
Lines 17 to 43 in 1223683
The text was updated successfully, but these errors were encountered: