Can a NuGet package declare a dependency without adding that dependency to the project? -


i've created nuget package contains custom msbuild tasks named mycompany.msbuild. these tasks have dependency on newtonsoft.json. means after package installed in project, newtonsoft.json.dll have in same directory mycompany.msbuild.dll.

i accomplish bundling own copy of newtonsoft.json.dll in package, wonder if there's better way means won't have update package whenever new version of newtonsoft.json comes out.

if declare newtonsoft.json dependency, nuget install package project when installs package, isn't want have happen.

how can specify dependency in package without having nuget install , add project references? additionally, how can copy package's assembly own package's folder after installed?

a package "hidden" dependency absolutely undesiderable in opinion...

i know it's not real answer but... have considered use javascriptserializer instead of newtonsoft.json? it's bit slower package absolutely self-contained: less pain , users.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -