visual studio - How are packages.config paths resolved? -
i have project packages.config file. have corresponding library. when attempt build solution in visual studio, find library, , works. xamarin studio on mac fails find same library.
for me, part of problem don't understand how contents of "packages" file corresponds path. it's not direct correspondence.
here packages.config file. relevant package "splat".
edit: answer apparently needed restart computer. said, still interesting know how chooses path.
<?xml version="1.0" encoding="utf-8"?> <packages> <package id="newtonsoft.json" version="6.0.1" targetframework="portable-net45+wp80+win+monoandroid10+monotouch10" /> <package id="splat" version="1.2.1" targetframework="portable-net45+win+monoandroid10+monotouch10" /> </packages> and here packages directory in finder:
wj-macbook:packages william$ ls -rf ./splat.1.2.1: splat.1.2.1.nupkg lib/ ./splat.1.2.1/lib: monomac/ monoandroid/ net45/ monotouch/ netcore45/ wp8/ portable-net45+winrt45+wp8/ ./splat.1.2.1/lib/monomac: splat.dll splat.dll.mdb ./splat.1.2.1/lib/net45: splat.dll splat.pdb ./splat.1.2.1/lib/netcore45: splat.dll splat.pdb splat.pri ./splat.1.2.1/lib/portable-net45+winrt45+wp8: splat.dll splat.dll.mdb ./splat.1.2.1/lib/monoandroid: splat.dll splat.dll.mdb ./splat.1.2.1/lib/monotouch: splat.dll splat.dll.mdb ./splat.1.2.1/lib/wp8: splat.dll splat.pdb
on windows nuget installation process modify relevant project file include hint path packages. here line taken directly 1 of projects
<reference include="editorutils, version=1.3.0.0, culture=neutral, publickeytoken=3d1514c4742e0252, processorarchitecture=msil"> <specificversion>false</specificversion> <hintpath>..\..\packages\editorutils.1.3.0.0\lib\net40\editorutils.dll</hintpath> </reference> the hintpath here method msbuild discovers editorutils reference. added nuget during installation.
i not know equivalent mechanism on xamarin unfortunately although imagine it's quite similar
Comments
Post a Comment