Skip to content

Commit

Permalink
[dotnet] Add class library project templates for tvOS, macOS and Mac …
Browse files Browse the repository at this point in the history
…Catalyst. (#16263)

These new project templates won't show up in VSMac until the new templates are
added to VSMac.

Ref: https://github.com/xamarin/vsmac-xamarin-extensions/blob/61afbd1cd188150e82861c21cee0eb355b39c574/Xamarin.Addins.Core/Xamarin.Ide.Templating/TemplateDescriptionProvider.cs#L207-L216

Also update the corresponding template tests.

This PR might be easier to review commit-by-commit due to the large number of generated localization files.
  • Loading branch information
rolfbjarne authored Oct 6, 2022
1 parent 6afa8ea commit 6d6c3b8
Show file tree
Hide file tree
Showing 52 changed files with 311 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [ "macOS", "Mac Catalyst" ],
"identity": "Microsoft.MacCatalyst.MacCatalystLib",
"name": "Mac Catalyst Class Library",
"description": "A project for creating a .NET Mac Catalyst class library",
"shortName": "maccatalystlib",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "MacCatalystLib1",
"preferNameDirectory": true,
"primaryOutputs": [
{ "path": "MacCatalystLib1.csproj" }
],
"defaultName": "MacCatalystLib1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace MacCatalystLib1;

public class Class1 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-maccatalyst</TargetFramework>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">MacCatalystLib1</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [ "macOS" ],
"identity": "Microsoft.macOS.macOSLib",
"name": "macOS Class Library",
"description": "A project for creating a .NET macOS class library",
"shortName": "macoslib",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "macOSLib1",
"preferNameDirectory": true,
"primaryOutputs": [
{ "path": "macOSLib1.csproj" }
],
"defaultName": "macOSLib1"
}
4 changes: 4 additions & 0 deletions dotnet/Templates/Microsoft.macOS.Templates/macoslib/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace macOSLib1;

public class Class1 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-macos</TargetFramework>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">macOSLib1</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"author": "Microsoft",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [ "tvOS", "Mobile" ],
"identity": "Microsoft.tvOS.tvOSLib",
"name": "tvOS Class Library",
"description": "A project for creating a .NET tvOS class library",
"shortName": "tvoslib",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "tvOSLib1",
"preferNameDirectory": true,
"primaryOutputs": [
{ "path": "tvOSLib1.csproj" }
],
"defaultName": "tvOSLib1"
}
4 changes: 4 additions & 0 deletions dotnet/Templates/Microsoft.tvOS.Templates/tvoslib/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace tvOSLib1;

public class Class1 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-tvos</TargetFramework>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">tvOSLib1</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
</Project>
Loading

2 comments on commit 6d6c3b8

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.