assimp-net icon indicating copy to clipboard operation
assimp-net copied to clipboard

NuGet AssimpNet.targets does not find native libraries

Open griestopf opened this issue 8 years ago • 0 comments

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.

griestopf avatar Oct 27 '16 17:10 griestopf