Skip to content

Commit

Permalink
Merge pull request #249 from AvaloniaUI/prepare-before-11.1
Browse files Browse the repository at this point in the history
Prepare before 11.1 + 11.0.10
  • Loading branch information
maxkatz6 authored Mar 8, 2024
2 parents cb1615c + 72da70a commit d9c1f3c
Show file tree
Hide file tree
Showing 24 changed files with 61 additions and 59 deletions.
2 changes: 1 addition & 1 deletion Avalonia.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>11.0.9</PackageVersion>
<PackageVersion>11.0.10</PackageVersion>
<PackageId>Avalonia.Templates</PackageId>
<Title>Avalonia Templates</Title>
<Description>Templates for creating Avalonia applications and libraries.</Description>
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
- task: CmdLine@2
displayName: 'Install workload'
inputs:
script: 'dotnet workload install android ios wasm-tools wasm-experimental'
script: 'dotnet workload install android ios wasm-tools'
- task: PowerShell@2
displayName: 'Run Tests'
inputs:
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ Available parameters:

*Description*: The target version of Avalonia NuGet packages.

*Options*: **0.10.21**, **11.0.9**
*Options*: **0.10.22**, **11.0.10**

*By default*: 11.0.9
*By default*: 11.0.10

``-cb, --compiled-bindings``

Expand Down Expand Up @@ -99,9 +99,9 @@ Available parameters:

*Description*: The target version of Avalonia NuGet packages.

*Options*: **0.10.21**, **11.0.9**
*Options*: **0.10.22**, **11.0.10**

*By default*: 11.0.9
*By default*: 11.0.10

``-cb, --compiled-bindings``

Expand Down
14 changes: 7 additions & 7 deletions templates/csharp/app-mvvm/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,28 @@
"datatype": "choice",
"choices": [
{
"choice": "0.10.21",
"description": "Target 0.10.21"
"choice": "0.10.22",
"description": "Target 0.10.22"
},
{
"choice": "11.0.9",
"description": "Target 11.0.9 (Latest stable)"
"choice": "11.0.10",
"description": "Target 11.0.10 (Latest stable)"
}
],
"replaces": "AvaloniaVersionTemplateParameter",
"defaultValue": "11.0.9"
"defaultValue": "11.0.10"
},
"AvaloniaStableChosen": {
"type": "computed",
"value": "(AvaloniaVersion == \"11.0.9\")"
"value": "(AvaloniaVersion == \"11.0.10\")"
},
"UseCompiledBindings": {
"type": "parameter",
"description": "Defines if CompiledBindings should be enabled by default in the project (only supported in 11.0 version and newer).",
"datatype": "bool",
"displayName": "Use compiled Bindings",
"defaultValue": "true",
"isEnabled": "(AvaloniaVersion == \"11.0.9\")"
"isEnabled": "(AvaloniaVersion == \"11.0.10\")"
},
"RemoveViewLocator": {
"type": "parameter",
Expand Down
14 changes: 7 additions & 7 deletions templates/csharp/app/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@
"datatype": "choice",
"choices": [
{
"choice": "0.10.21",
"description": "Target 0.10.21"
"choice": "0.10.22",
"description": "Target 0.10.22"
},
{
"choice": "11.0.9",
"description": "Target 11.0.9 (Latest stable)"
"choice": "11.0.10",
"description": "Target 11.0.10 (Latest stable)"
}
],
"replaces": "AvaloniaVersionTemplateParameter",
"defaultValue": "11.0.9"
"defaultValue": "11.0.10"
},
"AvaloniaStableChosen": {
"type": "computed",
"value": "(AvaloniaVersion == \"11.0.9\")"
"value": "(AvaloniaVersion == \"11.0.10\")"
},
"UseCompiledBindings": {
"type": "parameter",
"description": "Defines if CompiledBindings should be enabled by default in the project (only supported in 11.0 version and newer).",
"datatype": "bool",
"displayName": "Use compiled Bindings",
"defaultValue": "true",
"isEnabled": "(AvaloniaVersion == \"11.0.9\")"
"isEnabled": "(AvaloniaVersion == \"11.0.10\")"
},
"HostIdentifier": {
"type": "bind",
Expand Down
2 changes: 1 addition & 1 deletion templates/csharp/xplat/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "AvaloniaUI",
"classifications": [ "Desktop", "Xaml", "Avalonia", "Web", "Mobile" ],
"classifications": [ "Desktop", "Xaml", "Avalonia", "Browser", "Mobile" ],
"description": "A cross-platform Avalonia UI Application using the MVVM pattern targeting Desktop, Mobile and Browser with WebAssembly",
"groupidentity": "Avalonia.App.CrossPlatform",
"identity": "Avalonia.App.CrossPlatform",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>FrameworkParameter</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<WasmMainJSPath>AppBundle\main.js</WasmMainJSPath>
<OutputType>Exe</OutputType>
<WasmMainJSPath>wwwroot\main.js</WasmMainJSPath>
<WasmRuntimeAssetsLocation>./_framework</WasmRuntimeAssetsLocation>
</PropertyGroup>

<ItemGroup>
<WasmExtraFilesToDeploy Include="AppBundle\**" />
<WasmExtraFilesToDeploy Include="wwwroot\**" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="/" />
<link rel="modulepreload" href="./main.js" />
<link rel="modulepreload" href="./dotnet.js" />
<link rel="modulepreload" href="./avalonia.js" />
<link rel="modulepreload" href="./_framework/dotnet.js" />
<link rel="modulepreload" href="./_framework/avalonia.js" />
<link rel="stylesheet" href="./app.css" />
</head>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dotnet } from './dotnet.js'
import { dotnet } from './_framework/dotnet.js'

const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
Expand Down
2 changes: 1 addition & 1 deletion templates/csharp/xplat/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<AvaloniaVersion>11.0.9</AvaloniaVersion>
<AvaloniaVersion>11.0.10</AvaloniaVersion>
</PropertyGroup>
</Project>
14 changes: 7 additions & 7 deletions templates/fsharp/app-mvvm/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,28 @@
"datatype": "choice",
"choices": [
{
"choice": "0.10.21",
"description": "Target 0.10.21"
"choice": "0.10.22",
"description": "Target 0.10.22"
},
{
"choice": "11.0.9",
"description": "Target 11.0.9 (Latest stable)"
"choice": "11.0.10",
"description": "Target 11.0.10 (Latest stable)"
}
],
"replaces": "AvaloniaVersionTemplateParameter",
"defaultValue": "11.0.9"
"defaultValue": "11.0.10"
},
"AvaloniaStableChosen": {
"type": "computed",
"value": "(AvaloniaVersion == \"11.0.9\")"
"value": "(AvaloniaVersion == \"11.0.10\")"
},
"UseCompiledBindings": {
"type": "parameter",
"description": "Defines if CompiledBindings should be enabled by default in the project (only supported in 11.0 version and newer).",
"datatype": "bool",
"displayName": "Use compiled Bindings",
"defaultValue": "true",
"isEnabled": "(AvaloniaVersion == \"11.0.9\")"
"isEnabled": "(AvaloniaVersion == \"11.0.10\")"
},
"RemoveViewLocator": {
"type": "parameter",
Expand Down
14 changes: 7 additions & 7 deletions templates/fsharp/app/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@
"datatype": "choice",
"choices": [
{
"choice": "0.10.21",
"description": "Target 0.10.21"
"choice": "0.10.22",
"description": "Target 0.10.22"
},
{
"choice": "11.0.9",
"description": "Target 11.0.9 (Latest stable)"
"choice": "11.0.10",
"description": "Target 11.0.10 (Latest stable)"
}
],
"replaces": "AvaloniaVersionTemplateParameter",
"defaultValue": "11.0.9"
"defaultValue": "11.0.10"
},
"AvaloniaStableChosen": {
"type": "computed",
"value": "(AvaloniaVersion == \"11.0.9\")"
"value": "(AvaloniaVersion == \"11.0.10\")"
},
"UseCompiledBindings": {
"type": "parameter",
"description": "Defines if CompiledBindings should be enabled by default in the project (only supported in 11.0 version and newer).",
"datatype": "bool",
"displayName": "Use compiled Bindings",
"defaultValue": "true",
"isEnabled": "(AvaloniaVersion == \"11.0.9\")"
"isEnabled": "(AvaloniaVersion == \"11.0.10\")"
},
"HostIdentifier": {
"type": "bind",
Expand Down
2 changes: 1 addition & 1 deletion templates/fsharp/xplat/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "AvaloniaUI",
"classifications": [ "Desktop", "Xaml", "Avalonia", "Web", "Mobile" ],
"classifications": [ "Desktop", "Xaml", "Avalonia", "Browser", "Mobile" ],
"description": "A cross-platform Avalonia UI Application using the MVVM pattern targeting Desktop, Mobile and Browser with WebAssembly",
"name": "Avalonia Cross Platform Application",
"identity": "Avalonia.App.CrossPlatform.FSharp",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>FrameworkParameter</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<WasmMainJSPath>AppBundle\main.js</WasmMainJSPath>
<OutputType>Exe</OutputType>
<WasmMainJSPath>wwwroot\main.js</WasmMainJSPath>
<WasmRuntimeAssetsLocation>./_framework</WasmRuntimeAssetsLocation>
</PropertyGroup>

<ItemGroup>
<None Include="Properties\**" />
<None Include="AppBundle\**" />
<WasmExtraFilesToDeploy Include="AppBundle\**" />
<None Include="wwwroot\**" />
<WasmExtraFilesToDeploy Include="wwwroot\**" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="/" />
<link rel="modulepreload" href="./main.js" />
<link rel="modulepreload" href="./dotnet.js" />
<link rel="modulepreload" href="./avalonia.js" />
<link rel="modulepreload" href="./_framework/dotnet.js" />
<link rel="modulepreload" href="./_framework/avalonia.js" />
<link rel="stylesheet" href="./app.css" />
</head>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dotnet } from './dotnet.js'
import { dotnet } from './_framework/dotnet.js'

const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
Expand Down
2 changes: 1 addition & 1 deletion templates/fsharp/xplat/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<AvaloniaVersion>11.0.9</AvaloniaVersion>
<AvaloniaVersion>11.0.10</AvaloniaVersion>
</PropertyGroup>
</Project>
16 changes: 8 additions & 8 deletions tests/build-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ $binlog = [IO.Path]::GetFullPath([IO.Path]::Combine($pwd, "..", "binlog", "test.
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "f" "net6.0" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "f" "net7.0" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "f" "net8.0" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "0.10.21" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "11.0.9" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "0.10.22" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "11.0.10" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "cb" "true" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "cb" "false" $binlog

# Build the project only twice with all item templates,once with .net6.0 tfm and once with .net7.0 tfm for C# and F#
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "C#" "f" "net6.0" $binlog
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "C#" "f" "net7.0" $binlog
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "C#" "f" "net8.0" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "0.10.21" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "11.0.9" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "0.10.22" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "11.0.10" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "m" "ReactiveUI" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "m" "CommunityToolkit" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "cb" "true" $binlog
Expand All @@ -124,8 +124,8 @@ Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "rvl" "false" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "f" "net6.0" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "f" "net7.0" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "f" "net8.0" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "0.10.21" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "11.0.9" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "0.10.22" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "11.0.10" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "cb" "true" $binlog
Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "cb" "false" $binlog

Expand All @@ -134,8 +134,8 @@ Remove-Item -Recurse "output/C#"
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net6.0" $binlog
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net7.0" $binlog
Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net8.0" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "0.10.21" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "11.0.9" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "0.10.22" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "11.0.10" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "m" "ReactiveUI" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "m" "CommunityToolkit" $binlog
Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "cb" "true" $binlog
Expand Down

0 comments on commit d9c1f3c

Please sign in to comment.