Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Dependencies specified in .nuspec file are not downloaded automatically

$
0
0

I've looked at related questions for this issue but none of them solve my issue.

I have the following specified in my .nuspec file

<dependencies>
  <group targetFramework="netstandard2.0">
    <dependency id="Selenium.Support" version="[3.141.0]" />
    <dependency id="RestSharp" version="[106.10.1]" />
    <dependency id="DotNetSeleniumExtras.WaitHelpers" version="[3.11.0]" />
  </group>
</dependencies>

The target framework reference came from here

My SASelenium.Framework.csproj looks like the following...

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <Company>Smart Apprentices</Company>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Selenium.Support" Version="3.141.0"/>
    <PackageReference Include="RestSharp" Version="106.10.1"/>
    <PackageReference Include="DotNetSeleniumExtras.WaitHelpers" Version="3.11.0"/>
  </ItemGroup> 
</Project>

If I do a nuget pack SASelenium.Framework.csproj and attempt to browse the package locally in Visual Studio, I see the following....

enter image description here

Then when I install it, none of the dependancies are installed automatically

enter image description here

What am I doing wrong here?

The project I am trying to install the package in is a .NET Core 3.1 console application.

My version of nuget is 4.9.4


Viewing all articles
Browse latest Browse all 3067

Trending Articles