assimp-net
assimp-net copied to clipboard
NuGet AssimpNet.targets does not find native libraries
The file AssimpNet.targets file shipped with the NuGet package assumes that the Assimp-net NuGet package (containing the native Assimp[32|64].dll files) is located one directory up from the project file. See the ..\
in:
<ItemGroup>
<NativeAssimpLibs Include="$(MSBuildProjectDirectory)\..\Packages\AssimpNet.*\lib\Assimp*.dll"/>
</ItemGroup>
This is a bad assumption since the NuGet packages are copied relative to the SOLUTION and not relative to the PROJECT. The assumption holds for simple example projects/solutions created with the VisualStudio project wizard. More complex solutions might reference projects not located one directory below the .sln file.