dotnet / dotnet/msbuild

RecursiveDir metadata on a TaskItem returns wrong metadata value

Open
#938 3 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

Repro steps :

Download the attached zip and run msbuild /t:repro on Classlibrary1 .

The expected value of RecursiveDir is Level2Folder1 while the returned value is "Level2Folder1\Level3Folder1" .

I am using msbuild 14.0 on Windows 10 Anniversary Update.

I wasn't able to repro the original problem in a standalone project where the recursiveDir was returning a empty string.

@rainersigwald could you help me debug the original repro case too as that is more important and critical to nuget pack scenarios?

[RecursiveDirBugRepro.zip](https://github.com/Microsoft/msbuild/files/433764/RecursiveDirBugRepro.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Extract RecursiveDirBugRepro.zip and run msbuild /t:repro on Classlibrary1 to confirm the returned value differs from the expected Level2Folder1. Trace how RecursiveDir metadata is produced, then also investigate the reported standalone case where it is empty and verify the behavior relevant to NuGet pack scenarios.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.