Skip to content

Commit

Permalink
fix: Correcting namespace behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrandolph committed Sep 19, 2023
1 parent 32f8e0c commit 448e654
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/Uno.Templates/content/unoapp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,24 +918,6 @@
]
}
},
"xamlNamespaces": {
"type": "generated",
"generator": "switch",
"replaces": "$xamlNamespaces$",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "!(mauiEmbedding) || !(useNonMauiPlatforms)",
"value": "\n\txmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\n\txmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\n\txmlns:maui=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n\txmlns:not_maui=\"http://notmaui\"\n\tmc:Ignorable=\"d not_maui\""
},
{
"condition": "(mauiEmbedding && useNonMauiPlatforms)",
"value": "\n\txmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\n\txmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\n\tmc:Ignorable=\"d\""
}
]
}
},
"presetDependencyInjectionDefault": {
"type": "generated",
"generator": "switch",
Expand Down Expand Up @@ -1130,6 +1112,26 @@
"datatype": "bool",
"value": "(platforms == wpf || platforms == wasm || platforms == gtk || platforms == linux-fb || platforms == macos)"
},
"xamlNamespaces": {
"type": "generated",
"generator": "switch",
"replaces": "$xamlNamespaces$",
"parameters": {
"evaluator": "C++",
"datatype": "string",
"cases": [
{
// For some reason this doesn't work: "condition": "(mauiEmbedding && useNonMauiPlatforms)"
"condition": "(mauiEmbedding && (platforms == wpf || platforms == wasm || platforms == gtk || platforms == linux-fb || platforms == macos))",
"value": "\n\txmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\n\txmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\n\txmlns:maui=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n\txmlns:not_maui=\"http://notmaui\"\n\tmc:Ignorable=\"d not_maui\""
},
{
"condition": "!(mauiEmbedding && (platforms == wpf || platforms == wasm || platforms == gtk || platforms == linux-fb || platforms == macos))",
"value": "\n\txmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\n\txmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\n\tmc:Ignorable=\"d\""
}
]
}
},
"useDataContracts": {
"type": "computed",
"dataType": "bool",
Expand Down

0 comments on commit 448e654

Please sign in to comment.