Dotnet MSBuild: Get Property does not expand properties
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Describe the bug
Unlike building thee project or uses msbuild properties in `launchsettings.json` the dotnet cli command `dotnet msbuild --getProperty` does not expand properties correctly, which returns results that don't match other implementations.
### To Reproduce
```xml
@(Item)
```
Save that xml as `Example.target` and run ` dotnet msbuild Example.target --getProperty:DynamicValue` which will return `@(Item)` instead of the correct `1;2` like building the project or uses launch settings.
If you run `dotnet msbuild Example.targe -t:Print` you will see it output the correct value of `1;2`
### Fun Facts
- Rider had the same implementation as the dotnet cli and labeled it as a bug. I filled an issue with them https://youtrack.jetbrains.com/issue/RIDER-123106
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.