Skip to content

Cannot use with anything but desktop .NET projects #13

Open
@jamesathey

Description

I just tried to install MSBuild.NugetContentRestore 0.1.6 into my Xamarin.Android project, and got the following error message:

Could not install package 'MSBuild.NugetContentRestore 0.1.6'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

NuGet doesn't know that NugetContentRestore's net40/ DLL is just used for building, and not for linking. I imagine that it's just as impossible to install NugetContentRestore into any non-desktop project, including PCL projects, Windows Store, .NET Core, etc.

I think the fix is as simple as putting MSBuild.NugetContentRestore.dll and MSBuild.NugetContentRestore.targets directly in the build/ folder, instead of in the build/net40/ folder.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions