c# - Do I need to Install NuGet package on .Net standard Library or Executable project or both? -


i using visual studio 2017 , creating .net standard library. in library, adding reference wcf service using wcf connected service option. project class library, adding reference in console app (executable project).

in .net standard project, calling method wcf service library. when run project, error -
system.io.filenotfoundexception: 'could not load file or assembly 'system.servicemodel.primitives, version=4.1.1.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. system cannot find file specified.'

so, in package manager console, install system.servicemodel.primitives package .net standard library project, still same error. if install same nuget executable project, error goes away.

my question is, have install nuget packages 2 times (once class library , once on executable project)?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -