[PR #42] [MERGED] Allow users to override the Linux file mode of files #192

Closed
opened 2026-01-29 16:31:08 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/quamotion/dotnet-packaging/pull/42
Author: @qmfrederik
Created: 10/24/2017
Status: Merged
Merged: 10/25/2017
Merged by: @qmfrederik

Base: masterHead: fixes/custom-file-mode


📝 Commits (1)

  • 2168e1e Allow users to override the Linux file mode of files

📊 Changes

6 files changed (+153 additions, -3 deletions)

View changed files

Packaging.Targets.Tests/ArchiveBuilderTests.cs (+103 -0)
📝 Packaging.Targets.Tests/Packaging.Targets.Tests.csproj (+15 -2)
Packaging.Targets.Tests/archive/README.md (+1 -0)
Packaging.Targets.Tests/archive/script.sh (+3 -0)
📝 Packaging.Targets/ArchiveBuilder.cs (+17 -1)
📝 Packaging.Targets/TaskItemExtensions.cs (+14 -0)

📄 Description

This PR allows you to add a new attribute to files, the LinuxFileMode attribute, which you can use to set the file mode of the file on Linux file systems in octal notation.

For example, to give root root rwx and others rx permissions, you can specify LinuxFileMode="755" in your .csproj file.

Fixes #31


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/quamotion/dotnet-packaging/pull/42 **Author:** [@qmfrederik](https://github.com/qmfrederik) **Created:** 10/24/2017 **Status:** ✅ Merged **Merged:** 10/25/2017 **Merged by:** [@qmfrederik](https://github.com/qmfrederik) **Base:** `master` ← **Head:** `fixes/custom-file-mode` --- ### 📝 Commits (1) - [`2168e1e`](https://github.com/quamotion/dotnet-packaging/commit/2168e1ed44de688caf30d515f349017ec484b5e7) Allow users to override the Linux file mode of files ### 📊 Changes **6 files changed** (+153 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `Packaging.Targets.Tests/ArchiveBuilderTests.cs` (+103 -0) 📝 `Packaging.Targets.Tests/Packaging.Targets.Tests.csproj` (+15 -2) ➕ `Packaging.Targets.Tests/archive/README.md` (+1 -0) ➕ `Packaging.Targets.Tests/archive/script.sh` (+3 -0) 📝 `Packaging.Targets/ArchiveBuilder.cs` (+17 -1) 📝 `Packaging.Targets/TaskItemExtensions.cs` (+14 -0) </details> ### 📄 Description This PR allows you to add a new attribute to files, the `LinuxFileMode` attribute, which you can use to set the file mode of the file on Linux file systems in octal notation. For example, to give root root `rwx` and others `rx` permissions, you can specify `LinuxFileMode="755"` in your `.csproj` file. Fixes #31 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:31:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#192