diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..43d893b9e Binary files /dev/null and b/.DS_Store differ diff --git a/Source/Templates/Directory.Build.props b/Source/Templates/Directory.Build.props new file mode 100644 index 000000000..7ec9ecabb --- /dev/null +++ b/Source/Templates/Directory.Build.props @@ -0,0 +1,16 @@ + + + Template + netstandard2.0 + Icon.png + GtkSharp Contributors + https://github.com/GtkSharp/GtkSharp + https://github.com/GtkSharp/GtkSharp + ..\..\..\BuildOutput\$(Configuration) + true + false + content + false + NU5128 + + \ No newline at end of file diff --git a/Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.csproj b/Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.csproj new file mode 100644 index 000000000..a5fa3035f --- /dev/null +++ b/Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.csproj @@ -0,0 +1,17 @@ + + + + Gtk templates for CSharp + GtkSharp.Template.CSharp + A set of C# templates for your .Net Gtk Application. + + + + + + + + + + + \ No newline at end of file diff --git a/Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec b/Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec deleted file mode 100644 index 70efccdc2..000000000 --- a/Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - GtkSharp.Template.CSharp - 3.0.0 - Gtk templates for CSharp - https://raw.githubusercontent.com/GtkSharp/GtkSharp/develop/Source/Libs/GtkSharp/Icon.png - A set of C# templates for your .Net Core Gtk Application. - A set of C# templates for your .Net Core Gtk Application. - GtkSharp Contributors - GtkSharp Contributors - https://github.com/GtkSharp/GtkSharp - false - - gtk gtksharp gtk-sharp app dotnet new template c# csharp - - - - - diff --git a/Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.csproj b/Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.csproj new file mode 100644 index 000000000..a0ae7d1c7 --- /dev/null +++ b/Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.csproj @@ -0,0 +1,17 @@ + + + + Gtk templates for FSharp + GtkSharp.Template.FSharp + A set of F# templates for your .Net Gtk Application. + + + + + + + + + + + \ No newline at end of file diff --git a/Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.nuspec b/Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.nuspec deleted file mode 100644 index 07b237949..000000000 --- a/Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - GtkSharp.Template.FSharp - 3.0.0 - Gtk templates for FSharp - https://raw.githubusercontent.com/GtkSharp/GtkSharp/develop/Source/Libs/GtkSharp/Icon.png - A set of F# templates for your .Net Core Gtk Application. - A set of F# templates for your .Net Core Gtk Application. - GtkSharp Contributors - GtkSharp Contributors - https://github.com/GtkSharp/GtkSharp - false - - gtk gtksharp gtk-sharp app dotnet new template f# fsharp - - - - - diff --git a/Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.csproj b/Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.csproj new file mode 100644 index 000000000..7b93a56ae --- /dev/null +++ b/Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.csproj @@ -0,0 +1,17 @@ + + + + Gtk templates for Visual Basic + GtkSharp.Template.VBNet + A set of Visual Basic templates for your .Net Gtk Application. + + + + + + + + + + + \ No newline at end of file diff --git a/Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.nuspec b/Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.nuspec deleted file mode 100644 index 3470bd1f6..000000000 --- a/Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.nuspec +++ /dev/null @@ -1,20 +0,0 @@ - - - - GtkSharp.Template.VBNet - 3.0.0 - Gtk templates for VBNet - https://raw.githubusercontent.com/GtkSharp/GtkSharp/develop/Source/Libs/GtkSharp/Icon.png - A set of VB templates for your .Net Core Gtk Application. - A set of VB templates for your .Net Core Gtk Application. - GtkSharp Contributors - GtkSharp Contributors - https://github.com/GtkSharp/GtkSharp - false - - gtk gtksharp gtk-sharp app dotnet new template vbnet vb - - - - - diff --git a/build.cake b/build.cake index b43b77565..0b9c6d7c9 100644 --- a/build.cake +++ b/build.cake @@ -11,7 +11,7 @@ Settings.BuildTarget = Argument("BuildTarget", "Default"); Settings.Assembly = Argument("Assembly", ""); var configuration = Argument("Configuration", "Release"); -var msbuildsettings = new DotNetCoreMSBuildSettings(); +var msbuildsettings = new DotNetMSBuildSettings(); var list = new List(); // TASKS @@ -46,19 +46,19 @@ Task("Prepare") .Does(() => { // Build tools - DotNetCoreRestore("Source/Tools/Tools.sln"); - DotNetCoreBuild("Source/Tools/Tools.sln", new DotNetCoreBuildSettings { - Verbosity = DotNetCoreVerbosity.Minimal, + DotNetRestore("Source/Tools/Tools.sln"); + DotNetBuild("Source/Tools/Tools.sln", new DotNetBuildSettings { + Verbosity = DotNetVerbosity.Minimal, Configuration = configuration }); // Generate code and prepare libs projects foreach(var gassembly in list) gassembly.Prepare(); - DotNetCoreRestore("Source/GtkSharp.sln"); + DotNetRestore("Source/GtkSharp.sln"); // Addin - DotNetCoreRestore("Source/Addins/MonoDevelop.GtkSharp.Addin/MonoDevelop.GtkSharp.Addin.sln"); + DotNetRestore("Source/Addins/MonoDevelop.GtkSharp.Addin/MonoDevelop.GtkSharp.Addin.sln"); }); Task("Clean") @@ -83,18 +83,18 @@ Task("Build") .IsDependentOn("Prepare") .Does(() => { - var settings = new DotNetCoreBuildSettings + var settings = new DotNetBuildSettings { Configuration = configuration, MSBuildSettings = msbuildsettings }; if (list.Count == Settings.AssemblyList.Count) - DotNetCoreBuild("Source/GtkSharp.sln", settings); + DotNetBuild("Source/GtkSharp.sln", settings); else { foreach(var gassembly in list) - DotNetCoreBuild(gassembly.Csproj, settings); + DotNetBuild(gassembly.Csproj, settings); } }); @@ -102,51 +102,46 @@ Task("RunSamples") .IsDependentOn("Build") .Does(() => { - var settings = new DotNetCoreBuildSettings + var settings = new DotNetBuildSettings { Configuration = configuration, MSBuildSettings = msbuildsettings }; - DotNetCoreBuild("Source/Samples/Samples.csproj", settings); - DotNetCoreRun("Source/Samples/Samples.csproj"); + DotNetBuild("Source/Samples/Samples.csproj", settings); + DotNetRun("Source/Samples/Samples.csproj"); }); Task("PackageNuGet") .IsDependentOn("Build") .Does(() => { - var settings = new DotNetCorePackSettings + var settings = new DotNetPackSettings { MSBuildSettings = msbuildsettings, Configuration = configuration, OutputDirectory = "BuildOutput/NugetPackages", - NoBuild = true, - + NoBuild = true }; foreach(var gassembly in list) - DotNetCorePack(gassembly.Csproj, settings); + DotNetPack(gassembly.Csproj, settings); }); Task("PackageTemplates") .IsDependentOn("Init") .Does(() => { - var settings = new NuGetPackSettings + var settings = new DotNetPackSettings { - OutputDirectory = "BuildOutput/NugetPackages", - Version = Settings.Version + MSBuildSettings = msbuildsettings, + Configuration = configuration, + OutputDirectory = "BuildOutput/NugetPackages" }; - settings.BasePath = "Source/Templates/GtkSharp.Template.CSharp"; - NuGetPack("Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec", settings); - - settings.BasePath = "Source/Templates/GtkSharp.Template.FSharp"; - NuGetPack("Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.nuspec", settings); - - settings.BasePath = "Source/Templates/GtkSharp.Template.VBNet"; - NuGetPack("Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.nuspec", settings); + DotNetPack("Source/Templates/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.csproj", settings); + DotNetPack("Source/Templates/GtkSharp.Template.FSharp/GtkSharp.Template.FSharp.csproj", settings); + DotNetPack("Source/Templates/GtkSharp.Template.VBNet/GtkSharp.Template.VBNet.csproj", settings); }); // TASK TARGETS