Reputation: 1333
I'm trying to build a .NET Core project from the commandlind. The main project is a 'Web APi' which uses a library (CommonLib) that I've created as well. In VS2015 I've just added a reference to the library project and it builds fine here.
Now when I try to build the project using the command line, I start out running
dnu restore
It downloads all the nuget pacakages without any problems, but then I get the error:
Unable to locate Dependency CommonLib >= 1.0.0-*
Writing lock file C:\Local\WebApi1\src\WebApi1\project.lock.json
Restore complete, 3008ms elapsed
Errors in C:\Local\WebAPi1\src\WebApi1\project.json
Unable to locate Dependency GRMCommon >= 1.0.0-*
I've tried to create add a NuGet.Config file in 'C:\Local\WebApi1\src\WebApi1' with the following content:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="C:\Local\CommonLib\CommonLib" />
</config>
<disabledPackageSources>
<add key="Microsoft and .NET" value="true" />
</disabledPackageSources>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="aspnet-contrib" value="https://www.myget.org/F/aspnet-contrib/api/v3/index.json" />
</packageSources>
<activePackageSource>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</activePackageSource>
</configuration>
without any success
Not quite sure how to get this working...so any help would be greatly appreciated.
Upvotes: 0
Views: 174