Skip to content

[mtouch] Support netstandard library nuget package with reference assembly #3804

@VincentDondain

Description

@VincentDondain

See test case: https://www.dropbox.com/s/btb6rzb636pnutf/Issue3199Test2.zip?dl=0

In this test case the iOS project references a netstandard class library, which references a Nuget Package (System.Runtime.CompilerServices.Unsafe) but the app does NOT reference that package directly.

In this specific case mtouch will fail with MTOUCH : error MT2101: Can't resolve the reference '!!1& System.Runtime.CompilerServices.Unsafe::As(!!0&)', referenced from the method 'System.Void LibWithPackage.Class1::Test()' in 'System.Runtime.CompilerServices.Unsafe, Version=4.0.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. as it doesn't have a reference to System.Runtime.CompilerServices.Unsafe.dll.

Full build log: https://gist.github.com/VincentDondain/3a067c97e7f034a2a5c542dc6d3d7072

Env: https://gist.github.com/VincentDondain/20ff66a750277c383d75d518a925ed82

Metadata

Metadata

Labels

bugIf an issue is a bug or a pull request a bug fixiOSIssues affecting iOSmacOSIssues affecting macOS

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions