From 796c836c7fa1dbd7e0058c8654fc48d502e27301 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 01:09:47 -0500 Subject: [PATCH 01/12] Remove hardcoded colors --- templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml | 4 +--- templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml b/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml index b1eb7cc3..e952498a 100644 --- a/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml +++ b/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml @@ -4,9 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:viewModels="clr-namespace:AvaloniaTest.ViewModels" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="AvaloniaTest.Views.MainView" - Foreground="White" - Background="#171C2C"> + x:Class="AvaloniaTest.Views.MainView"> diff --git a/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml b/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml index 466f65fa..7c743265 100644 --- a/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml +++ b/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml @@ -4,9 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:viewModels="clr-namespace:AvaloniaTest.ViewModels" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="AvaloniaTest.Views.MainView" - Foreground="White" - Background="#171C2C"> + x:Class="AvaloniaTest.Views.MainView"> From 0cf0bd4e62d4617c34e8eec5fad4d2ce8d5f6829 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 01:29:40 -0500 Subject: [PATCH 02/12] Replace Roots with single TrimmerRootAssembly on stable version (no need on 11.0) --- templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj | 4 +++- templates/csharp/app-mvvm/Roots.xml | 5 ----- templates/csharp/app/AvaloniaAppTemplate.csproj | 5 ++++- templates/csharp/app/Roots.xml | 5 ----- .../csharp/xplat/AvaloniaTest/AvaloniaTest.csproj | 7 ++++++- templates/csharp/xplat/AvaloniaTest/Roots.xml | 5 ----- templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj | 10 ++++++---- templates/fsharp/app-mvvm/Roots.xml | 5 ----- templates/fsharp/app/AvaloniaAppTemplate.fsproj | 10 ++++++---- templates/fsharp/app/Roots.xml | 5 ----- .../fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj | 10 ++++++---- templates/fsharp/xplat/AvaloniaTest/Roots.xml | 5 ----- 12 files changed, 31 insertions(+), 45 deletions(-) delete mode 100644 templates/csharp/app-mvvm/Roots.xml delete mode 100644 templates/csharp/app/Roots.xml delete mode 100644 templates/csharp/xplat/AvaloniaTest/Roots.xml delete mode 100644 templates/fsharp/app-mvvm/Roots.xml delete mode 100644 templates/fsharp/app/Roots.xml delete mode 100644 templates/fsharp/xplat/AvaloniaTest/Roots.xml diff --git a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj index e8524dc0..a37f1e97 100644 --- a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj @@ -13,9 +13,11 @@ + - + + diff --git a/templates/csharp/app-mvvm/Roots.xml b/templates/csharp/app-mvvm/Roots.xml deleted file mode 100644 index 828fb952..00000000 --- a/templates/csharp/app-mvvm/Roots.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/templates/csharp/app/AvaloniaAppTemplate.csproj b/templates/csharp/app/AvaloniaAppTemplate.csproj index 1b77fc83..518441c1 100644 --- a/templates/csharp/app/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app/AvaloniaAppTemplate.csproj @@ -6,13 +6,16 @@ true app.manifest + + - + + diff --git a/templates/csharp/app/Roots.xml b/templates/csharp/app/Roots.xml deleted file mode 100644 index 828fb952..00000000 --- a/templates/csharp/app/Roots.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj index 6065e914..3e08e095 100644 --- a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj +++ b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj @@ -5,9 +5,14 @@ latest + + + + + + - diff --git a/templates/csharp/xplat/AvaloniaTest/Roots.xml b/templates/csharp/xplat/AvaloniaTest/Roots.xml deleted file mode 100644 index ae3389c1..00000000 --- a/templates/csharp/xplat/AvaloniaTest/Roots.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj index e807336f..50d483cd 100644 --- a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj @@ -6,6 +6,12 @@ app.manifest + + + + + + @@ -21,10 +27,6 @@ - - - - diff --git a/templates/fsharp/app-mvvm/Roots.xml b/templates/fsharp/app-mvvm/Roots.xml deleted file mode 100644 index 828fb952..00000000 --- a/templates/fsharp/app-mvvm/Roots.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/templates/fsharp/app/AvaloniaAppTemplate.fsproj b/templates/fsharp/app/AvaloniaAppTemplate.fsproj index e5344c00..5dcad26d 100644 --- a/templates/fsharp/app/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app/AvaloniaAppTemplate.fsproj @@ -6,6 +6,12 @@ app.manifest + + + + + + @@ -16,10 +22,6 @@ - - - - diff --git a/templates/fsharp/app/Roots.xml b/templates/fsharp/app/Roots.xml deleted file mode 100644 index 828fb952..00000000 --- a/templates/fsharp/app/Roots.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj b/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj index 910c7f7a..cc3a1980 100644 --- a/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj +++ b/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj @@ -5,6 +5,12 @@ latest + + + + + + @@ -18,10 +24,6 @@ - - - - diff --git a/templates/fsharp/xplat/AvaloniaTest/Roots.xml b/templates/fsharp/xplat/AvaloniaTest/Roots.xml deleted file mode 100644 index ae3389c1..00000000 --- a/templates/fsharp/xplat/AvaloniaTest/Roots.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - From 58a11093460e64603a6a678806ec42b66c0d8ff4 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 01:29:52 -0500 Subject: [PATCH 03/12] Add UseCompiledBindings parameter --- .../csharp/app-mvvm/.template.config/template.json | 12 ++++++++++++ templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj | 3 +++ templates/csharp/app/.template.config/template.json | 12 ++++++++++++ templates/csharp/app/AvaloniaAppTemplate.csproj | 3 +++ .../csharp/xplat/.template.config/template.json | 12 ++++++++++++ .../csharp/xplat/AvaloniaTest/AvaloniaTest.csproj | 3 +++ .../fsharp/app-mvvm/.template.config/template.json | 12 ++++++++++++ templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj | 3 +++ templates/fsharp/app/.template.config/template.json | 12 ++++++++++++ templates/fsharp/app/AvaloniaAppTemplate.fsproj | 3 +++ .../fsharp/xplat/.template.config/template.json | 12 ++++++++++++ .../fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj | 3 +++ 12 files changed, 90 insertions(+) diff --git a/templates/csharp/app-mvvm/.template.config/template.json b/templates/csharp/app-mvvm/.template.config/template.json index fabedd81..8f42870f 100644 --- a/templates/csharp/app-mvvm/.template.config/template.json +++ b/templates/csharp/app-mvvm/.template.config/template.json @@ -83,6 +83,18 @@ "type": "computed", "value": "(AvaloniaVersion == \"0.10.18\")" }, + "UseCompiledBindings": { + "type": "parameter", + "description": "Defines if CompiledBindings should be enabled by default in the project.", + "datatype": "bool", + "displayName": "Use compiled Bindings", + "replaces": "UseCompiledBindings", + "defaultValue": "true" + }, + "CompiledBindingsChosen": { + "type": "computed", + "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" + }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj index a37f1e97..40af07d5 100644 --- a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj @@ -5,6 +5,9 @@ enable true app.manifest + + true + diff --git a/templates/csharp/app/.template.config/template.json b/templates/csharp/app/.template.config/template.json index 37db4e2f..259ed4cf 100644 --- a/templates/csharp/app/.template.config/template.json +++ b/templates/csharp/app/.template.config/template.json @@ -59,6 +59,18 @@ "type": "computed", "value": "(AvaloniaVersion == \"0.10.18\")" }, + "UseCompiledBindings": { + "type": "parameter", + "description": "Defines if CompiledBindings should be enabled by default in the project.", + "datatype": "bool", + "displayName": "Use compiled Bindings", + "replaces": "UseCompiledBindings", + "defaultValue": "true" + }, + "CompiledBindingsChosen": { + "type": "computed", + "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" + }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/csharp/app/AvaloniaAppTemplate.csproj b/templates/csharp/app/AvaloniaAppTemplate.csproj index 518441c1..3391a387 100644 --- a/templates/csharp/app/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app/AvaloniaAppTemplate.csproj @@ -5,6 +5,9 @@ enable true app.manifest + + true + diff --git a/templates/csharp/xplat/.template.config/template.json b/templates/csharp/xplat/.template.config/template.json index d70ef910..11ea3df8 100644 --- a/templates/csharp/xplat/.template.config/template.json +++ b/templates/csharp/xplat/.template.config/template.json @@ -28,6 +28,18 @@ "replaces": "FrameworkParameter", "defaultValue": "net7.0" }, + "UseCompiledBindings": { + "type": "parameter", + "description": "Defines if CompiledBindings should be enabled by default in the project.", + "datatype": "bool", + "displayName": "Use compiled Bindings", + "replaces": "UseCompiledBindings", + "defaultValue": "true" + }, + "CompiledBindingsChosen": { + "type": "computed", + "value": "(UseCompiledBindings == \"true\")" + }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj index 3e08e095..13f2055a 100644 --- a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj +++ b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj @@ -3,6 +3,9 @@ FrameworkParameter enable latest + + true + diff --git a/templates/fsharp/app-mvvm/.template.config/template.json b/templates/fsharp/app-mvvm/.template.config/template.json index 1a678084..8597e519 100644 --- a/templates/fsharp/app-mvvm/.template.config/template.json +++ b/templates/fsharp/app-mvvm/.template.config/template.json @@ -83,6 +83,18 @@ "type": "computed", "value": "(AvaloniaVersion == \"0.10.18\")" }, + "UseCompiledBindings": { + "type": "parameter", + "description": "Defines if CompiledBindings should be enabled by default in the project.", + "datatype": "bool", + "displayName": "Use compiled Bindings", + "replaces": "UseCompiledBindings", + "defaultValue": "true" + }, + "CompiledBindingsChosen": { + "type": "computed", + "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" + }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj index 50d483cd..21fe0e03 100644 --- a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj @@ -4,6 +4,9 @@ FrameworkParameter true app.manifest + + true + diff --git a/templates/fsharp/app/.template.config/template.json b/templates/fsharp/app/.template.config/template.json index 09f72072..a8fcc1b7 100644 --- a/templates/fsharp/app/.template.config/template.json +++ b/templates/fsharp/app/.template.config/template.json @@ -59,6 +59,18 @@ "type": "computed", "value": "(AvaloniaVersion == \"0.10.18\")" }, + "UseCompiledBindings": { + "type": "parameter", + "description": "Defines if CompiledBindings should be enabled by default in the project.", + "datatype": "bool", + "displayName": "Use compiled Bindings", + "replaces": "UseCompiledBindings", + "defaultValue": "true" + }, + "CompiledBindingsChosen": { + "type": "computed", + "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" + }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/fsharp/app/AvaloniaAppTemplate.fsproj b/templates/fsharp/app/AvaloniaAppTemplate.fsproj index 5dcad26d..ccc1111c 100644 --- a/templates/fsharp/app/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app/AvaloniaAppTemplate.fsproj @@ -4,6 +4,9 @@ FrameworkParameter true app.manifest + + true + diff --git a/templates/fsharp/xplat/.template.config/template.json b/templates/fsharp/xplat/.template.config/template.json index e9273245..64f82b37 100644 --- a/templates/fsharp/xplat/.template.config/template.json +++ b/templates/fsharp/xplat/.template.config/template.json @@ -28,6 +28,18 @@ "replaces": "FrameworkParameter", "defaultValue": "net7.0" }, + "UseCompiledBindings": { + "type": "parameter", + "description": "Defines if CompiledBindings should be enabled by default in the project.", + "datatype": "bool", + "displayName": "Use compiled Bindings", + "replaces": "UseCompiledBindings", + "defaultValue": "true" + }, + "CompiledBindingsChosen": { + "type": "computed", + "value": "(UseCompiledBindings == \"true\")" + }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj b/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj index cc3a1980..5cc5e5c7 100644 --- a/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj +++ b/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj @@ -3,6 +3,9 @@ FrameworkParameter enable latest + + true + From 8485ab86860f8ef22a7f9442e5873ebb6588ba72 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 01:31:27 -0500 Subject: [PATCH 04/12] Remove .gitignore from non-solution projects --- templates/csharp/app-mvvm/.gitignore | 454 ------------------ .../app-mvvm/AvaloniaAppTemplate.csproj | 1 - templates/csharp/app/.gitignore | 454 ------------------ .../csharp/app/AvaloniaAppTemplate.csproj | 4 - templates/fsharp/app-mvvm/.gitignore | 454 ------------------ .../app-mvvm/AvaloniaAppTemplate.fsproj | 1 - templates/fsharp/app/.gitignore | 454 ------------------ .../fsharp/app/AvaloniaAppTemplate.fsproj | 4 - 8 files changed, 1826 deletions(-) delete mode 100644 templates/csharp/app-mvvm/.gitignore delete mode 100644 templates/csharp/app/.gitignore delete mode 100644 templates/fsharp/app-mvvm/.gitignore delete mode 100644 templates/fsharp/app/.gitignore diff --git a/templates/csharp/app-mvvm/.gitignore b/templates/csharp/app-mvvm/.gitignore deleted file mode 100644 index 8afdcb63..00000000 --- a/templates/csharp/app-mvvm/.gitignore +++ /dev/null @@ -1,454 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# Tye -.tye/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd - -## -## Visual studio for Mac -## - - -# globs -Makefile.in -*.userprefs -*.usertasks -config.make -config.status -aclocal.m4 -install-sh -autom4te.cache/ -*.tar.gz -tarballs/ -test-results/ - -# Mac bundle stuff -*.dmg -*.app - -# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore -# Windows thumbnail cache files -Thumbs.db -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# JetBrains Rider -.idea/ -*.sln.iml - -## -## Visual Studio Code -## -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json diff --git a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj index 40af07d5..2a3f56fd 100644 --- a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj @@ -13,7 +13,6 @@ - diff --git a/templates/csharp/app/.gitignore b/templates/csharp/app/.gitignore deleted file mode 100644 index 8afdcb63..00000000 --- a/templates/csharp/app/.gitignore +++ /dev/null @@ -1,454 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# Tye -.tye/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd - -## -## Visual studio for Mac -## - - -# globs -Makefile.in -*.userprefs -*.usertasks -config.make -config.status -aclocal.m4 -install-sh -autom4te.cache/ -*.tar.gz -tarballs/ -test-results/ - -# Mac bundle stuff -*.dmg -*.app - -# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore -# Windows thumbnail cache files -Thumbs.db -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# JetBrains Rider -.idea/ -*.sln.iml - -## -## Visual Studio Code -## -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json diff --git a/templates/csharp/app/AvaloniaAppTemplate.csproj b/templates/csharp/app/AvaloniaAppTemplate.csproj index 3391a387..4ffe8562 100644 --- a/templates/csharp/app/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app/AvaloniaAppTemplate.csproj @@ -10,10 +10,6 @@ - - - - diff --git a/templates/fsharp/app-mvvm/.gitignore b/templates/fsharp/app-mvvm/.gitignore deleted file mode 100644 index 8afdcb63..00000000 --- a/templates/fsharp/app-mvvm/.gitignore +++ /dev/null @@ -1,454 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# Tye -.tye/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd - -## -## Visual studio for Mac -## - - -# globs -Makefile.in -*.userprefs -*.usertasks -config.make -config.status -aclocal.m4 -install-sh -autom4te.cache/ -*.tar.gz -tarballs/ -test-results/ - -# Mac bundle stuff -*.dmg -*.app - -# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore -# Windows thumbnail cache files -Thumbs.db -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# JetBrains Rider -.idea/ -*.sln.iml - -## -## Visual Studio Code -## -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json diff --git a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj index 21fe0e03..18fdadff 100644 --- a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj @@ -18,7 +18,6 @@ - diff --git a/templates/fsharp/app/.gitignore b/templates/fsharp/app/.gitignore deleted file mode 100644 index 8afdcb63..00000000 --- a/templates/fsharp/app/.gitignore +++ /dev/null @@ -1,454 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# Tye -.tye/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd - -## -## Visual studio for Mac -## - - -# globs -Makefile.in -*.userprefs -*.usertasks -config.make -config.status -aclocal.m4 -install-sh -autom4te.cache/ -*.tar.gz -tarballs/ -test-results/ - -# Mac bundle stuff -*.dmg -*.app - -# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore -# Windows thumbnail cache files -Thumbs.db -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# JetBrains Rider -.idea/ -*.sln.iml - -## -## Visual Studio Code -## -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json diff --git a/templates/fsharp/app/AvaloniaAppTemplate.fsproj b/templates/fsharp/app/AvaloniaAppTemplate.fsproj index ccc1111c..4ecde0ec 100644 --- a/templates/fsharp/app/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app/AvaloniaAppTemplate.fsproj @@ -21,10 +21,6 @@ - - - - From 7f6cdb4c44f06e3cdbcaf86043497e69c815664f Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 01:42:36 -0500 Subject: [PATCH 05/12] Add UseCompiledBindings parameter to the host.json files --- .../.template.config/dotnetcli.host.json | 3 +++ .../app-mvvm/.template.config/ide.host.json | 7 +++++++ .../app/.template.config/dotnetcli.host.json | 3 +++ .../csharp/app/.template.config/ide.host.json | 7 +++++++ .../.template.config/dotnetcli.host.json | 3 +++ .../xplat/.template.config/ide.host.json | 20 +++++++++++++++++++ .../.template.config/dotnetcli.host.json | 3 +++ .../app-mvvm/.template.config/ide.host.json | 7 +++++++ .../app/.template.config/dotnetcli.host.json | 3 +++ .../fsharp/app/.template.config/ide.host.json | 7 +++++++ .../.template.config/dotnetcli.host.json | 3 +++ .../xplat/.template.config/ide.host.json | 13 ++++++++++++ 12 files changed, 79 insertions(+) create mode 100644 templates/csharp/xplat/.template.config/ide.host.json create mode 100644 templates/fsharp/xplat/.template.config/ide.host.json diff --git a/templates/csharp/app-mvvm/.template.config/dotnetcli.host.json b/templates/csharp/app-mvvm/.template.config/dotnetcli.host.json index 374fc9eb..b41e987b 100644 --- a/templates/csharp/app-mvvm/.template.config/dotnetcli.host.json +++ b/templates/csharp/app-mvvm/.template.config/dotnetcli.host.json @@ -13,6 +13,9 @@ }, "MVVMToolkit": { "longName": "mvvm" + }, + "UseCompiledBindings": { + "longName": "compiled-bindings" } }, "usageExamples": [ diff --git a/templates/csharp/app-mvvm/.template.config/ide.host.json b/templates/csharp/app-mvvm/.template.config/ide.host.json index 01f1de90..756378a6 100644 --- a/templates/csharp/app-mvvm/.template.config/ide.host.json +++ b/templates/csharp/app-mvvm/.template.config/ide.host.json @@ -15,6 +15,13 @@ "text": "MVVM Toolkit" }, "isVisible": true + }, + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true } ] } \ No newline at end of file diff --git a/templates/csharp/app/.template.config/dotnetcli.host.json b/templates/csharp/app/.template.config/dotnetcli.host.json index 02379f43..b4b553bb 100644 --- a/templates/csharp/app/.template.config/dotnetcli.host.json +++ b/templates/csharp/app/.template.config/dotnetcli.host.json @@ -10,6 +10,9 @@ }, "AvaloniaVersion": { "longName": "avalonia-version" + }, + "UseCompiledBindings": { + "longName": "compiled-bindings" } }, "usageExamples": [ diff --git a/templates/csharp/app/.template.config/ide.host.json b/templates/csharp/app/.template.config/ide.host.json index 937f4730..db78fdfb 100644 --- a/templates/csharp/app/.template.config/ide.host.json +++ b/templates/csharp/app/.template.config/ide.host.json @@ -8,6 +8,13 @@ "text": "Avalonia Version" }, "isVisible": true + }, + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true } ] } \ No newline at end of file diff --git a/templates/csharp/xplat/.template.config/dotnetcli.host.json b/templates/csharp/xplat/.template.config/dotnetcli.host.json index da1886f4..863c89f7 100644 --- a/templates/csharp/xplat/.template.config/dotnetcli.host.json +++ b/templates/csharp/xplat/.template.config/dotnetcli.host.json @@ -3,6 +3,9 @@ "symbolInfo": { "Framework": { "longName": "framework" + }, + "UseCompiledBindings": { + "longName": "compiled-bindings" } }, "usageExamples": [ diff --git a/templates/csharp/xplat/.template.config/ide.host.json b/templates/csharp/xplat/.template.config/ide.host.json new file mode 100644 index 00000000..f0d412a3 --- /dev/null +++ b/templates/csharp/xplat/.template.config/ide.host.json @@ -0,0 +1,20 @@ +{ + "$schema": "http://json.schemastore.org/ide.host", + "icon": "icon.png", + "symbolInfo": [ + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true + }, + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true + } + ] +} \ No newline at end of file diff --git a/templates/fsharp/app-mvvm/.template.config/dotnetcli.host.json b/templates/fsharp/app-mvvm/.template.config/dotnetcli.host.json index 374fc9eb..b41e987b 100644 --- a/templates/fsharp/app-mvvm/.template.config/dotnetcli.host.json +++ b/templates/fsharp/app-mvvm/.template.config/dotnetcli.host.json @@ -13,6 +13,9 @@ }, "MVVMToolkit": { "longName": "mvvm" + }, + "UseCompiledBindings": { + "longName": "compiled-bindings" } }, "usageExamples": [ diff --git a/templates/fsharp/app-mvvm/.template.config/ide.host.json b/templates/fsharp/app-mvvm/.template.config/ide.host.json index 01f1de90..756378a6 100644 --- a/templates/fsharp/app-mvvm/.template.config/ide.host.json +++ b/templates/fsharp/app-mvvm/.template.config/ide.host.json @@ -15,6 +15,13 @@ "text": "MVVM Toolkit" }, "isVisible": true + }, + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true } ] } \ No newline at end of file diff --git a/templates/fsharp/app/.template.config/dotnetcli.host.json b/templates/fsharp/app/.template.config/dotnetcli.host.json index 02379f43..b4b553bb 100644 --- a/templates/fsharp/app/.template.config/dotnetcli.host.json +++ b/templates/fsharp/app/.template.config/dotnetcli.host.json @@ -10,6 +10,9 @@ }, "AvaloniaVersion": { "longName": "avalonia-version" + }, + "UseCompiledBindings": { + "longName": "compiled-bindings" } }, "usageExamples": [ diff --git a/templates/fsharp/app/.template.config/ide.host.json b/templates/fsharp/app/.template.config/ide.host.json index 937f4730..db78fdfb 100644 --- a/templates/fsharp/app/.template.config/ide.host.json +++ b/templates/fsharp/app/.template.config/ide.host.json @@ -8,6 +8,13 @@ "text": "Avalonia Version" }, "isVisible": true + }, + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true } ] } \ No newline at end of file diff --git a/templates/fsharp/xplat/.template.config/dotnetcli.host.json b/templates/fsharp/xplat/.template.config/dotnetcli.host.json index da1886f4..863c89f7 100644 --- a/templates/fsharp/xplat/.template.config/dotnetcli.host.json +++ b/templates/fsharp/xplat/.template.config/dotnetcli.host.json @@ -3,6 +3,9 @@ "symbolInfo": { "Framework": { "longName": "framework" + }, + "UseCompiledBindings": { + "longName": "compiled-bindings" } }, "usageExamples": [ diff --git a/templates/fsharp/xplat/.template.config/ide.host.json b/templates/fsharp/xplat/.template.config/ide.host.json new file mode 100644 index 00000000..8920d486 --- /dev/null +++ b/templates/fsharp/xplat/.template.config/ide.host.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json.schemastore.org/ide.host", + "icon": "icon.png", + "symbolInfo": [ + { + "id": "UseCompiledBindings", + "name": { + "text": "Use Compiled Bindings" + }, + "isVisible": true + } + ] +} \ No newline at end of file From 248293ba3a6e6736c4fc89e4ba9c27540171b9bc Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 01:42:40 -0500 Subject: [PATCH 06/12] Update version --- Avalonia.Templates.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Avalonia.Templates.csproj b/Avalonia.Templates.csproj index e9f557f8..3714bf54 100644 --- a/Avalonia.Templates.csproj +++ b/Avalonia.Templates.csproj @@ -2,7 +2,7 @@ Template - 0.10.18.5 + 0.10.18.6 Avalonia.Templates Avalonia Templates Templates for creating Avalonia applications and libraries. From 219a62ec04e3183c33f0b626c0abb8b9706b7506 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 02:05:22 -0500 Subject: [PATCH 07/12] Simplify new parameter --- templates/csharp/app-mvvm/.template.config/template.json | 5 ----- templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj | 2 +- templates/csharp/app/.template.config/template.json | 5 ----- templates/csharp/app/AvaloniaAppTemplate.csproj | 2 +- templates/csharp/xplat/.template.config/template.json | 5 ----- templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj | 2 +- templates/fsharp/app-mvvm/.template.config/template.json | 5 ----- templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj | 2 +- templates/fsharp/app/.template.config/template.json | 5 ----- templates/fsharp/app/AvaloniaAppTemplate.fsproj | 2 +- templates/fsharp/xplat/.template.config/template.json | 5 ----- templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj | 2 +- 12 files changed, 6 insertions(+), 36 deletions(-) diff --git a/templates/csharp/app-mvvm/.template.config/template.json b/templates/csharp/app-mvvm/.template.config/template.json index 8f42870f..8060a287 100644 --- a/templates/csharp/app-mvvm/.template.config/template.json +++ b/templates/csharp/app-mvvm/.template.config/template.json @@ -88,13 +88,8 @@ "description": "Defines if CompiledBindings should be enabled by default in the project.", "datatype": "bool", "displayName": "Use compiled Bindings", - "replaces": "UseCompiledBindings", "defaultValue": "true" }, - "CompiledBindingsChosen": { - "type": "computed", - "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" - }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj index 2a3f56fd..db349618 100644 --- a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj @@ -5,7 +5,7 @@ enable true app.manifest - + true diff --git a/templates/csharp/app/.template.config/template.json b/templates/csharp/app/.template.config/template.json index 259ed4cf..bf7995db 100644 --- a/templates/csharp/app/.template.config/template.json +++ b/templates/csharp/app/.template.config/template.json @@ -64,13 +64,8 @@ "description": "Defines if CompiledBindings should be enabled by default in the project.", "datatype": "bool", "displayName": "Use compiled Bindings", - "replaces": "UseCompiledBindings", "defaultValue": "true" }, - "CompiledBindingsChosen": { - "type": "computed", - "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" - }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/csharp/app/AvaloniaAppTemplate.csproj b/templates/csharp/app/AvaloniaAppTemplate.csproj index 4ffe8562..45828951 100644 --- a/templates/csharp/app/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app/AvaloniaAppTemplate.csproj @@ -5,7 +5,7 @@ enable true app.manifest - + true diff --git a/templates/csharp/xplat/.template.config/template.json b/templates/csharp/xplat/.template.config/template.json index 11ea3df8..d046d922 100644 --- a/templates/csharp/xplat/.template.config/template.json +++ b/templates/csharp/xplat/.template.config/template.json @@ -33,13 +33,8 @@ "description": "Defines if CompiledBindings should be enabled by default in the project.", "datatype": "bool", "displayName": "Use compiled Bindings", - "replaces": "UseCompiledBindings", "defaultValue": "true" }, - "CompiledBindingsChosen": { - "type": "computed", - "value": "(UseCompiledBindings == \"true\")" - }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj index 13f2055a..4d9ede19 100644 --- a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj +++ b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj @@ -3,7 +3,7 @@ FrameworkParameter enable latest - + true diff --git a/templates/fsharp/app-mvvm/.template.config/template.json b/templates/fsharp/app-mvvm/.template.config/template.json index 8597e519..049f0e99 100644 --- a/templates/fsharp/app-mvvm/.template.config/template.json +++ b/templates/fsharp/app-mvvm/.template.config/template.json @@ -88,13 +88,8 @@ "description": "Defines if CompiledBindings should be enabled by default in the project.", "datatype": "bool", "displayName": "Use compiled Bindings", - "replaces": "UseCompiledBindings", "defaultValue": "true" }, - "CompiledBindingsChosen": { - "type": "computed", - "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" - }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj index 18fdadff..85e026c0 100644 --- a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj @@ -4,7 +4,7 @@ FrameworkParameter true app.manifest - + true diff --git a/templates/fsharp/app/.template.config/template.json b/templates/fsharp/app/.template.config/template.json index a8fcc1b7..ca8098bf 100644 --- a/templates/fsharp/app/.template.config/template.json +++ b/templates/fsharp/app/.template.config/template.json @@ -64,13 +64,8 @@ "description": "Defines if CompiledBindings should be enabled by default in the project.", "datatype": "bool", "displayName": "Use compiled Bindings", - "replaces": "UseCompiledBindings", "defaultValue": "true" }, - "CompiledBindingsChosen": { - "type": "computed", - "value": "(AvaloniaStableChosen == \"false\" && UseCompiledBindings == \"true\")" - }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/fsharp/app/AvaloniaAppTemplate.fsproj b/templates/fsharp/app/AvaloniaAppTemplate.fsproj index 4ecde0ec..1912e4e8 100644 --- a/templates/fsharp/app/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app/AvaloniaAppTemplate.fsproj @@ -4,7 +4,7 @@ FrameworkParameter true app.manifest - + true diff --git a/templates/fsharp/xplat/.template.config/template.json b/templates/fsharp/xplat/.template.config/template.json index 64f82b37..2ba2145b 100644 --- a/templates/fsharp/xplat/.template.config/template.json +++ b/templates/fsharp/xplat/.template.config/template.json @@ -33,13 +33,8 @@ "description": "Defines if CompiledBindings should be enabled by default in the project.", "datatype": "bool", "displayName": "Use compiled Bindings", - "replaces": "UseCompiledBindings", "defaultValue": "true" }, - "CompiledBindingsChosen": { - "type": "computed", - "value": "(UseCompiledBindings == \"true\")" - }, "HostIdentifier": { "type": "bind", "binding": "HostIdentifier" diff --git a/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj b/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj index 5cc5e5c7..44c0d2e6 100644 --- a/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj +++ b/templates/fsharp/xplat/AvaloniaTest/AvaloniaTest.fsproj @@ -3,7 +3,7 @@ FrameworkParameter enable latest - + true From 16bec6a8148475c1b38de3c2db0c8935998412b6 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 02:05:51 -0500 Subject: [PATCH 08/12] Add missing x:DataType --- templates/csharp/app-mvvm/Views/MainWindow.axaml | 1 + templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml | 7 ++++--- templates/fsharp/app-mvvm/Views/MainWindow.axaml | 1 + templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml | 7 ++++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/templates/csharp/app-mvvm/Views/MainWindow.axaml b/templates/csharp/app-mvvm/Views/MainWindow.axaml index c8b938c5..2fd41ce0 100644 --- a/templates/csharp/app-mvvm/Views/MainWindow.axaml +++ b/templates/csharp/app-mvvm/Views/MainWindow.axaml @@ -5,6 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="AvaloniaAppTemplate.Views.MainWindow" + x:DataType="vm:MainWindowViewModel" Icon="/Assets/avalonia-logo.ico" Title="AvaloniaAppTemplate"> diff --git a/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml b/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml index e952498a..8ee32c55 100644 --- a/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml +++ b/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml @@ -2,13 +2,14 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:viewModels="clr-namespace:AvaloniaTest.ViewModels" + xmlns:vm="clr-namespace:AvaloniaTest.ViewModels" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="AvaloniaTest.Views.MainView"> + x:Class="AvaloniaTest.Views.MainView" + x:DataType="vm:MainViewModel"> - + diff --git a/templates/fsharp/app-mvvm/Views/MainWindow.axaml b/templates/fsharp/app-mvvm/Views/MainWindow.axaml index 088be440..c6fe4417 100644 --- a/templates/fsharp/app-mvvm/Views/MainWindow.axaml +++ b/templates/fsharp/app-mvvm/Views/MainWindow.axaml @@ -5,6 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="AvaloniaAppTemplate.Views.MainWindow" + x:DataType="vm:MainWindowViewModel" Icon="/Assets/avalonia-logo.ico" Title="AvaloniaAppTemplate"> diff --git a/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml b/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml index 7c743265..c753c187 100644 --- a/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml +++ b/templates/fsharp/xplat/AvaloniaTest/Views/MainView.axaml @@ -2,13 +2,14 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:viewModels="clr-namespace:AvaloniaTest.ViewModels" + xmlns:vm="clr-namespace:AvaloniaTest.ViewModels" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="AvaloniaTest.Views.MainView"> + x:Class="AvaloniaTest.Views.MainView" + x:DataType="vm:MainViewModel"> - + From 446f1c9c27d49ac4202417d1f15ba5350fd2768a Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 02:19:06 -0500 Subject: [PATCH 09/12] Update property description --- templates/csharp/app-mvvm/.template.config/template.json | 2 +- templates/csharp/app/.template.config/template.json | 2 +- templates/csharp/xplat/.template.config/template.json | 2 +- templates/fsharp/app-mvvm/.template.config/template.json | 2 +- templates/fsharp/app/.template.config/template.json | 2 +- templates/fsharp/xplat/.template.config/template.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/csharp/app-mvvm/.template.config/template.json b/templates/csharp/app-mvvm/.template.config/template.json index 8060a287..8387278d 100644 --- a/templates/csharp/app-mvvm/.template.config/template.json +++ b/templates/csharp/app-mvvm/.template.config/template.json @@ -85,7 +85,7 @@ }, "UseCompiledBindings": { "type": "parameter", - "description": "Defines if CompiledBindings should be enabled by default in the project.", + "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" diff --git a/templates/csharp/app/.template.config/template.json b/templates/csharp/app/.template.config/template.json index bf7995db..c4cb05e1 100644 --- a/templates/csharp/app/.template.config/template.json +++ b/templates/csharp/app/.template.config/template.json @@ -61,7 +61,7 @@ }, "UseCompiledBindings": { "type": "parameter", - "description": "Defines if CompiledBindings should be enabled by default in the project.", + "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" diff --git a/templates/csharp/xplat/.template.config/template.json b/templates/csharp/xplat/.template.config/template.json index d046d922..4bf63c9f 100644 --- a/templates/csharp/xplat/.template.config/template.json +++ b/templates/csharp/xplat/.template.config/template.json @@ -30,7 +30,7 @@ }, "UseCompiledBindings": { "type": "parameter", - "description": "Defines if CompiledBindings should be enabled by default in the project.", + "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" diff --git a/templates/fsharp/app-mvvm/.template.config/template.json b/templates/fsharp/app-mvvm/.template.config/template.json index 049f0e99..dc14827f 100644 --- a/templates/fsharp/app-mvvm/.template.config/template.json +++ b/templates/fsharp/app-mvvm/.template.config/template.json @@ -85,7 +85,7 @@ }, "UseCompiledBindings": { "type": "parameter", - "description": "Defines if CompiledBindings should be enabled by default in the project.", + "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" diff --git a/templates/fsharp/app/.template.config/template.json b/templates/fsharp/app/.template.config/template.json index ca8098bf..d7a6126c 100644 --- a/templates/fsharp/app/.template.config/template.json +++ b/templates/fsharp/app/.template.config/template.json @@ -61,7 +61,7 @@ }, "UseCompiledBindings": { "type": "parameter", - "description": "Defines if CompiledBindings should be enabled by default in the project.", + "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" diff --git a/templates/fsharp/xplat/.template.config/template.json b/templates/fsharp/xplat/.template.config/template.json index 2ba2145b..b1012108 100644 --- a/templates/fsharp/xplat/.template.config/template.json +++ b/templates/fsharp/xplat/.template.config/template.json @@ -30,7 +30,7 @@ }, "UseCompiledBindings": { "type": "parameter", - "description": "Defines if CompiledBindings should be enabled by default in the project.", + "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" From ba130e4cefef44be9edecd8201a740a98588289d Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 02:19:12 -0500 Subject: [PATCH 10/12] Add tests for new property --- tests/build-test.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/build-test.ps1 b/tests/build-test.ps1 index e1046e0b..4fad25d0 100644 --- a/tests/build-test.ps1 +++ b/tests/build-test.ps1 @@ -98,6 +98,8 @@ 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#" "av" "0.10.18" $binlog Create-And-Build "avalonia.app" "AvaloniaApp" "C#" "av" "11.0.0-preview5" $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 @@ -106,13 +108,19 @@ Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "0.10.18" $binlog Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "av" "11.0.0-preview5" $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 +Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "C#" "cb" "false" $binlog Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "f" "net7.0" $binlog +Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "cb" "true" $binlog +Create-And-Build "avalonia.xplat" "AvaloniaXplat" "C#" "cb" "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#" "av" "0.10.18" $binlog Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "av" "11.0.0-preview5" $binlog +Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "cb" "true" $binlog +Create-And-Build "avalonia.app" "AvaloniaApp" "F#" "cb" "false" $binlog Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net6.0" $binlog Test-Template "avalonia.mvvm" "AvaloniaMvvm" "F#" "f" "net7.0" $binlog @@ -120,5 +128,9 @@ Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "0.10.18" $binlog Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "av" "11.0.0-preview5" $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 +Create-And-Build "avalonia.mvvm" "AvaloniaMvvm" "F#" "cb" "false" $binlog Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "f" "net7.0" $binlog +Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "cb" "true" $binlog +Create-And-Build "avalonia.xplat" "AvaloniaXplat" "F#" "cb" "false" $binlog From e5745593d4e9b746b4d77c34821e0ae4d515a411 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 19:05:36 -0500 Subject: [PATCH 11/12] Update readme --- readme.md | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 5f5a0896..632af6dc 100644 --- a/readme.md +++ b/readme.md @@ -53,10 +53,18 @@ Available parameters: *Description*: The target version of Avalonia NuGet packages. -*Options*: **0.10.18**, **11.0.0-preview4** +*Options*: **0.10.18**, **11.0.0-preview5** *By default*: 0.10.18 +``-cp, --compiled-bindings`` + +*Description*: Defines if CompiledBindings should be enabled by default in the project (only supported in 11.0 version and newer). See [documentation](https://docs.avaloniaui.net/docs/data-binding/compiledbindings) for more details. + +*Options*: **true**, **false** + +*By default*: true + ``--no-restore`` *Description*: If specified, skips the automatic restore of the project on create. @@ -90,6 +98,14 @@ Available parameters: *By default*: 0.10.18 +``-cp, --compiled-bindings`` + +*Description*: Defines if CompiledBindings should be enabled by default in the project (only supported in 11.0 version and newer). See [documentation](https://docs.avaloniaui.net/docs/data-binding/compiledbindings) for more details. + +*Options*: **true**, **false** + +*By default*: true + ``-m, --mvvm`` *Description*: MVVM toolkit to use in the template. @@ -110,7 +126,17 @@ To create a new Cross-Platform application in its own subdirectory, run: dotnet new avalonia.xplat ``` **Note:** -This type of template allows you to create an application that will work on Desktop, Browser (preview) and Mobile (iOS & Android) (preview). +This type of template allows you to create an application that will work on Desktop, Browser and Mobile (iOS & Android). Only available with 11.0 preview versions. + +Available parameters: + +``-cp, --compiled-bindings`` + +*Description*: Defines if CompiledBindings should be enabled by default in the project. See [documentation](https://docs.avaloniaui.net/docs/data-binding/compiledbindings) for more details. + +*Options*: **true**, **false** + +*By default*: true # Creating a new Window From 94510a6b0cb2fe0567f4eb03334583e20d22041d Mon Sep 17 00:00:00 2001 From: Max Katz Date: Fri, 24 Feb 2023 21:20:16 -0500 Subject: [PATCH 12/12] Add isEnabled parameter --- templates/csharp/app-mvvm/.template.config/template.json | 3 ++- templates/csharp/app/.template.config/template.json | 3 ++- templates/fsharp/app-mvvm/.template.config/template.json | 3 ++- templates/fsharp/app/.template.config/template.json | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/csharp/app-mvvm/.template.config/template.json b/templates/csharp/app-mvvm/.template.config/template.json index 8387278d..f63ccac2 100644 --- a/templates/csharp/app-mvvm/.template.config/template.json +++ b/templates/csharp/app-mvvm/.template.config/template.json @@ -88,7 +88,8 @@ "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" + "defaultValue": "true", + "isEnabled": "(AvaloniaVersion != \"0.10.18\")" }, "HostIdentifier": { "type": "bind", diff --git a/templates/csharp/app/.template.config/template.json b/templates/csharp/app/.template.config/template.json index c4cb05e1..c425c4b4 100644 --- a/templates/csharp/app/.template.config/template.json +++ b/templates/csharp/app/.template.config/template.json @@ -64,7 +64,8 @@ "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" + "defaultValue": "true", + "isEnabled": "(AvaloniaVersion != \"0.10.18\")" }, "HostIdentifier": { "type": "bind", diff --git a/templates/fsharp/app-mvvm/.template.config/template.json b/templates/fsharp/app-mvvm/.template.config/template.json index dc14827f..f59390c8 100644 --- a/templates/fsharp/app-mvvm/.template.config/template.json +++ b/templates/fsharp/app-mvvm/.template.config/template.json @@ -88,7 +88,8 @@ "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" + "defaultValue": "true", + "isEnabled": "(AvaloniaVersion != \"0.10.18\")" }, "HostIdentifier": { "type": "bind", diff --git a/templates/fsharp/app/.template.config/template.json b/templates/fsharp/app/.template.config/template.json index d7a6126c..bac8a880 100644 --- a/templates/fsharp/app/.template.config/template.json +++ b/templates/fsharp/app/.template.config/template.json @@ -64,7 +64,8 @@ "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" + "defaultValue": "true", + "isEnabled": "(AvaloniaVersion != \"0.10.18\")" }, "HostIdentifier": { "type": "bind",