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

GDAL.Native should not distribute files as content #206

Open
szekerest opened this issue Feb 9, 2023 · 0 comments
Open

GDAL.Native should not distribute files as content #206

szekerest opened this issue Feb 9, 2023 · 0 comments

Comments

@szekerest
Copy link
Member

The package contains many files that are attached to the project as content files. If my project using this package is a library that I also pack into NuGet then my package contains all the contents of the GDAL.Native package.

It would be sufficient to change the msbuild script GDAL.Native.targets, replacing Content with None:

<ItemGroup Condition="'$(ContentGDALInteropFiles)' != '' And '$(ContentGDALInteropFiles)' != 'false' And '@(GDALInteropFiles)' != ''"> <None Include="@(GDALInteropFiles)">. <Link>%(RecursiveDir)%(FileName)%(Extension)</Link>. <CopyToOutputDirectory>Always</CopyToOutputDirectory>. </None>. </ItemGroup>.

Would you do that for feature release of GDAL.Native package.

You can reproduce my problem by creating netstandard library project, adding GDAL.Native package into it and use Pack command in Visual Studio. Result package of this new library has GDAL.Native as dependency and also whole content of GDAL.Native inside.

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