From 904e9b9c2ebcecd915b17b113f1ff7e059d9878d Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Sun, 23 Jul 2017 18:08:46 +0200 Subject: [PATCH] add description and licence --- Licence.txt | 21 +++++++++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Licence.txt create mode 100644 README.md diff --git a/Licence.txt b/Licence.txt new file mode 100644 index 0000000..7b18739 --- /dev/null +++ b/Licence.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 nager.at + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9455e52 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +Nager.TemplateBuilder +========== + +Create automated Visual Studio Solutions and Projects + +### Features +- [x] Project references +- [x] Nuget references +- [x] Add Folders +- [x] Add Files +- [x] Choose Framework Version + +##### Example +```cs + var libraryProject = new ProjectInfo("DemoProject.Library", ProjectTemplate.WindowsClassicDesktopClassLibrary); + libraryProject.RemoveFiles = new List { new ProjectFile("Class1.cs") }; + libraryProject.DotNetFrameworkVersion = new Version(4, 6, 1); + //libraryProject.ProjectReferences = new List { otherProject }; + libraryProject.NugetPackages = new List { "log4net", "Mapster", "System.ServiceModel.NetTcp", "System.Runtime.Serialization.Xml" }; + libraryProject.Folders = new List() { "WCF", "Core", "Contract", "Model" }; + libraryProject.Files = new List(); + libraryProject.Files.Add(new ProjectFile("Controller.cs")); + libraryProject.Files.Add(new ProjectFile("SystemCore.cs", "Core") { AddNamespaces = new List { "OtherProject.Common.WCF", "OtherProject.Common.Factory" } }); + libraryProject.Files.Add(new ProjectFile("CommunicationService.cs", "WCF") { AddNamespaces = new List { "OtherProject.Common.Model", "OtherProject.Common.WCF" } }); + libraryProject.ChangeFile = new List { "[assembly: log4net.Config.XmlConfigurator(ConfigFile = \"log4net.config\", Watch = true)]" }; +``` +