Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentH-Net committed Feb 28, 2023
1 parent 96a2457 commit b2844f5
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 38 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# <img src="src/CSharp-Toolkit-Icon.png" alt="C# Toolkit" width="64px" /> Modern.CSharp.Templates
A toolkit of modern [dotnet new templates](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new) for C# 11, .NET 7 and Microsoft Orleans 7
A toolkit of modern [dotnet new templates](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new) for C# 11, .NET 7, Microsoft Orleans 7, Windows App SDK and Uno Platform

Templates:
- **mcs-editorconfig** [doc](https://github.com/Applicita/Modern.CSharp.Templates/blob/main/Editorconfig.md)<br />
*Settings for C# 11 code formatting, style, naming style and analysis.
Promotes conciseness, readability and leveraging the latest language features.
(can also be used with C# 10)*

- **mcs-winui3-app** [doc](https://github.com/VincentH-Net/CSharpForMarkup#readme)<br />
*WinUI 3 C# Markup 2 application solution template for building browser / native UI with Windows App SDK and/or Uno Platform*

- **mcs-winui3-view** [doc](https://github.com/VincentH-Net/CSharpForMarkup#readme)<br />
*WinUI 3 C# Markup 2 view item template, for use with the `mcs-winui3-app` template via it's `New-View.ps1` command*

- **mcs-orleans-results** [doc](https://github.com/Applicita/Orleans.Results#readme)<br />
*Concise, version-tolerant result pattern implementation for Microsoft Orleans 7*

Expand Down
6 changes: 3 additions & 3 deletions src/Modern.CSharp.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<PropertyGroup>
<PackageId>Modern.CSharp.Templates</PackageId>
<PackageVersion>1.1.0</PackageVersion>
<PackageVersion>1.2.0</PackageVersion>
<PackageType>Template</PackageType>
<Title>Modern C# 11 Templates</Title>
<Description>A toolkit of modern dotnet new templates for C# 11, .NET 7 and Microsoft Orleans 7</Description>
<Description>A toolkit of modern dotnet new templates for C# 11, .NET 7, Microsoft Orleans 7, Windows App SDK and Uno Platform</Description>
<Authors>VincentH.NET;Applicita</Authors>
<Company>Applicita</Company>
<Copyright>Copyright © Applicita</Copyright>
Expand All @@ -15,7 +15,7 @@
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<PackageReleaseNotes>See source repository for release notes</PackageReleaseNotes>
<RepositoryUrl>https://github.com/Applicita/Modern.CSharp.Templates</RepositoryUrl>
<PackageTags>dotnet-new;modern;csharp;csharp 11;templates;editorconfig;Orleans;Orleans 7;results;multiservice;microservice;service;pattern;Applicita</PackageTags>
<PackageTags>dotnet-new;modern;csharp;csharp 11;templates;editorconfig;Orleans;Orleans 7;results;multiservice;microservice;service;pattern;csharpformarkup,csharpmarkup,markup,csharp,ui,winui,windowsappsdk,uno,webassembly,windows,desktop,Applicita</PackageTags>
<TargetFramework>netstandard2.0</TargetFramework>

<IncludeContentInPack>true</IncludeContentInPack>
Expand Down
10 changes: 8 additions & 2 deletions src/Readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
A toolkit of modern [dotnet new templates](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new) for C# 11, .NET 7 and Microsoft Orleans 7
A toolkit of modern [dotnet new templates](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new) for C# 11, .NET 7, Microsoft Orleans 7, Windows App SDK and Uno Platform

Templates:
- **mcs-editorconfig** [doc](https://github.com/Applicita/Modern.CSharp.Templates/blob/main/Editorconfig.md)<br />
*Settings for C# 11 code formatting, style, naming style and analysis.
Promotes conciseness, readability and leveraging the latest language features.
(can also be used with C# 10)*

- **mcs-winui3-app** [doc](https://github.com/VincentH-Net/CSharpForMarkup#readme)<br />
*WinUI 3 C# Markup 2 application solution template for building browser / native UI with Windows App SDK and/or Uno Platform*

- **mcs-winui3-view** [doc](https://github.com/VincentH-Net/CSharpForMarkup#readme)<br />
*WinUI 3 C# Markup 2 view item template, for use with the `mcs-winui3-app` template via it's `New-View.ps1` command*

- **mcs-orleans-results** [doc](https://github.com/Applicita/Orleans.Results#readme)<br />
*Concise, version-tolerant result pattern implementation for Microsoft Orleans 7*

Expand All @@ -14,4 +20,4 @@ Promotes conciseness, readability and leveraging the latest language features.

These templates can be combined with [Orleans.Multitenant](https://github.com/Applicita/Orleans.Multitenant) for secure, flexible tenant separation in Microsoft Orleans 7

[Release Notes](https://github.com/Applicita/Modern.CSharp.Templates/releases/tag/1-1-0)
[Release Notes](https://github.com/Applicita/Modern.CSharp.Templates/releases/tag/1-2-0)
2 changes: 1 addition & 1 deletion src/WinUI3-App/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"name": "Multi-Platform App (WinUI 3 with C# Markup 2)",
"identity": "Modern.CSharp.WinUI3.App",
"description": "Template for creating a WinUI 3 C# application that targets Windows and/or (via Uno Platform) Android, iOS, Mac Catalyst, WebAssembly, Skia/Tizen, Skia/WPF, and Skia/GTK for Linux.",
"description": "WinUI 3 C# Markup 3 template for creating a C# application that targets Windows (with Windows App SDK) and/or (with Uno Platform) Android, iOS, Mac Catalyst, WebAssembly, Skia/Tizen, Skia/WPF, and Skia/GTK for Linux.",
"precedence": "6001",
"tags": {
"language": "C#",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Uno.WinUI" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.37" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.37" />
<PackageReference Include="Uno.WinUI" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.44" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.44" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.44" />
</ItemGroup>
<Choose>
<When Condition="'$(TargetFramework)'=='net7.0-android'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Uno.WinUI.Skia.Gtk" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.37" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Skia.Gtk" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.44" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.44" />
<PackageReference Include="SkiaSharp.Views.Uno.WinUI" Version="2.88.3" />
<PackageReference Include="SkiaSharp.Skottie" Version="2.88.3" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Uno.WinUI.Skia.Linux.FrameBuffer" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.37" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Skia.Linux.FrameBuffer" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.44" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.44" />
<PackageReference Include="SkiaSharp.Views.Uno.WinUI" Version="2.88.3" />
<PackageReference Include="SkiaSharp.Skottie" Version="2.88.3" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Uno.WinUI.Skia.Wpf" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.37" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Skia.Wpf" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.44" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.44" />
<PackageReference Include="SkiaSharp.Skottie" Version="2.88.3" />
<PackageReference Include="SkiaSharp.Views.Uno.WinUI" Version="2.88.3" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
<PackageReference Include="Uno.Extensions.Logging.WebAssembly.Console" Version="1.4.0" />
<PackageReference Include="Uno.WinUI.WebAssembly" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.37" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.WebAssembly" Version="4.7.44" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.7.44" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.7.44" />
<PackageReference Include="Uno.Wasm.Bootstrap" Version="7.0.11" />
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" Version="7.0.11" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.37" />
<PackageReference Include="Uno.WinUI.Lottie" Version="4.7.44" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\UnoWinUIQuickStart\UnoWinUIQuickStart.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
<Content Include="Images\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.221209.1" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230217.4" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.755" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Uno.Core.Extensions.Logging.Singleton" Version="4.0.1" />
<PackageReference Include="Uno.WinUI" Version="4.7.37" />
<PackageReference Include="Uno.WinUI" Version="4.7.44" />
<PackageReference Include="KeyboardHookLite" Version="1.1.3" Condition=" '$(Configuration)' == 'Debug' " />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
Expand Down
6 changes: 0 additions & 6 deletions src/WinUI3-App/UnoWinUIQuickStart/Core/MarkupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ namespace UnoWinUIQuickStart.Core;

static class MarkupExtensions
{
public static Page Content(this Controls.Page page, UI.UIElement content) // TODO: move to NuGet
{
page.Content = content;
return page;
}

public static UIElement HotReloadOverlay(this Frame rootFrame)
{
#if !DEBUG
Expand Down
6 changes: 3 additions & 3 deletions src/WinUI3-App/UnoWinUIQuickStart/UnoWinUIQuickStart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="Uno.Core.Extensions.Logging.Singleton" Version="4.0.1" />
<PackageReference Include="Uno.WinUI" Version="4.7.37" />
<PackageReference Include="CSharpMarkup.WinUI" Version="0.8.3-dev.7" />
<PackageReference Include="Uno.WinUI" Version="4.7.44" />
<PackageReference Include="CSharpMarkup.WinUI" Version="2.0.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net7.0-windows10.0.18362'">
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.221209.1" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230217.4" />
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.22621.28" />
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" TargetingPackVersion="10.0.22621.28" />
</ItemGroup>
Expand Down

0 comments on commit b2844f5

Please sign in to comment.