-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Common dnu restore issue: Unable to locate PROJECT_NAME.dll >= 1.0.0 #494
Comments
This is still occurring for VS 2015 RC (of course, since that's just running the command lines behind the scenes) ...
|
This looks extremely specific to something bogus in your project. Can you create give us some reproducible steps in a new project? |
@davidfowl I think I see why
I see this package folder in the name of my project name with a That folder gets put there during a
... so you see a dependency section there with the project name and version, and I think it can't restore that. There is also a generated
... with another reference to a dependency on the project name itself. When I manually delete the packages folder in the name of the project, manually kill the dependency lines for the project in these dependency sections of these files, the So ... questions are ... is it supposed to be putting a package in there with the project name ... is it supposed to be generating these project-named dependencies in these |
TLDR; If you have an "artfifacts" folder in the same folder you are doing a Long winded: Suppose your directory structure looks like this:
Then suppose you Now suppose, you are using Visual Studio to build your solution.. and for each project, you tick the option to output arttifacts on build. It creates an artifacts folder at the same level as the solution file - i.e in the
I have noticed that in that artifacts folder, it's placing project.json files. Now when you The two work-arounds for this problem, are either to create a script that calls
|
It works when you delete the artifacts folder at the root of the solution. I have a "src", "samples" and "test" folders at the solution folder so I to do dnu restore at the level. I wish there's a way to filter out which directories to restore or better yet, which ones... |
Does listing the folder in the |
@guardrex - Just tried, it doesn't work. - This is definitely a work in progress. At least there's a workaround - deleting the artifacts folder does the trick. |
@codematrix There is something for RTM that might solve this if it's still a prob for you when you get to RC2. https://github.com/dotnet/cli/issues/1588 |
Fix policheck paths
I commonly get exceptions reporting that the
PROJECT_NAME.dll
file cannot be found and must delete the contents of thebin
folder to getdnu restore
to work properly. Here is the end of output showing the exception.The text was updated successfully, but these errors were encountered: