From 0046811ca0d377bb3c3dfce586afdae018899f44 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 24 Feb 2020 17:34:05 +0100 Subject: [PATCH] added project templates --- MLEM.Extended/MLEM.Extended.csproj | 2 +- MLEM.Startup/MLEM.Startup.csproj | 2 +- MLEM.Templates/MLEM.Templates.csproj | 26 +++++++++++++++++++ .../.template.config/template.json | 19 ++++++++++++++ .../Content/Content.mgcb | 15 +++++++++++ .../MLEMTemplates.DesktopGL/GameImpl.cs | 7 +++++ .../MLEMTemplates.DesktopGL/Program.cs | 10 +++++++ .../TemplateNamespace.csproj | 20 ++++++++++++++ .../.template.config/template.json | 19 ++++++++++++++ .../Content/Content.mgcb | 15 +++++++++++ .../MLEMTemplates.Portable/GameImpl.cs | 7 +++++ .../TemplateNamespace.csproj | 14 ++++++++++ MLEM.Ui/MLEM.Ui.csproj | 2 +- MLEM.sln | 6 +++++ MLEM/MLEM.csproj | 2 +- 15 files changed, 162 insertions(+), 4 deletions(-) create mode 100644 MLEM.Templates/MLEM.Templates.csproj create mode 100644 MLEM.Templates/content/MLEMTemplates.DesktopGL/.template.config/template.json create mode 100644 MLEM.Templates/content/MLEMTemplates.DesktopGL/Content/Content.mgcb create mode 100644 MLEM.Templates/content/MLEMTemplates.DesktopGL/GameImpl.cs create mode 100644 MLEM.Templates/content/MLEMTemplates.DesktopGL/Program.cs create mode 100644 MLEM.Templates/content/MLEMTemplates.DesktopGL/TemplateNamespace.csproj create mode 100644 MLEM.Templates/content/MLEMTemplates.Portable/.template.config/template.json create mode 100644 MLEM.Templates/content/MLEMTemplates.Portable/Content/Content.mgcb create mode 100644 MLEM.Templates/content/MLEMTemplates.Portable/GameImpl.cs create mode 100644 MLEM.Templates/content/MLEMTemplates.Portable/TemplateNamespace.csproj diff --git a/MLEM.Extended/MLEM.Extended.csproj b/MLEM.Extended/MLEM.Extended.csproj index 0aeddc5..9fcd354 100644 --- a/MLEM.Extended/MLEM.Extended.csproj +++ b/MLEM.Extended/MLEM.Extended.csproj @@ -10,7 +10,7 @@ https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM/blob/master/LICENSE - 3.1.0 + 3.2.0 diff --git a/MLEM.Startup/MLEM.Startup.csproj b/MLEM.Startup/MLEM.Startup.csproj index 5dc6e1d..42b9e11 100644 --- a/MLEM.Startup/MLEM.Startup.csproj +++ b/MLEM.Startup/MLEM.Startup.csproj @@ -11,7 +11,7 @@ https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM/blob/master/LICENSE - 3.1.0 + 3.2.0 diff --git a/MLEM.Templates/MLEM.Templates.csproj b/MLEM.Templates/MLEM.Templates.csproj new file mode 100644 index 0000000..76eed2b --- /dev/null +++ b/MLEM.Templates/MLEM.Templates.csproj @@ -0,0 +1,26 @@ + + + + netstandard2.0 + true + false + content + + + + Template + MLEM Templates + Ellpeck + Templates to use when creating an application for Adatum Corporation. + dotnet-new templates monogame ellpeck mlem utility extensions + https://github.com/Ellpeck/MLEM + https://github.com/Ellpeck/MLEM + 3.2.0 + + + + + + + + \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.DesktopGL/.template.config/template.json b/MLEM.Templates/content/MLEMTemplates.DesktopGL/.template.config/template.json new file mode 100644 index 0000000..59e85c3 --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.DesktopGL/.template.config/template.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Ellpeck", + "classifications": ["MLEM", "MonoGame"], + "identity": "MLEMTemplates.DesktopGL", + "name": "MLEM DesktopGL", + "shortName": "mlemdesktopgl", + "sourceName": "TemplateNamespace", + "preferNameDirectory": true, + "tags": { + "language": "C#", + "type": "project" + }, + "primaryOutputs": [ + { + "path": "mlemdesktopgl.csproj" + } + ] +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.DesktopGL/Content/Content.mgcb b/MLEM.Templates/content/MLEMTemplates.DesktopGL/Content/Content.mgcb new file mode 100644 index 0000000..3770c5a --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.DesktopGL/Content/Content.mgcb @@ -0,0 +1,15 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin +/intermediateDir:obj +/platform:Windows +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + diff --git a/MLEM.Templates/content/MLEMTemplates.DesktopGL/GameImpl.cs b/MLEM.Templates/content/MLEMTemplates.DesktopGL/GameImpl.cs new file mode 100644 index 0000000..79d6371 --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.DesktopGL/GameImpl.cs @@ -0,0 +1,7 @@ +using MLEM.Startup; + +namespace TemplateNamespace { + public class GameImpl : MlemGame { + + } +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.DesktopGL/Program.cs b/MLEM.Templates/content/MLEMTemplates.DesktopGL/Program.cs new file mode 100644 index 0000000..7c935f2 --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.DesktopGL/Program.cs @@ -0,0 +1,10 @@ +namespace TemplateNamespace { + public static class Program { + + public static void Main() { + using (var game = new GameImpl()) + game.Run(); + } + + } +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.DesktopGL/TemplateNamespace.csproj b/MLEM.Templates/content/MLEMTemplates.DesktopGL/TemplateNamespace.csproj new file mode 100644 index 0000000..32fc07a --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.DesktopGL/TemplateNamespace.csproj @@ -0,0 +1,20 @@ + + + + Exe + net462 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.Portable/.template.config/template.json b/MLEM.Templates/content/MLEMTemplates.Portable/.template.config/template.json new file mode 100644 index 0000000..12c3638 --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.Portable/.template.config/template.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Ellpeck", + "classifications": ["MLEM", "MonoGame"], + "identity": "MLEMTemplates.Portable", + "name": "MLEM Portable", + "shortName": "mlemportable", + "sourceName": "TemplateNamespace", + "preferNameDirectory": true, + "tags": { + "language": "C#", + "type": "project" + }, + "primaryOutputs": [ + { + "path": "mlemportable.csproj" + } + ] +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.Portable/Content/Content.mgcb b/MLEM.Templates/content/MLEMTemplates.Portable/Content/Content.mgcb new file mode 100644 index 0000000..3770c5a --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.Portable/Content/Content.mgcb @@ -0,0 +1,15 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin +/intermediateDir:obj +/platform:Windows +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + diff --git a/MLEM.Templates/content/MLEMTemplates.Portable/GameImpl.cs b/MLEM.Templates/content/MLEMTemplates.Portable/GameImpl.cs new file mode 100644 index 0000000..79d6371 --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.Portable/GameImpl.cs @@ -0,0 +1,7 @@ +using MLEM.Startup; + +namespace TemplateNamespace { + public class GameImpl : MlemGame { + + } +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEMTemplates.Portable/TemplateNamespace.csproj b/MLEM.Templates/content/MLEMTemplates.Portable/TemplateNamespace.csproj new file mode 100644 index 0000000..4f65412 --- /dev/null +++ b/MLEM.Templates/content/MLEMTemplates.Portable/TemplateNamespace.csproj @@ -0,0 +1,14 @@ + + + + netstandard2.0 + + + + + + all + + + + \ No newline at end of file diff --git a/MLEM.Ui/MLEM.Ui.csproj b/MLEM.Ui/MLEM.Ui.csproj index 0ac902c..4077a31 100644 --- a/MLEM.Ui/MLEM.Ui.csproj +++ b/MLEM.Ui/MLEM.Ui.csproj @@ -10,7 +10,7 @@ https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM/blob/master/LICENSE - 3.1.0 + 3.2.0 diff --git a/MLEM.sln b/MLEM.sln index 6d5b2e0..1fa8130 100644 --- a/MLEM.sln +++ b/MLEM.sln @@ -18,6 +18,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demos.Android", "Demos.Andr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MLEM.Data", "MLEM.Data\MLEM.Data.csproj", "{28938AAA-FB91-4E6F-8511-0DB99EC831F7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MLEM.Templates", "MLEM.Templates\MLEM.Templates.csproj", "{C2A2CFED-C9E8-4675-BD66-EFC3DB210977}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -60,5 +62,9 @@ Global {28938AAA-FB91-4E6F-8511-0DB99EC831F7}.Debug|Any CPU.Build.0 = Debug|Any CPU {28938AAA-FB91-4E6F-8511-0DB99EC831F7}.Release|Any CPU.ActiveCfg = Release|Any CPU {28938AAA-FB91-4E6F-8511-0DB99EC831F7}.Release|Any CPU.Build.0 = Release|Any CPU + {C2A2CFED-C9E8-4675-BD66-EFC3DB210977}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C2A2CFED-C9E8-4675-BD66-EFC3DB210977}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C2A2CFED-C9E8-4675-BD66-EFC3DB210977}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C2A2CFED-C9E8-4675-BD66-EFC3DB210977}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/MLEM/MLEM.csproj b/MLEM/MLEM.csproj index 71aa251..be61134 100644 --- a/MLEM/MLEM.csproj +++ b/MLEM/MLEM.csproj @@ -10,7 +10,7 @@ https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM https://github.com/Ellpeck/MLEM/blob/master/LICENSE - 3.1.0 + 3.2.0