Skip to content
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

Fix WasmExtraFilesToDeploy on non-Windows .NET 8 #13698

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Nov 22, 2023

What does the pull request do?

This PR changes the TargetPath of WasmExtraFilesToDeploy to use / as a folder separator, for proper deployment on Linux and macOS.

See .NET 8 breaking change: Backslash mapping in Unix file paths for more information.

(MSBuild still seems to recognize \ as a path separator in Include and some other file path attributes, but TargetPath here is probably a simple string used by an inner task).

I also replaced all \ in browser-related targets/csproj by /, as it doesn't hurt and may prevent future problems.

Fixed issues

Copy link
Member

@maxkatz6 maxkatz6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@maxkatz6 maxkatz6 added this pull request to the merge queue Nov 22, 2023
Merged via the queue into AvaloniaUI:master with commit 0a26404 Nov 22, 2023
6 checks passed
@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Nov 23, 2023
@MrJul MrJul deleted the fix/net8-wasm-deploy branch November 23, 2023 11:30
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET 8 WASM Broken on Linux/MacOS
2 participants