Building templates on a non-Windows machine is broken #4871
Labels
area-infrastructure
CI, Maestro / Coherency, upstream dependencies/versions
area-templates
Project templates, Item Templates for Blazor and MAUI
fixed-in-6.0.300-rc.1
Look for this fix in 6.0.300-rc.1!
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Description
When building on a macOS machine, we are using MSBuild to template some .json files. These .json files have backslashes in them
\"
:maui/src/Templates/src/templates/maui-blazor/.template.config/template.json
Line 24 in 7b3c187
However, when we run this file through
WriteLinesToFile
task in MSBuild, the backslashes are getting flipped to front slashes:maui/src/Templates/src/Microsoft.Maui.Templates.csproj
Lines 29 to 48 in 7b3c187
In the binlog I see:
but that is getting flipped in the parameter to
Lines
:To fix this, we might need to make our own "replacement" task that doesn't flip the slashes.
See dotnet/msbuild#1622 for more details on the underlying MSBuild bug.
Steps to Reproduce
dotnet/maui
on a macOS machine:dotnet cake --configuration="Release"
$REPO_ROOT/bin/dotnet
dotnet new maui
Results
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
All macOS versions
Did you find any workaround?
Use the template packages from a Windows build. Or use a Windows build to make the templated app and copy it to the macOS.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: