Add build targets for NuGet packages

Add build targets for NuGet packages

mnugmeizrnrmstrsxsmnugmeizrnrmstrsxs Posts: 1Questions: 0Answers: 0

datatables NuGet package does not copy the *.js files when PackageReference is used instead of packages.config. The reason for this is that build targets are not embedded inside the package. Please provide a build target file inside the package.

For reference, you can use https://nuget.info/packages/TinyMCE/6.4.1 to see how TinyMCE have solved this problem. You need a folder called "build" and then create a *.target file which will copy all the *.js files to www or bin folder when the solution is built.

Replies

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    How do you use PackageReference? Part of the problem here is that I nearly always use npm, so I'm not consuming the Nuget packages myself. Any insight on how we can update our Nuspec files would be most welcome. Surely there must be a way where we don't need to create duplicate files in a "build" directory?

    Allan

Sign In or Register to comment.