.Net Maui Prebuild executes multiple times
Hi,
So I am working on a .Net maui desktop app, and I need to run a .bat file for some automation before the app gets build.
Problem is that it gets executed for every platform the app builds, while I only need it to be executed once.
Any ideas if this is possible?
1 Reply
so I guess in a way its possible by adding a target beforeBuild and then create a file called build.flag and if that file exists don't execute it. But then there is still a chance it happens multiple times if its running the command in parallel causing the flag to be ignored as it doesn't exist yet...
so i was thinking to maybe save the process id first so only if it has the id set in the file can it continue the progress