assimp / assimp-net

Automatically exported from code.google.com/p/assimp-net
196 stars 83 forks source link

NuGet AssimpNet.targets does not find native libraries #32

Open griestopf opened 8 years ago

griestopf commented 8 years ago

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.