diff --git a/Cake.VisualStudio.sln b/Cake.VisualStudio.sln index 0968a9e..63dc6ff 100644 --- a/Cake.VisualStudio.sln +++ b/Cake.VisualStudio.sln @@ -11,16 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Templates", "Templates", "{7067556F-B744-4F73-B509-C8CC9F559AB9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTemplate", "template\AddinTemplate\AddinTemplate.csproj", "{FCE573DD-E74E-4AB1-9D17-56FC8869797F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleTemplate", "template\ModuleTemplate\ModuleTemplate.csproj", "{85BCBED7-39BD-4670-85F7-EE36D0DA31C0}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ItemTemplate", "template\ItemTemplate\ItemTemplate.csproj", "{C27AB61E-D245-4A8C-ABD1-53313E388509}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTestTemplate", "template\AddinTestTemplate\AddinTestTemplate.csproj", "{AB983284-D1F6-4853-9462-402F2985A141}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTestBasicTemplate", "template\AddinTestBasicTemplate\AddinTestBasicTemplate.csproj", "{F21E9BF8-745B-4B29-B113-0E55AE840D24}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SolutionItemTemplate", "template\SolutionItemTemplate\SolutionItemTemplate.csproj", "{5D45E667-D12D-44F8-8A87-5503BF5DE274}" EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Cake.VisualStudio.Shared", "src\Cake.VisualStudio.Shared\Cake.VisualStudio.Shared.shproj", "{3D9AB2DB-3DD8-4E2B-8DBC-BF29EDAF1A1B}" @@ -29,6 +21,26 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.VisualStudio", "src\Ca EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.VisualStudio.2022", "src\Cake.VisualStudio.2022\Cake.VisualStudio.2022.csproj", "{F8EB885A-FCA3-410A-B895-9CE327D5D482}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "32bit", "32bit", "{85363126-FE10-445D-9F9C-12D6E2CFB0B4}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "64bit", "64bit", "{B3BC087C-0BE8-4697-846A-5DC5B70929DB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTemplate", "template\32bit\AddinTemplate\AddinTemplate.csproj", "{CBBA06CF-8804-41C1-962E-A74B1EBB5542}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTestBasicTemplate", "template\32bit\AddinTestBasicTemplate\AddinTestBasicTemplate.csproj", "{EEB3B03D-022D-4979-8B0F-A225D675BB83}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTestTemplate", "template\32bit\AddinTestTemplate\AddinTestTemplate.csproj", "{19BD1405-ADFC-47C7-A401-06376CFEABF5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleTemplate", "template\32bit\ModuleTemplate\ModuleTemplate.csproj", "{E58A29FB-4385-46E9-99E2-AD6D80F283D5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTemplate64", "template\64bit\AddinTemplate\AddinTemplate64.csproj", "{FCE573DD-E74E-4AB1-9D17-56FC8869797F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTestBasicTemplate64", "template\64bit\AddinTestBasicTemplate\AddinTestBasicTemplate64.csproj", "{F21E9BF8-745B-4B29-B113-0E55AE840D24}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddinTestTemplate64", "template\64bit\AddinTestTemplate\AddinTestTemplate64.csproj", "{AB983284-D1F6-4853-9462-402F2985A141}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleTemplate64", "template\64bit\ModuleTemplate\ModuleTemplate64.csproj", "{85BCBED7-39BD-4670-85F7-EE36D0DA31C0}" +EndProject Global GlobalSection(SharedMSBuildProjectFiles) = preSolution src\Cake.VisualStudio.Shared\Cake.VisualStudio.Shared.projitems*{3d9ab2db-3dd8-4e2b-8dbc-bf29edaf1a1b}*SharedItemsImports = 13 @@ -40,26 +52,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Release|Any CPU.Build.0 = Release|Any CPU - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Release|Any CPU.Build.0 = Release|Any CPU {C27AB61E-D245-4A8C-ABD1-53313E388509}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C27AB61E-D245-4A8C-ABD1-53313E388509}.Debug|Any CPU.Build.0 = Debug|Any CPU {C27AB61E-D245-4A8C-ABD1-53313E388509}.Release|Any CPU.ActiveCfg = Release|Any CPU {C27AB61E-D245-4A8C-ABD1-53313E388509}.Release|Any CPU.Build.0 = Release|Any CPU - {AB983284-D1F6-4853-9462-402F2985A141}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AB983284-D1F6-4853-9462-402F2985A141}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AB983284-D1F6-4853-9462-402F2985A141}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AB983284-D1F6-4853-9462-402F2985A141}.Release|Any CPU.Build.0 = Release|Any CPU - {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Release|Any CPU.Build.0 = Release|Any CPU {5D45E667-D12D-44F8-8A87-5503BF5DE274}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5D45E667-D12D-44F8-8A87-5503BF5DE274}.Debug|Any CPU.Build.0 = Debug|Any CPU {5D45E667-D12D-44F8-8A87-5503BF5DE274}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -72,17 +68,55 @@ Global {F8EB885A-FCA3-410A-B895-9CE327D5D482}.Debug|Any CPU.Build.0 = Debug|Any CPU {F8EB885A-FCA3-410A-B895-9CE327D5D482}.Release|Any CPU.ActiveCfg = Release|Any CPU {F8EB885A-FCA3-410A-B895-9CE327D5D482}.Release|Any CPU.Build.0 = Release|Any CPU + {CBBA06CF-8804-41C1-962E-A74B1EBB5542}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CBBA06CF-8804-41C1-962E-A74B1EBB5542}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CBBA06CF-8804-41C1-962E-A74B1EBB5542}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CBBA06CF-8804-41C1-962E-A74B1EBB5542}.Release|Any CPU.Build.0 = Release|Any CPU + {EEB3B03D-022D-4979-8B0F-A225D675BB83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EEB3B03D-022D-4979-8B0F-A225D675BB83}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EEB3B03D-022D-4979-8B0F-A225D675BB83}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EEB3B03D-022D-4979-8B0F-A225D675BB83}.Release|Any CPU.Build.0 = Release|Any CPU + {19BD1405-ADFC-47C7-A401-06376CFEABF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19BD1405-ADFC-47C7-A401-06376CFEABF5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19BD1405-ADFC-47C7-A401-06376CFEABF5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19BD1405-ADFC-47C7-A401-06376CFEABF5}.Release|Any CPU.Build.0 = Release|Any CPU + {E58A29FB-4385-46E9-99E2-AD6D80F283D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E58A29FB-4385-46E9-99E2-AD6D80F283D5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E58A29FB-4385-46E9-99E2-AD6D80F283D5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E58A29FB-4385-46E9-99E2-AD6D80F283D5}.Release|Any CPU.Build.0 = Release|Any CPU + {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FCE573DD-E74E-4AB1-9D17-56FC8869797F}.Release|Any CPU.Build.0 = Release|Any CPU + {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F21E9BF8-745B-4B29-B113-0E55AE840D24}.Release|Any CPU.Build.0 = Release|Any CPU + {AB983284-D1F6-4853-9462-402F2985A141}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AB983284-D1F6-4853-9462-402F2985A141}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AB983284-D1F6-4853-9462-402F2985A141}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AB983284-D1F6-4853-9462-402F2985A141}.Release|Any CPU.Build.0 = Release|Any CPU + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {FCE573DD-E74E-4AB1-9D17-56FC8869797F} = {7067556F-B744-4F73-B509-C8CC9F559AB9} - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0} = {7067556F-B744-4F73-B509-C8CC9F559AB9} {C27AB61E-D245-4A8C-ABD1-53313E388509} = {7067556F-B744-4F73-B509-C8CC9F559AB9} - {AB983284-D1F6-4853-9462-402F2985A141} = {7067556F-B744-4F73-B509-C8CC9F559AB9} - {F21E9BF8-745B-4B29-B113-0E55AE840D24} = {7067556F-B744-4F73-B509-C8CC9F559AB9} {5D45E667-D12D-44F8-8A87-5503BF5DE274} = {7067556F-B744-4F73-B509-C8CC9F559AB9} + {85363126-FE10-445D-9F9C-12D6E2CFB0B4} = {7067556F-B744-4F73-B509-C8CC9F559AB9} + {B3BC087C-0BE8-4697-846A-5DC5B70929DB} = {7067556F-B744-4F73-B509-C8CC9F559AB9} + {CBBA06CF-8804-41C1-962E-A74B1EBB5542} = {85363126-FE10-445D-9F9C-12D6E2CFB0B4} + {EEB3B03D-022D-4979-8B0F-A225D675BB83} = {85363126-FE10-445D-9F9C-12D6E2CFB0B4} + {19BD1405-ADFC-47C7-A401-06376CFEABF5} = {85363126-FE10-445D-9F9C-12D6E2CFB0B4} + {E58A29FB-4385-46E9-99E2-AD6D80F283D5} = {85363126-FE10-445D-9F9C-12D6E2CFB0B4} + {FCE573DD-E74E-4AB1-9D17-56FC8869797F} = {B3BC087C-0BE8-4697-846A-5DC5B70929DB} + {F21E9BF8-745B-4B29-B113-0E55AE840D24} = {B3BC087C-0BE8-4697-846A-5DC5B70929DB} + {AB983284-D1F6-4853-9462-402F2985A141} = {B3BC087C-0BE8-4697-846A-5DC5B70929DB} + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0} = {B3BC087C-0BE8-4697-846A-5DC5B70929DB} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {15DFF96E-5E40-427D-B045-2B82B3A4FD92} diff --git a/src/Cake.VisualStudio.2022/Cake.VisualStudio.2022.csproj b/src/Cake.VisualStudio.2022/Cake.VisualStudio.2022.csproj index 7f9731d..6d1ce63 100644 --- a/src/Cake.VisualStudio.2022/Cake.VisualStudio.2022.csproj +++ b/src/Cake.VisualStudio.2022/Cake.VisualStudio.2022.csproj @@ -226,23 +226,30 @@ - - {FCE573DD-E74E-4AB1-9D17-56FC8869797F} - AddinTemplate + + {fce573dd-e74e-4ab1-9d17-56fc8869797f} + AddinTemplate64 ProjectTemplates false TemplateProjectOutputGroup%3b - - {F21E9BF8-745B-4B29-B113-0E55AE840D24} - AddinTestBasicTemplate + + {f21e9bf8-745b-4b29-b113-0e55ae840d24} + AddinTestBasicTemplate64 ProjectTemplates false TemplateProjectOutputGroup%3b - - {AB983284-D1F6-4853-9462-402F2985A141} - AddinTestTemplate + + {ab983284-d1f6-4853-9462-402f2985a141} + AddinTestTemplate64 + ProjectTemplates + false + TemplateProjectOutputGroup%3b + + + {85bcbed7-39bd-4670-85f7-ee36d0da31c0} + ModuleTemplate64 ProjectTemplates false TemplateProjectOutputGroup%3b @@ -254,13 +261,6 @@ false TemplateProjectOutputGroup%3b - - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0} - ModuleTemplate - ProjectTemplates - false - TemplateProjectOutputGroup%3b - {5D45E667-D12D-44F8-8A87-5503BF5DE274} SolutionItemTemplate diff --git a/src/Cake.VisualStudio.2022/source.extension.vsixmanifest b/src/Cake.VisualStudio.2022/source.extension.vsixmanifest index f63fa82..70d641a 100644 --- a/src/Cake.VisualStudio.2022/source.extension.vsixmanifest +++ b/src/Cake.VisualStudio.2022/source.extension.vsixmanifest @@ -29,12 +29,12 @@ - - - - + + + + diff --git a/src/Cake.VisualStudio.2022/source.extension1.cs b/src/Cake.VisualStudio.2022/source.extension1.cs index 8b3fd0f..e839061 100644 --- a/src/Cake.VisualStudio.2022/source.extension1.cs +++ b/src/Cake.VisualStudio.2022/source.extension1.cs @@ -7,7 +7,7 @@ namespace Cake.VisualStudio { internal sealed partial class Vsix { - public const string Id = "3cf9b016-d63f-44ee-849d-6f3efc996134"; + public const string Id = "ad71f4ec-6358-47a3-8a27-d9dc61d0606b"; public const string Name = "Cake for Visual Studio 2022"; public const string Description = @"Adds support for the Cake build tool in Visual Studio 2022. Includes support for the Task Runner Explorer, new templates and bootstrapping important Cake files."; public const string Language = "en-US"; diff --git a/src/Cake.VisualStudio/Cake.VisualStudio.csproj b/src/Cake.VisualStudio/Cake.VisualStudio.csproj index fc0276e..aa1c492 100644 --- a/src/Cake.VisualStudio/Cake.VisualStudio.csproj +++ b/src/Cake.VisualStudio/Cake.VisualStudio.csproj @@ -228,21 +228,21 @@ - + {FCE573DD-E74E-4AB1-9D17-56FC8869797F} AddinTemplate ProjectTemplates false TemplateProjectOutputGroup%3b - + {F21E9BF8-745B-4B29-B113-0E55AE840D24} AddinTestBasicTemplate ProjectTemplates false TemplateProjectOutputGroup%3b - + {AB983284-D1F6-4853-9462-402F2985A141} AddinTestTemplate ProjectTemplates @@ -256,7 +256,7 @@ false TemplateProjectOutputGroup%3b - + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0} ModuleTemplate ProjectTemplates diff --git a/template/AddinTemplate/AddinTemplate.csproj b/template/32bit/AddinTemplate/AddinTemplate.csproj similarity index 97% rename from template/AddinTemplate/AddinTemplate.csproj rename to template/32bit/AddinTemplate/AddinTemplate.csproj index f0b436d..4f81a3e 100644 --- a/template/AddinTemplate/AddinTemplate.csproj +++ b/template/32bit/AddinTemplate/AddinTemplate.csproj @@ -26,7 +26,7 @@ Debug AnyCPU {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {FCE573DD-E74E-4AB1-9D17-56FC8869797F} + {CBBA06CF-8804-41C1-962E-A74B1EBB5542} Library Properties AddinTemplate @@ -76,7 +76,6 @@ - @@ -100,4 +99,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/template/AddinTemplate/AddinTemplate.ico b/template/32bit/AddinTemplate/AddinTemplate.ico similarity index 100% rename from template/AddinTemplate/AddinTemplate.ico rename to template/32bit/AddinTemplate/AddinTemplate.ico diff --git a/template/AddinTemplate/AddinTemplate.vstemplate b/template/32bit/AddinTemplate/AddinTemplate.vstemplate similarity index 100% rename from template/AddinTemplate/AddinTemplate.vstemplate rename to template/32bit/AddinTemplate/AddinTemplate.vstemplate diff --git a/template/AddinTemplate/Aliases.cs b/template/32bit/AddinTemplate/Aliases.cs similarity index 100% rename from template/AddinTemplate/Aliases.cs rename to template/32bit/AddinTemplate/Aliases.cs diff --git a/template/AddinTemplate/AssemblyInfo.cs b/template/32bit/AddinTemplate/AssemblyInfo.cs similarity index 100% rename from template/AddinTemplate/AssemblyInfo.cs rename to template/32bit/AddinTemplate/AssemblyInfo.cs diff --git a/template/AddinTemplate/ProjectTemplate.csproj b/template/32bit/AddinTemplate/ProjectTemplate.csproj similarity index 100% rename from template/AddinTemplate/ProjectTemplate.csproj rename to template/32bit/AddinTemplate/ProjectTemplate.csproj diff --git a/template/AddinTemplate/Properties/AssemblyInfo.cs b/template/32bit/AddinTemplate/Properties/AssemblyInfo.cs similarity index 100% rename from template/AddinTemplate/Properties/AssemblyInfo.cs rename to template/32bit/AddinTemplate/Properties/AssemblyInfo.cs diff --git a/template/AddinTestBasicTemplate/AddinTestBasicTemplate.csproj b/template/32bit/AddinTestBasicTemplate/AddinTestBasicTemplate.csproj similarity index 96% rename from template/AddinTestBasicTemplate/AddinTestBasicTemplate.csproj rename to template/32bit/AddinTestBasicTemplate/AddinTestBasicTemplate.csproj index 09e456d..3476101 100644 --- a/template/AddinTestBasicTemplate/AddinTestBasicTemplate.csproj +++ b/template/32bit/AddinTestBasicTemplate/AddinTestBasicTemplate.csproj @@ -11,7 +11,7 @@ Debug AnyCPU {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {F21E9BF8-745B-4B29-B113-0E55AE840D24} + {EEB3B03D-022D-4979-8B0F-A225D675BB83} Library Properties AddinTestBasicTemplate @@ -61,7 +61,6 @@ - @@ -73,4 +72,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/template/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate b/template/32bit/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate similarity index 100% rename from template/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate rename to template/32bit/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate diff --git a/template/AddinTestBasicTemplate/AddinTests.cs b/template/32bit/AddinTestBasicTemplate/AddinTests.cs similarity index 100% rename from template/AddinTestBasicTemplate/AddinTests.cs rename to template/32bit/AddinTestBasicTemplate/AddinTests.cs diff --git a/template/AddinTestBasicTemplate/AssemblyInfo.cs b/template/32bit/AddinTestBasicTemplate/AssemblyInfo.cs similarity index 100% rename from template/AddinTestBasicTemplate/AssemblyInfo.cs rename to template/32bit/AddinTestBasicTemplate/AssemblyInfo.cs diff --git a/template/AddinTestBasicTemplate/CakeTestTemplate.ico b/template/32bit/AddinTestBasicTemplate/CakeTestTemplate.ico similarity index 100% rename from template/AddinTestBasicTemplate/CakeTestTemplate.ico rename to template/32bit/AddinTestBasicTemplate/CakeTestTemplate.ico diff --git a/template/AddinTestBasicTemplate/ProjectTemplate.csproj b/template/32bit/AddinTestBasicTemplate/ProjectTemplate.csproj similarity index 100% rename from template/AddinTestBasicTemplate/ProjectTemplate.csproj rename to template/32bit/AddinTestBasicTemplate/ProjectTemplate.csproj diff --git a/template/AddinTestBasicTemplate/Properties/AssemblyInfo.cs b/template/32bit/AddinTestBasicTemplate/Properties/AssemblyInfo.cs similarity index 100% rename from template/AddinTestBasicTemplate/Properties/AssemblyInfo.cs rename to template/32bit/AddinTestBasicTemplate/Properties/AssemblyInfo.cs diff --git a/template/AddinTestTemplate/AddinTestTemplate.csproj b/template/32bit/AddinTestTemplate/AddinTestTemplate.csproj similarity index 97% rename from template/AddinTestTemplate/AddinTestTemplate.csproj rename to template/32bit/AddinTestTemplate/AddinTestTemplate.csproj index e5fd0e0..2a5bd1b 100644 --- a/template/AddinTestTemplate/AddinTestTemplate.csproj +++ b/template/32bit/AddinTestTemplate/AddinTestTemplate.csproj @@ -11,7 +11,7 @@ Debug AnyCPU {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {AB983284-D1F6-4853-9462-402F2985A141} + {19BD1405-ADFC-47C7-A401-06376CFEABF5} Library Properties AddinTestTemplate @@ -64,7 +64,6 @@ - diff --git a/template/AddinTestTemplate/AddinTestTemplate.vstemplate b/template/32bit/AddinTestTemplate/AddinTestTemplate.vstemplate similarity index 100% rename from template/AddinTestTemplate/AddinTestTemplate.vstemplate rename to template/32bit/AddinTestTemplate/AddinTestTemplate.vstemplate diff --git a/template/AddinTestTemplate/AddinTests.cs b/template/32bit/AddinTestTemplate/AddinTests.cs similarity index 100% rename from template/AddinTestTemplate/AddinTests.cs rename to template/32bit/AddinTestTemplate/AddinTests.cs diff --git a/template/AddinTestTemplate/AssemblyInfo.cs b/template/32bit/AddinTestTemplate/AssemblyInfo.cs similarity index 100% rename from template/AddinTestTemplate/AssemblyInfo.cs rename to template/32bit/AddinTestTemplate/AssemblyInfo.cs diff --git a/template/AddinTestTemplate/CakeFixture.cs b/template/32bit/AddinTestTemplate/CakeFixture.cs similarity index 100% rename from template/AddinTestTemplate/CakeFixture.cs rename to template/32bit/AddinTestTemplate/CakeFixture.cs diff --git a/template/AddinTestTemplate/CakeTestTemplate.ico b/template/32bit/AddinTestTemplate/CakeTestTemplate.ico similarity index 100% rename from template/AddinTestTemplate/CakeTestTemplate.ico rename to template/32bit/AddinTestTemplate/CakeTestTemplate.ico diff --git a/template/AddinTestTemplate/CakeTool.cs b/template/32bit/AddinTestTemplate/CakeTool.cs similarity index 100% rename from template/AddinTestTemplate/CakeTool.cs rename to template/32bit/AddinTestTemplate/CakeTool.cs diff --git a/template/AddinTestTemplate/CakeToolSettings.cs b/template/32bit/AddinTestTemplate/CakeToolSettings.cs similarity index 100% rename from template/AddinTestTemplate/CakeToolSettings.cs rename to template/32bit/AddinTestTemplate/CakeToolSettings.cs diff --git a/template/AddinTestTemplate/ProjectTemplate.csproj b/template/32bit/AddinTestTemplate/ProjectTemplate.csproj similarity index 100% rename from template/AddinTestTemplate/ProjectTemplate.csproj rename to template/32bit/AddinTestTemplate/ProjectTemplate.csproj diff --git a/template/AddinTestTemplate/Properties/AssemblyInfo.cs b/template/32bit/AddinTestTemplate/Properties/AssemblyInfo.cs similarity index 100% rename from template/AddinTestTemplate/Properties/AssemblyInfo.cs rename to template/32bit/AddinTestTemplate/Properties/AssemblyInfo.cs diff --git a/template/ModuleTemplate/AssemblyInfo.cs b/template/32bit/ModuleTemplate/AssemblyInfo.cs similarity index 100% rename from template/ModuleTemplate/AssemblyInfo.cs rename to template/32bit/ModuleTemplate/AssemblyInfo.cs diff --git a/template/ModuleTemplate/ModuleTemplate.csproj b/template/32bit/ModuleTemplate/ModuleTemplate.csproj similarity index 97% rename from template/ModuleTemplate/ModuleTemplate.csproj rename to template/32bit/ModuleTemplate/ModuleTemplate.csproj index 05e910d..c5e7d55 100644 --- a/template/ModuleTemplate/ModuleTemplate.csproj +++ b/template/32bit/ModuleTemplate/ModuleTemplate.csproj @@ -26,7 +26,7 @@ Debug AnyCPU {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {85BCBED7-39BD-4670-85F7-EE36D0DA31C0} + {E58A29FB-4385-46E9-99E2-AD6D80F283D5} Library Properties ModuleTemplate @@ -75,7 +75,6 @@ - diff --git a/template/ModuleTemplate/ModuleTemplate.ico b/template/32bit/ModuleTemplate/ModuleTemplate.ico similarity index 100% rename from template/ModuleTemplate/ModuleTemplate.ico rename to template/32bit/ModuleTemplate/ModuleTemplate.ico diff --git a/template/ModuleTemplate/ModuleTemplate.vstemplate b/template/32bit/ModuleTemplate/ModuleTemplate.vstemplate similarity index 100% rename from template/ModuleTemplate/ModuleTemplate.vstemplate rename to template/32bit/ModuleTemplate/ModuleTemplate.vstemplate diff --git a/template/ModuleTemplate/ProjectTemplate.csproj b/template/32bit/ModuleTemplate/ProjectTemplate.csproj similarity index 100% rename from template/ModuleTemplate/ProjectTemplate.csproj rename to template/32bit/ModuleTemplate/ProjectTemplate.csproj diff --git a/template/ModuleTemplate/Properties/AssemblyInfo.cs b/template/32bit/ModuleTemplate/Properties/AssemblyInfo.cs similarity index 100% rename from template/ModuleTemplate/Properties/AssemblyInfo.cs rename to template/32bit/ModuleTemplate/Properties/AssemblyInfo.cs diff --git a/template/ModuleTemplate/ReverseLog.cs b/template/32bit/ModuleTemplate/ReverseLog.cs similarity index 100% rename from template/ModuleTemplate/ReverseLog.cs rename to template/32bit/ModuleTemplate/ReverseLog.cs diff --git a/template/ModuleTemplate/SampleLogModule.cs b/template/32bit/ModuleTemplate/SampleLogModule.cs similarity index 100% rename from template/ModuleTemplate/SampleLogModule.cs rename to template/32bit/ModuleTemplate/SampleLogModule.cs diff --git a/template/64bit/AddinTemplate/AddinTemplate.ico b/template/64bit/AddinTemplate/AddinTemplate.ico new file mode 100644 index 0000000..ca64934 Binary files /dev/null and b/template/64bit/AddinTemplate/AddinTemplate.ico differ diff --git a/template/64bit/AddinTemplate/AddinTemplate.vstemplate b/template/64bit/AddinTemplate/AddinTemplate.vstemplate new file mode 100644 index 0000000..397faee --- /dev/null +++ b/template/64bit/AddinTemplate/AddinTemplate.vstemplate @@ -0,0 +1,36 @@ + + + + Cake Addin + Basic project template for creating a new Cake addin + AddinTemplate.ico + CSharp + csharp + linux + windows + macos + Cake + 4.5 + 1000 + 10dcbe21-0d84-4a5b-88a3-220e234a7211 + true + Cake.Addin + true + true + + + + AssemblyInfo.cs + Aliases.cs + + + + NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + NuGet.VisualStudio.TemplateWizard + + + + + + + \ No newline at end of file diff --git a/template/64bit/AddinTemplate/AddinTemplate64.csproj b/template/64bit/AddinTemplate/AddinTemplate64.csproj new file mode 100644 index 0000000..3695552 --- /dev/null +++ b/template/64bit/AddinTemplate/AddinTemplate64.csproj @@ -0,0 +1,102 @@ + + + + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + + Debug + AnyCPU + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {FCE573DD-E74E-4AB1-9D17-56FC8869797F} + Library + Properties + AddinTemplate + AddinTemplate + v4.5.2 + 512 + false + false + false + false + false + false + false + false + false + false + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + + + + + + + + + + + + + + + + + + Designer + Cake + + + + + False + Microsoft .NET Framework 4.5.2 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + + \ No newline at end of file diff --git a/template/64bit/AddinTemplate/Aliases.cs b/template/64bit/AddinTemplate/Aliases.cs new file mode 100644 index 0000000..d4ab2fa --- /dev/null +++ b/template/64bit/AddinTemplate/Aliases.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +$if$ ($targetframeworkversion$ >= 3.5)using System.Linq; +$endif$using System.Text; +using Cake.Core; +using Cake.Core.Annotations; +using Cake.Core.Diagnostics; + +namespace $safeprojectname$ +{ + [CakeAliasCategory("Sample")] + public static class AddinAliases + { + [CakeMethodAlias] + public static void Hello(this ICakeContext ctx, string name) + { + ctx.Log.Information("Hello " + name); + } + } +} diff --git a/template/64bit/AddinTemplate/AssemblyInfo.cs b/template/64bit/AddinTemplate/AssemblyInfo.cs new file mode 100644 index 0000000..a0edcb6 --- /dev/null +++ b/template/64bit/AddinTemplate/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("$projectname$")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("$registeredorganization$")] +[assembly: AssemblyProduct("$projectname$")] +[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("$guid1$")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/template/64bit/AddinTemplate/ProjectTemplate.csproj b/template/64bit/AddinTemplate/ProjectTemplate.csproj new file mode 100644 index 0000000..773ba77 --- /dev/null +++ b/template/64bit/AddinTemplate/ProjectTemplate.csproj @@ -0,0 +1,62 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + $guid1$ + Library + Properties + $safeprojectname$ + $safeprojectname$ + v$targetframeworkversion$ + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + $safeprojectname$.xml + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + $safeprojectname$.xml + + + + $if$ ($targetframeworkversion$ >= 3.5) + + + + $endif$ + $if$ ($targetframeworkversion$ >= 4.0) + + $endif$ + + + + + + + + + + + + diff --git a/template/64bit/AddinTemplate/Properties/AssemblyInfo.cs b/template/64bit/AddinTemplate/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a6ea44b --- /dev/null +++ b/template/64bit/AddinTemplate/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AddinTemplate")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("AddinTemplate")] +[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("fce573dd-e74e-4ab1-9d17-56fc8869797f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.2.0")] +[assembly: AssemblyFileVersion("0.1.2.0")] diff --git a/template/64bit/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate b/template/64bit/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate new file mode 100644 index 0000000..acff35e --- /dev/null +++ b/template/64bit/AddinTestBasicTemplate/AddinTestBasicTemplate.vstemplate @@ -0,0 +1,45 @@ + + + + Cake Addin Unit Test Project (empty) + Basic project template for creating unit tests for a Cake addin + CakeTestTemplate.ico + CSharp + csharp + linux + windows + macos + Cake + 4.5 + 1000 + 8632940c-cc4f-4a8a-abc9-79c00818f4ef + true + Cake.AddinTests + true + + + + AssemblyInfo.cs + AddinTests.cs + + + + NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + NuGet.VisualStudio.TemplateWizard + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/template/64bit/AddinTestBasicTemplate/AddinTestBasicTemplate64.csproj b/template/64bit/AddinTestBasicTemplate/AddinTestBasicTemplate64.csproj new file mode 100644 index 0000000..1b685ac --- /dev/null +++ b/template/64bit/AddinTestBasicTemplate/AddinTestBasicTemplate64.csproj @@ -0,0 +1,75 @@ + + + + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + Debug + AnyCPU + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {F21E9BF8-745B-4B29-B113-0E55AE840D24} + Library + Properties + AddinTestBasicTemplate + AddinTestBasicTemplate + v4.5.2 + 512 + false + false + false + false + false + false + false + false + false + false + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + + + + + + + + + + + + + + + + + + Designer + Cake + + + + + \ No newline at end of file diff --git a/template/64bit/AddinTestBasicTemplate/AddinTests.cs b/template/64bit/AddinTestBasicTemplate/AddinTests.cs new file mode 100644 index 0000000..4afbece --- /dev/null +++ b/template/64bit/AddinTestBasicTemplate/AddinTests.cs @@ -0,0 +1,12 @@ +using Xunit; + +namespace $safeprojectname$ +{ + public class AddinTests + { + [Fact] + public void TestMethod() + { + } + } +} diff --git a/template/64bit/AddinTestBasicTemplate/AssemblyInfo.cs b/template/64bit/AddinTestBasicTemplate/AssemblyInfo.cs new file mode 100644 index 0000000..a0edcb6 --- /dev/null +++ b/template/64bit/AddinTestBasicTemplate/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("$projectname$")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("$registeredorganization$")] +[assembly: AssemblyProduct("$projectname$")] +[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("$guid1$")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/template/64bit/AddinTestBasicTemplate/CakeTestTemplate.ico b/template/64bit/AddinTestBasicTemplate/CakeTestTemplate.ico new file mode 100644 index 0000000..8d67cac Binary files /dev/null and b/template/64bit/AddinTestBasicTemplate/CakeTestTemplate.ico differ diff --git a/template/64bit/AddinTestBasicTemplate/ProjectTemplate.csproj b/template/64bit/AddinTestBasicTemplate/ProjectTemplate.csproj new file mode 100644 index 0000000..4ea97aa --- /dev/null +++ b/template/64bit/AddinTestBasicTemplate/ProjectTemplate.csproj @@ -0,0 +1,63 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + $guid1$ + Library + Properties + $safeprojectname$ + $safeprojectname$ + v$targetframeworkversion$ + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False + UnitTest + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + $if$ ($targetframeworkversion$ >= 3.5) + + + + $endif$ + $if$ ($targetframeworkversion$ >= 4.0) + + $endif$ + + + + + + + + + + + + diff --git a/template/64bit/AddinTestBasicTemplate/Properties/AssemblyInfo.cs b/template/64bit/AddinTestBasicTemplate/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1335a4b --- /dev/null +++ b/template/64bit/AddinTestBasicTemplate/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AddinTestBasicTemplate")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("AddinTestBasicTemplate")] +[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f21e9bf8-745b-4b29-b113-0e55ae840d24")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.2.0")] +[assembly: AssemblyFileVersion("0.1.2.0")] diff --git a/template/64bit/AddinTestTemplate/AddinTestTemplate.vstemplate b/template/64bit/AddinTestTemplate/AddinTestTemplate.vstemplate new file mode 100644 index 0000000..54c73a6 --- /dev/null +++ b/template/64bit/AddinTestTemplate/AddinTestTemplate.vstemplate @@ -0,0 +1,48 @@ + + + + Cake Addin Unit Test Project + Basic project template, including samples, for creating unit tests for a Cake addin + CakeTestTemplate.ico + CSharp + csharp + linux + windows + macos + Cake + 4.5 + 1000 + 8e115642-736f-4d2d-975e-551dbfc1a088 + true + Cake.AddinTests + true + + + + AssemblyInfo.cs + AddinTests.cs + CakeFixture.cs + CakeTool.cs + CakeToolSettings.cs + + + + NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + NuGet.VisualStudio.TemplateWizard + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/template/64bit/AddinTestTemplate/AddinTestTemplate64.csproj b/template/64bit/AddinTestTemplate/AddinTestTemplate64.csproj new file mode 100644 index 0000000..b2ef1cd --- /dev/null +++ b/template/64bit/AddinTestTemplate/AddinTestTemplate64.csproj @@ -0,0 +1,80 @@ + + + + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + Debug + AnyCPU + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {AB983284-D1F6-4853-9462-402F2985A141} + Library + Properties + AddinTestTemplate + AddinTestTemplate + v4.5.2 + 512 + false + false + false + false + false + false + false + false + false + false + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + + + + + + + + + + + + + + + + + + + + Designer + Cake + + + + + + + + \ No newline at end of file diff --git a/template/64bit/AddinTestTemplate/AddinTests.cs b/template/64bit/AddinTestTemplate/AddinTests.cs new file mode 100644 index 0000000..959d824 --- /dev/null +++ b/template/64bit/AddinTestTemplate/AddinTests.cs @@ -0,0 +1,34 @@ +using System.IO; +$if$ ($targetframeworkversion$ >= 3.5)using System.Linq; +$endif$using System.Text; +using Xunit; + +namespace $safeprojectname$ +{ + public class AddinTests + { + [Fact] + public void ShouldThrowIfFileNotExists() + { + // arrange + var fixture = new CakeFixture(false); + //act + var result = Record.Exception(() => fixture.Run()); + //assert + Assert.IsType(typeof(FileNotFoundException), result); + } + + [Theory] + [InlineData("./build.cake")] + [InlineData("./deploy.cake")] + public void ShouldIncludeFileName(string scriptFilePath) + { + //arrange + var fixture = new CakeFixture(true, scriptFilePath); + //act + var result = fixture.Run(); + //result + Assert.True(result.Args.Contains(scriptFilePath)); + } + } +} diff --git a/template/64bit/AddinTestTemplate/AssemblyInfo.cs b/template/64bit/AddinTestTemplate/AssemblyInfo.cs new file mode 100644 index 0000000..a0edcb6 --- /dev/null +++ b/template/64bit/AddinTestTemplate/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("$projectname$")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("$registeredorganization$")] +[assembly: AssemblyProduct("$projectname$")] +[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("$guid1$")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/template/64bit/AddinTestTemplate/CakeFixture.cs b/template/64bit/AddinTestTemplate/CakeFixture.cs new file mode 100644 index 0000000..c0a8a6f --- /dev/null +++ b/template/64bit/AddinTestTemplate/CakeFixture.cs @@ -0,0 +1,24 @@ +using Cake.Core; +using Cake.Testing; +using Cake.Testing.Fixtures; + +namespace $safeprojectname$ +{ + public class CakeFixture : ToolFixture + { + public CakeFixture(bool scriptExists, string scriptName = "./build.cake") : base("cake.exe") + { + Environment = new FakeEnvironment(PlatformFamily.Linux); + if (scriptExists) FileSystem.CreateFile(scriptName); + ScriptName = scriptName; + } + + private string ScriptName { get; set; } + + protected override void RunTool() + { + var tool = new CakeTool(FileSystem, Environment, ProcessRunner, Tools); + tool.Run(ScriptName); + } + } +} diff --git a/template/64bit/AddinTestTemplate/CakeTestTemplate.ico b/template/64bit/AddinTestTemplate/CakeTestTemplate.ico new file mode 100644 index 0000000..8d67cac Binary files /dev/null and b/template/64bit/AddinTestTemplate/CakeTestTemplate.ico differ diff --git a/template/64bit/AddinTestTemplate/CakeTool.cs b/template/64bit/AddinTestTemplate/CakeTool.cs new file mode 100644 index 0000000..6ece741 --- /dev/null +++ b/template/64bit/AddinTestTemplate/CakeTool.cs @@ -0,0 +1,37 @@ +using System.Collections.Generic; +using System.IO; +using Cake.Core; +using Cake.Core.IO; +using Cake.Core.Tooling; + +namespace $safeprojectname$ +{ + public class CakeTool : Tool { + + public CakeTool(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocator tools) : base(fileSystem, environment, processRunner, tools) + { + FileSystem = fileSystem; + ProcessRunner = processRunner; + } + + private IProcessRunner ProcessRunner { get; set; } + + private IFileSystem FileSystem { get; set; } + + protected override string GetToolName() => "Cake"; + + protected override IEnumerable GetToolExecutableNames() + { + yield return "cake.exe"; + yield return "cake"; + } + + public void Run(string scriptFilePath) + { + if (!FileSystem.Exist((FilePath) scriptFilePath)) throw new FileNotFoundException(); + var args = new ProcessArgumentBuilder(); + args.Append(scriptFilePath); + ProcessRunner.Start("cake.exe", new ProcessSettings {Arguments = args}); + } + } +} \ No newline at end of file diff --git a/template/64bit/AddinTestTemplate/CakeToolSettings.cs b/template/64bit/AddinTestTemplate/CakeToolSettings.cs new file mode 100644 index 0000000..7bf81c9 --- /dev/null +++ b/template/64bit/AddinTestTemplate/CakeToolSettings.cs @@ -0,0 +1,6 @@ +using Cake.Core.Tooling; + +namespace $safeprojectname$ +{ + public class CakeToolSettings : ToolSettings {} +} \ No newline at end of file diff --git a/template/64bit/AddinTestTemplate/ProjectTemplate.csproj b/template/64bit/AddinTestTemplate/ProjectTemplate.csproj new file mode 100644 index 0000000..c2f94be --- /dev/null +++ b/template/64bit/AddinTestTemplate/ProjectTemplate.csproj @@ -0,0 +1,65 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + $guid1$ + Library + Properties + $safeprojectname$ + $safeprojectname$ + v$targetframeworkversion$ + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False + UnitTest + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + $if$ ($targetframeworkversion$ >= 3.5) + + + + $endif$ + $if$ ($targetframeworkversion$ >= 4.0) + + $endif$ + + + + + + + + + + + + + + diff --git a/template/64bit/AddinTestTemplate/Properties/AssemblyInfo.cs b/template/64bit/AddinTestTemplate/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e1475c7 --- /dev/null +++ b/template/64bit/AddinTestTemplate/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AddinTestTemplate")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("AddinTestTemplate")] +[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ab983284-d1f6-4853-9462-402f2985a141")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.2.0")] +[assembly: AssemblyFileVersion("0.1.2.0")] diff --git a/template/64bit/ModuleTemplate/AssemblyInfo.cs b/template/64bit/ModuleTemplate/AssemblyInfo.cs new file mode 100644 index 0000000..a0edcb6 --- /dev/null +++ b/template/64bit/ModuleTemplate/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("$projectname$")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("$registeredorganization$")] +[assembly: AssemblyProduct("$projectname$")] +[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("$guid1$")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/template/64bit/ModuleTemplate/ModuleTemplate.ico b/template/64bit/ModuleTemplate/ModuleTemplate.ico new file mode 100644 index 0000000..ca64934 Binary files /dev/null and b/template/64bit/ModuleTemplate/ModuleTemplate.ico differ diff --git a/template/64bit/ModuleTemplate/ModuleTemplate.vstemplate b/template/64bit/ModuleTemplate/ModuleTemplate.vstemplate new file mode 100644 index 0000000..f6728eb --- /dev/null +++ b/template/64bit/ModuleTemplate/ModuleTemplate.vstemplate @@ -0,0 +1,39 @@ + + + + + Cake Module + Basic project template for creating a new Cake module, including a sample module. + ModuleTemplate.ico + CSharp + csharp + linux + windows + macos + Cake + 4.5 + 1000 + 5e03cc59-29b1-40df-a2a4-042532a23176 + true + Cake.MyModule + true + true + + + + AssemblyInfo.cs + SampleLogModule.cs + ReverseLog.cs + + + + NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + NuGet.VisualStudio.TemplateWizard + + + + + + + \ No newline at end of file diff --git a/template/64bit/ModuleTemplate/ModuleTemplate64.csproj b/template/64bit/ModuleTemplate/ModuleTemplate64.csproj new file mode 100644 index 0000000..4c14392 --- /dev/null +++ b/template/64bit/ModuleTemplate/ModuleTemplate64.csproj @@ -0,0 +1,102 @@ + + + + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + + Debug + AnyCPU + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {85BCBED7-39BD-4670-85F7-EE36D0DA31C0} + Library + Properties + ModuleTemplate + ModuleTemplate + v4.5.2 + 512 + false + false + false + false + false + false + false + false + false + false + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + + + + + + + + + + + + + + + + + + + Cake + + + + + False + Microsoft .NET Framework 4.5.2 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + + \ No newline at end of file diff --git a/template/64bit/ModuleTemplate/ProjectTemplate.csproj b/template/64bit/ModuleTemplate/ProjectTemplate.csproj new file mode 100644 index 0000000..25ee3ab --- /dev/null +++ b/template/64bit/ModuleTemplate/ProjectTemplate.csproj @@ -0,0 +1,61 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + $guid1$ + Library + Properties + $safeprojectname$ + $safeprojectname$ + v$targetframeworkversion$ + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + $if$ ($targetframeworkversion$ >= 3.5) + + + + $endif$ + $if$ ($targetframeworkversion$ >= 4.0) + + $endif$ + + + + + + + + + + + + + diff --git a/template/64bit/ModuleTemplate/Properties/AssemblyInfo.cs b/template/64bit/ModuleTemplate/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7e81f99 --- /dev/null +++ b/template/64bit/ModuleTemplate/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ModuleTemplate")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("ModuleTemplate")] +[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("85bcbed7-39bd-4670-85f7-ee36d0da31c0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.2.0")] +[assembly: AssemblyFileVersion("0.1.2.0")] diff --git a/template/64bit/ModuleTemplate/ReverseLog.cs b/template/64bit/ModuleTemplate/ReverseLog.cs new file mode 100644 index 0000000..460dba9 --- /dev/null +++ b/template/64bit/ModuleTemplate/ReverseLog.cs @@ -0,0 +1,24 @@ +using System.Linq; +using Cake.Core; +using Cake.Core.Diagnostics; + + +namespace $safeprojectname$ +{ + public sealed class ReverseLog : ICakeLog + { + private readonly IConsole _console; + public Verbosity Verbosity { get; set; } + + public ReverseLog(IConsole console) + { + _console = console; + } + + public void Write(Verbosity verbosity, LogLevel level, string format, params object[] args) + { + var message = string.Format(format, args); + _console.WriteLine(new string(message.Reverse().ToArray())); + } + } +} diff --git a/template/64bit/ModuleTemplate/SampleLogModule.cs b/template/64bit/ModuleTemplate/SampleLogModule.cs new file mode 100644 index 0000000..a55aca3 --- /dev/null +++ b/template/64bit/ModuleTemplate/SampleLogModule.cs @@ -0,0 +1,16 @@ +using Cake.Core.Annotations; +using Cake.Core.Composition; +using Cake.Core.Diagnostics; + +[assembly: CakeModule(typeof($safeprojectname$.SampleLogModule))] + +namespace $safeprojectname$ +{ + public class SampleLogModule : ICakeModule + { + public void Register(ICakeContainerRegistrar registrar) + { + registrar.RegisterType().As().Singleton(); + } + } +}