Skip to content

dotnet test fails when native assets are required and multiple RuntimeIdentifiers are set #2765

@conniey

Description

@conniey

There are several related questions/issues to this (ie. #1017), so this might be more of a guidance question.

Our ApiPort tests use ilasm to compile IL files and verify that our MetadataReader is working correctly. (ex. Microsoft.Fx.Portability.MetadataReader.Tests.csproj.

It currently only works on .NET 4.6, but we want to be able to run this test on Linux as well to make sure our MetadataReader works on all platforms.

What is the solution here?

When I set: <RuntimeIdentifiers>win7-x86;linux-x64</RuntimeIdentifiers>, all tests when running against both .NET 4.6 and .NETCoreApp2.1 because ildasm cannot be located (since it is not copied to the OuputDirectory).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions