@jnoyola wrote:
Does anyone use VS Publish or dotnet publish? I've found that my content is copied fine during builds, but it doesn't get copied to the publish directory. I have the MonoGameContentReference and rely on MonoGame.Content.Builder.targets to manage the references for me, and I noticed that this line only has
CopyToOutputDirectory
but notCopyToPublishDirectory
. I've tried WindowsDX and DesktopGL.Core for win-x64 and linux-x64.I've followed these steps to make some progress, but this won't scale.
- Add
CopyToPublishDirectory
but discover thatCreateItem
called during Build doesn't carry over Publish.- Add
BeforeTargets="GetCopyToPublishDirectoryItems"
but discover that targets from NuGet packages only seem to be referenced during Build, not Publish.- Moved the target into my csproj and it works.
I'm not sure if I'm missing something or broke something, but it looks like a few other people on here have suggested success with dotnet publish.
Posts: 1
Participants: 1