winforms icon indicating copy to clipboard operation
winforms copied to clipboard

`build.sh` produces `Permission denied`

Open richlander opened this issue 1 year ago • 2 comments

.NET version

main branch

Issue description

I tried to build the repo with build.sh. It reported that Permission denied. I wonder what the intent is. It isn't described at https://github.com/dotnet/winforms/blob/main/docs/building.md. I did not try to run the build via sudo, since that seems like a bad idea.

Steps to reproduce

rich@mazama:~/git/winforms$ ./build.sh
./build.sh: line 16: /home/rich/git/winforms/eng/common/build.sh: Permission denied

richlander avatar Sep 23 '24 19:09 richlander

See #10491.

I am unsure if support for linux exists.

elachlan avatar Sep 24 '24 03:09 elachlan

It probably doesn't. It seems like we should either delete the script or document in building.md that build.sh is unusable for this repo, but that we cannot delete it.

richlander avatar Sep 24 '24 14:09 richlander

Potentiall we could use the EnableWindowsTargeting property if we really want to, and revert the linked change. It's not a huge priority, but it might make some folks happy

merriemcgaw avatar Mar 20 '25 20:03 merriemcgaw

From: Igor Velikorossov

I think you just need to set correct permissions to the shell scripts “chmod 644” https://stackoverflow.com/a/78936172/2338036

Tanya-Solyanik avatar Apr 03 '25 01:04 Tanya-Solyanik

This is not a priority for .NET 10.

merriemcgaw avatar Apr 15 '25 18:04 merriemcgaw