Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Adding interop dll library causing kpm failed to restore #990

Closed
gibeon-andrew opened this issue Dec 15, 2014 · 15 comments
Closed

Adding interop dll library causing kpm failed to restore #990

gibeon-andrew opened this issue Dec 15, 2014 · 15 comments
Milestone

Comments

@gibeon-andrew
Copy link

http://stackoverflow.com/questions/27410472/asp-net-vnext-bin-dll

The steps are same with my question within stack overflow,
Basically to make System.Data.SQlite.dll work, it needs to have SQLite.Interop.dll within the search path of dll.
As I'm not quite sure where to put it, I try to put SQLite.Interop.dll within this folder
C:\Users{your username}.kpm\packages\System.Data.SQLite.Core\1.0.94.0\lib\net451
Close visual studio 2015 preview, then open the project again
Apparently, this causing visual studio 2015 preview failed to build, with reference error
with these kind of messages
Restoring packages for C:\Users\xxxx\documents\visual studio 14\Projects\ClipOne\src\xxxx\project.json
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Runtime'
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks'
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding'
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Collections'
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Globalization'
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Reflection'

When i press start website, it just hang at build

Looks like when there is something "foreign" within package folder, it cause some issue

@davidfowl
Copy link
Member

What hangs? Those look like http calls to me. We're still working with the nuget team to come up with a more formal way to represent these types of packages with native dependencies.

@gibeondev
Copy link

It hangs as the website can't be started anymore, those message the only error messages i got, I will provide screenshot later today to make the issue more clear once i have access to my pc where vs 2015 preview installed

@gibeon-andrew
Copy link
Author

To reproduce:

  1. Put the dll like screenshot below (make sure you close vs 2015 preview after this step)
    image
  2. Once you open vs 2015 preview, you will see error on references
    image

When you press right click, add references, you will get this
image

  1. Now the website just hang with never ending waiting for localhost
    image
  2. For projects which doesn't use System.Data.SQLite.Core, no strange message
    image

@davidfowl
Copy link
Member

What does the error list say

@gibeon-andrew
Copy link
Author

good question, where can I find the error list ? it just say see error list

@gibeon-andrew
Copy link
Author

found it
image

@davidfowl
Copy link
Member

Yep, that error makes sense. Don't put the DLL there. This package won't work with ASP.NET 5 projects as yet. We need a way to determine what native dependencies are so we can wire up the runtime appropriately.

@gibeon-andrew
Copy link
Author

Any workaround for this issue? where to put the native dll ?

@davidfowl
Copy link
Member

I'm afraid the workaround for this issue isn't trivial. You'd need to load the native dll yourself to make it work right now. There are APIs you can use to locate it though

@gibeon-andrew
Copy link
Author

hmm ok...

@davidfowl
Copy link
Member

Or you can try putting it in the project root.

@gibeon-andrew
Copy link
Author

DllNotFoundException

image

@gusennan
Copy link

@gibeon-andrew 6 months later and I'm running into this same issue. Were you ever able to resolve it?

@davidfowl
Copy link
Member

This issue unfortunately won't fix itself. Anything we do will require those packages to be republished to support the new package layout. See #402 for more details.

@glennc glennc added this to the 1.0.0 backlog milestone Jul 17, 2015
@muratg
Copy link
Contributor

muratg commented Sep 24, 2015

Closing in favor of #402

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

6 participants