Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Overlay package gets installed in wrong location #107

Open
gegenschall opened this issue May 15, 2015 · 4 comments
Open

Overlay package gets installed in wrong location #107

gegenschall opened this issue May 15, 2015 · 4 comments

Comments

@gegenschall
Copy link

After updating Visual Studio 2013 to Update 4 several problems started appearing with one specific package (OpenCV 2.4.10) that uses Overlays:

For some project I have this line in my packages.config in the project root:

<package id="OpenCV" version="2.4.10" targetFramework="Native" />

Doing nuget.exe restore correctly installs the package to $(SolutionDir)packages\. Upon building of the project it seems that nuget tries to install an overlay packge which succeeds but it gets installed in the wrong location thus .lib and .dll files cannot be found when linking. The error message is:

warning : Overlay Package 'OpenCV.overlay-x64_v120_Debug v2.4.10' installed correctly, but the nupkg file 'C:\project\packages\OpenCV.2.4.10\OpenCV.overlay-x64_v120_Debug.2.4.10' is not in the expected location.

It really isn't there, its at the top-level package source location or sometimes at the project root.
How do I fix this?

@gegenschall gegenschall changed the title Problem with overlay package Overlay package gets installed in wrong location May 15, 2015
@Thieum
Copy link

Thieum commented Aug 20, 2015

👍 same issue here.

@Thieum
Copy link

Thieum commented Aug 20, 2015

A workaround is to prevent the creation of overlays altogether as explained in #54 .

@zer0n
Copy link

zer0n commented Jul 23, 2016

I run into the same issue. @gegenschall, have you found the cause and solution for this issue?

@glopesdev
Copy link

The cause is the change from NuGet v2 to NuGet v3. The entire API for custom commands has changed, which means the codebase in CoApp.NuGetNativeExtensions is broken unless you force the use of NuGet client v2 in your repository. It will likely not be an easy fix.

For more details see MSDN docs:
https://docs.microsoft.com/en-us/nuget/reference/nuget-client-sdk

and the Dave Glick blog post:
https://www.daveaglick.com/posts/exploring-the-nuget-v3-libraries-part-1

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

No branches or pull requests

4 participants