dotnet / dotnet/msbuild

[Bug]: including files with `**\*.SomeExtension` may not be expanded in some cases

Open
#9,351 9 comments 0 reactions 0 assignees View on GitHub
backlog blocked bug Priority:2 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description

See https://github.com/unoplatform/uno.templates/issues/354

In csproj, we simply have ``

Then, we run a target that adds these to AdditionalFiles as follows:

https://github.com/unoplatform/uno/blob/1c635068111de02977090c8379206a4caac40b3d/src/SourceGenerators/Uno.UI.SourceGenerators/Content/Uno.UI.SourceGenerators.props#L359

We end up with:

> 2>C:\Users\XXX.nuget\packages\uno.winui\5.0.0-dev.3568\buildTransitive\Uno.UI.SourceGenerators.props(366,66): error MSB4184: The expression "[System.IO.Path]::GetFullPath(*.resw)" cannot be evaluated. Illegal characters in path.

### Steps to Reproduce

Not consistent, but detailed above.

### Expected Behavior

`**\*.resw` should be expanded properly.

### Actual Behavior

Error

### Analysis

_No response_

### Versions & Configurations

_No response_

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.