Closed clhodapp closed 1 year ago
Hi, thanks for the PR!
I'm a bit confused however, why this is needed. It's already possible to change the flag without editing source, by just doing dotnet publish -p:DefineConstants=\"NOAUTOUPDATE\"
(our flatpak build does that for example).
So why should there be a second way to change those flags?
Sure enough, that works! Thanks!
Even though there's a preprocessor conditional in the code to allow distro packagers to disable auto-updating, it cannot be easily accessed unless it's bound through in the
csproj
file.On my Linux machine, this allows me to pass a
--property:NoAutoUpdate=true
flag todotnet
to disable autoupdate.