MSB3755 using Windows path separators for Task References on macOS
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Issue Description
Using Windows path separators in a `Reference` element within a `Task` does not appear to get normalized and fails with MSB3755
### Steps to Reproduce
Based on https://learn.microsoft.com/en-us/visualstudio/msbuild/walkthrough-creating-an-inline-task?view=vs-2022 but adding a Reference:
```
### Expected Behavior
Builds and runs OK
### Actual Behavior
`error MSB3755: Could not find reference "/Users/user/.nuget/packages/\microsoft.bcl.asyncinterfaces\9.0.6\lib\netstandard2.0\Microsoft.Bcl.AsyncInterfaces.dll". If this reference is required by your code, you may get compilation errors.`
### Analysis
As a workaround, using forward slash works on both Windows and macOS
### Versions & Configurations
MSBuild 16.10.1.51301
dotnet SDK 9.0.301
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.