dotnet / dotnet/msbuild

Document property/item creation batching

Open
#2,249 10 comments 0 reactions 0 assignees View on GitHub
Area: Documentation triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

Repro:

Create directory structure and empty files like so:
```
A\1.stub
B\2.stub
B\3.stub
```

and run targets file in the same dir as A and B:

```xml


<_StubFiles Include="$(MSBuildThisFileDirectory)**\*.stub"/>

<_StubDirs Include="@(_StubFiles->'%(RecursiveDir)')"/>




<_ComponentDir>%(_StubDirs.Identity)
<_ComponentName>$(_ComponentDir.TrimEnd('\'))



```

Actual output:
```
>> A\ 'B\' 'B'
>> B\ 'B\' 'B'
```

Expected output:
```
>> A\ 'A\' 'A'
>> B\ 'B\' 'B'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.