Add (file)-attribute parameter to MakeDir task
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Feature description
While working on a small company internal SDK, i needed to create a temporary directory in the project root, e.g. called `.sdk`. To follow good practice the directory is prefixed with an dot and should have the Hidden-file-attribute like the `.vs` directory created by Visual Studio or our lovely `.git` one.
Project file
```xml
```
### Expected behavior
MSBuild should create an hidden directory `.sdk`.
### Further thoughts
The `Attributes` parameter would be an `ITaskItem[]` containing 0-n file attributes.
Those would be parsed by the MakeDir-task, e.g. using the `Enum.Parse` .net method.
How would the task act if there is a deeper directory structure to create? E.g. `.sdk\some-sub-dir`. Should both directories be hidden, etc. or should the attribute parameter only apply to the parent dir?
Regarding the fact that the hidden-attribute probably is the only attribute the is used in practice, you could change it to an boolean MSBuild attribute called `Hidden`.
### Environment data
MSBuild Version 15.7.179.6572
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.