I've created a nuget package which has 2 dependencies.
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>ConsoleApp2</id>
<version>1.0.0</version>
<title>ConsoleApp2</title>
<authors>XX</authors>
<owners>XX</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Description</description>
<copyright>Copyright © 2018</copyright>
<dependencies>
<dependency id="AutoMapper" version="6.2.2" />
<dependency id="NHibernate" version="4.0.4.4000" />
</dependencies>
</metadata>
</package>
I would like install this nuget package to other project but it is't download and install AutoMapper or NHibernate and i don't have any reference. from csproj To create nuget package I'm using nuget.exe version 4.6.2 but other version also don't work.
However if I use method with app.config and package.config it's works well, but I need use first method.
from package.config:
nuget package not installing dependencies
Probably you have select the Ignore Dependencies for Dependency behavior in the options Install and Update options on the nuget package manager UI. To check it, please extend the options button:
If yes, please set it to the default value Lowest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With