mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
.csproj Assets not copied to output in dev builds #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yoDon on GitHub (Nov 28, 2017).
When doing full desktop builds, items listed in the .csproj as
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>are copied into the built app's folder hierarchy but when doing dev builds the developer needs to manually copy the files into the destination directory.For example, if you've included files from the Assets folder in your .csproj, those files need to be copied into
obj/Host/node_modules/electron/dist/resources/app/bin/Assets(on a PC) orobj/Host/node_modules/electron/dist/Electron.app/Contents/Resources/app/bin/Assets(on a Mac). I suspect the same issue is present on Linux machines and I'm guessing the destination path matches the PC path but I've not been able to confirm for Linux.