-
Notifications
You must be signed in to change notification settings - Fork 831
fix: Prevent invalid "/**/*" Include path when DesktopProjectFolder is empty #21712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…bute Co-authored-by: MartinZikmund <[email protected]>
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-21712/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21712/docs/index.html |
|
|
||
| <ItemGroup Condition="$(PlatformsProjectFolder) != '' and Exists($(PlatformsProjectFolder))"> | ||
| <_TargetPlatformFiles Include="$(DesktopProjectFolder)/**/*" Condition="Exists('$(DesktopProjectFolder)')"/> | ||
| <_TargetPlatformFiles Include="$(DesktopProjectFolder)/**/*" Condition="'$(DesktopProjectFolder)' != '' AND Exists('$(DesktopProjectFolder)')"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unlikely to fix the linked issue.
|
The build 180279 found UI Test snapshots differences: Details
|
|
Was it fixed? |
MSBuild validates Include attribute syntax before evaluating conditions. When
DesktopProjectFolderis empty (Desktop folder doesn't exist), the Include path becomes/**/*, causing build failures.Changes
Modified
Uno.SingleProject.Desktop.targetsline 33:Added empty-string check to prevent evaluation when folder doesn't exist. Aligns with existing pattern used for platform folder handling in
Uno.Common.targetslines 106-121.Context
Unlike other platform folders (Android, iOS, MacCatalyst) which always have default values,
DesktopProjectFolderis only set when the folder exists, making it the only platform folder that can be empty.Related: dotnet/msbuild#9351
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.mscurl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
The value "/**/*" of the "Include" attribute in element <ItemGroup> in file .nuget\packages\uno.sdk\5.2.161\targets\Uno.SingleProject.Desktop.targets#17297💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.