Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet AssimpNet.targets does not find native libraries #32

Open
griestopf opened this issue Oct 27, 2016 · 0 comments
Open

NuGet AssimpNet.targets does not find native libraries #32

griestopf opened this issue Oct 27, 2016 · 0 comments

Comments

@griestopf
Copy link

griestopf commented Oct 27, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant