Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use with anything but desktop .NET projects #13

Open
jamesathey opened this issue Jul 11, 2016 · 1 comment
Open

Cannot use with anything but desktop .NET projects #13

jamesathey opened this issue Jul 11, 2016 · 1 comment

Comments

@jamesathey
Copy link

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.

@panchilo
Copy link
Owner

@jamesathey sorry for the (extremely) late response. I will try that but I don't think it will be it. I'll get back to you with a proper answer soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants