Skip to content

Corefx build fails when Xamarin PCL profiles are installed #13989

@dsplaisted

Description

@dsplaisted
  1. Install Xamarin tools
  2. Build corefx

EXPECTED: Build succeeds
ACTUAL: Build fails with lots of type resolution errors

The ResolveNuGetPackages target is failing to resolve assets out of xunit.core.netcore:

C:\git\corefx\src\packages\Microsoft.DotNet.BuildTools.1.0.21-prerelease\lib\packageresolve.targets(25,5): warning : Unable to resolve the assets of xunit.core.netcore: Couldn't find a matching group

The Xamarin tools add XML files to the SupportedFrameworks folders of some PCL profiles. This results in the configured frameworks for the project to be:

.NETFramework,Version=v4.5;.NETCore,Version=v4.5;WindowsPhoneApp,Version=v8.1;WindowsPhone,Version=v8.0;MonoAndroid,Version=v1.0;MonoTouch,Version=v1.0

From the package, the following frameworks are supported:

.NETFramework,Version=v4.5;ASP.NetCore,Version=v5.0;.NETCore,Version=v4.5;WindowsPhoneApp,Version=v8.1;WindowsPhone,Version=v8.0

So since the package doesn't support MonoTouch and MonoAndroid, the build system isn't resolving any of the assemblies inside it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions