We use PowerShell script to update post-build event in the target project and copy jar files to target directory during build.
However, this no longer works with .NET Core.
nuspec file should be updated with new format, see example from https://github.com/NuGet/Samples/blob/master/ContentFilesExample/authoring/ContentFilesExample.nuspec:
UPDATE: this breaks NuGet package usage completely under .NET Core 3.0
NuGet behavior has changed in .NET Core 3.0:
The dotnet build command now copies NuGet dependencies for your application from the NuGet cache to the build output folder
In .NET Core 2.x dependencies are used directly from NuGet cache, so JAR files are resolved.
In 3.0 this does not work anymore, we should find a way to copy JAR files to the output folder.
- .NET 4.x
- .NET Core 2.x, 3.x Windows & Linux
- Binary zip distribution (examples, .NET Core examples)