Dnu restore does not work in C # class library with "ambiguous" error

I am running Visual Studio 2015 and trying to add a simple NettlesLibrary.xproj class library to a solution using the latest MVC. I can't get the links to work, so I'm trying to run:

dnu restore 

in the NettlesLibrary directory.

The error I am getting is:

 CACHE https://api.nuget.org/v3/index.json Restoring packages for C:\Users\Kevin\Documents\Visual Studio 2015\Projects\nettles3\src\NettlesLibrary\project.json ---------- System.InvalidOperationException: The project name 'NettlesLibrary' is ambiguous between the following projects: C:\Users\Kevin\Documents\Visual Studio 2015\Projects\nettles3\src\NettlesLibrary C:\Users\Kevin\Documents\Visual Studio 2015\Projects\nettles3\wrap\NettlesLibrary 

How to fix this error?

+5
source share

Source: https://habr.com/ru/post/1240820/


All Articles