├── assets ├── 1527754908892.png ├── 1528035457178.png └── 1528035498598.png ├── dotnetrsa ├── Program.cs ├── dotnetrsa.csproj ├── GenApp.cs └── ConvertApp.cs ├── LICENSE ├── dotnetrsa.sln ├── README.md ├── README_zh-cn.md └── .gitignore /assets/1527754908892.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stulzq/DotnetRSA/HEAD/assets/1527754908892.png -------------------------------------------------------------------------------- /assets/1528035457178.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stulzq/DotnetRSA/HEAD/assets/1528035457178.png -------------------------------------------------------------------------------- /assets/1528035498598.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stulzq/DotnetRSA/HEAD/assets/1528035498598.png -------------------------------------------------------------------------------- /dotnetrsa/Program.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | using System; 4 | using McMaster.Extensions.CommandLineUtils; 5 | 6 | namespace dotnetrsa 7 | { 8 | [Command(Name = "dotnetrsa", Description = "DotnetRSA is a .NET Core Global Tool.Dotnet RSA Tool can help you generate xml pkcs1, pkcs8 three kinds of format keys, and supports three types of mutual conversion.Github: https://github.com/stulzq/dotnetrsa")] 9 | [Subcommand("gen",typeof(GenApp))] 10 | [Subcommand("convert", typeof(ConvertApp))] 11 | class Program 12 | { 13 | public static int Main(string[] args) 14 | { 15 | return CommandLineApplication.Execute(args); 16 | } 17 | 18 | private int OnExecute(CommandLineApplication app) 19 | { 20 | app.ShowHelp(); 21 | return 0; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Zhiqiang Li 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dotnetrsa.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27703.2018 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetrsa", "dotnetrsa\dotnetrsa.csproj", "{0083B28D-1B38-4AB3-BDCA-FE53D3FB3439}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {0083B28D-1B38-4AB3-BDCA-FE53D3FB3439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {0083B28D-1B38-4AB3-BDCA-FE53D3FB3439}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {0083B28D-1B38-4AB3-BDCA-FE53D3FB3439}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {0083B28D-1B38-4AB3-BDCA-FE53D3FB3439}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {E7C12EB2-6392-4E38-9AC5-8835B1C6D77C} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /dotnetrsa/dotnetrsa.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.1 6 | true 7 | true 8 | 9 | true 10 | 0.3.0 11 | Dotnet RSA Tool can help you generate xml pkcs1, pkcs8 three kinds of format keys, and supports three types of mutual conversion. 12 | Copyright 2018 stulzq 13 | git 14 | rsa,convert 15 | true 16 | https://github.com/stulzq/DotnetRSA 17 | https://github.com/stulzq/DotnetRSA/blob/master/LICENSE 18 | https://github.com/stulzq/DotnetRSA.git 19 | stulzq 20 | stulzq 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DotnetRSA | [中文](README_zh-cn.md) 2 | 3 | [![NuGet][main-nuget-badge]][main-nuget] 4 | 5 | [main-nuget]: https://www.nuget.org/packages/dotnetrsa/ 6 | [main-nuget-badge]: https://img.shields.io/nuget/v/dotnetrsa.svg?style=flat-square&label=nuget 7 | 8 | DotnetRSA is a .NET Core Global Tool.Dotnet RSA Tool can help you generate xml pkcs1, pkcs8 three kinds of format keys, and supports three types of mutual conversion. 9 | 10 | >More https://github.com/natemcmaster/dotnet-tools 11 | 12 | ## Install 13 | 14 | Install dotnetrsa as a .NET Core Global tool using the following command: 15 | 16 | ``` 17 | dotnet tool install -g dotnetrsa 18 | ``` 19 | 20 | You have it now available on your command line: 21 | 22 | ``` 23 | dotnetrsa --help 24 | ``` 25 | 26 | *Note: to use CLI tool command you must have .NET Core 2.1 or higher.* 27 | 28 | ## Usage 29 | 30 | ``` 31 | Usage: dotnetrsa [options] [command] 32 | 33 | Options: 34 | -?|-h|--help Show help information 35 | 36 | Commands: 37 | convert Convert you keys to xml pkcs1, pkcs8 format. 38 | gen Generate xml, pkcs1, pkcs8 keys. 39 | 40 | Run 'dotnetrsa [command] --help' for more information about a command. 41 | ``` 42 | ### • `convert` command 43 | 44 | This command can convert you keys to xml pkcs1, pkcs8 format.such as xml->pkcs1, xml->pkcs8. 45 | 46 | ```` 47 | Convert you keys to xml pkcs1, pkcs8 format. 48 | 49 | Usage: dotnetrsa convert [arguments] [options] 50 | 51 | Arguments: 52 | KeyFilePath Required.Secret key file path. 53 | 54 | Options: 55 | -h|--help Show help information 56 | -f|--from Required.Source format.The value must be xml, pkcs1,pkcs8. 57 | -t|--to Required.Target format.The value must be xml, pkcs1,pkcs8. 58 | -k Required.Key type.The value must be pri, pub.'pub' represents the public key. 59 | -o|--output File output path.If you do not specify it will be output in the current directory. 60 | ```` 61 | 62 | ### • `gen` command 63 | 64 | This command can generate xml, pkcs1, pkcs8 keys. 65 | 66 | ```` 67 | Generate xml, pkcs1, pkcs8 keys. 68 | 69 | Usage: dotnetrsa gen [options] 70 | 71 | Options: 72 | -h|--help Show help information 73 | -f|--format Required.Gen keys's format.The value must be xml, pkcs1 ,pkcs8. 74 | -s|--size Key Size. 75 | --pem Pem Format. true of false. 76 | -o|--output File output path.If you do not specify it will be output in the current directory. 77 | ```` 78 | 79 | The DotnetRSA build and conversion key uses the open source project RSAUtil: https://github.com/stulzq/RSAUtil 80 | -------------------------------------------------------------------------------- /README_zh-cn.md: -------------------------------------------------------------------------------- 1 | # 开源工具 DotnetRSA 快速生成和转换RSA秘钥 2 | 3 | ## 一.简介 4 | 5 | DotnetRSA 是一个利用 .NET Core 2.1 开发的 .NET Global Tool,是可以想npm全局安装一样,安装在你的系统中,只需敲一行命令便可以快速生成RSA加密算法所需的秘钥,目前支持三种格式的秘钥,分别为:xml、pkcs1、pkcs8。它还支持三种格式秘钥的想换转换。 6 | 7 | ## 二.安装 8 | 9 | > 使用 DotnetRSA 需要你的系统具备.NET Core >=2.1 的环境,若没有请访问官网,按照提示进行安装:https://www.microsoft.com/net/learn/get-started/windows 10 | 11 | 输入一句命令便可以安装: 12 | 13 | ````shell 14 | dotnet tool install -g dotnetrsa 15 | ```` 16 | 17 | 安装成功会有如下提示: 18 | 19 | ![1528035457178](assets/1528035457178.png) 20 | 21 | 同时输入命令 `dotnetrsa` 会出现如下提示: 22 | 23 | ![1528035498598](assets/1528035498598.png) 24 | 25 | ## 三.使用 26 | 27 | ### 1.生成秘钥 28 | 29 | 生成秘钥使用命令 `dontetrsa gen`,加入 `-h` 获取帮助: 30 | 31 | ````shell 32 | Generate xml, pkcs1, pkcs8 keys. 33 | 34 | Usage: dotnetrsa gen [options] 35 | 36 | Options: 37 | -h|--help Show help information 38 | -f|--format Required.Gen keys's format.The value must be xml, pkcs1 ,pkcs8. 39 | -s|--size Key Size.Default 2048. 40 | --pem Pem Format. true of false.Default false. 41 | -o|--output File output path.If you do not specify it will be output in the current directory. 42 | ```` 43 | 44 | -f 或者 --format:指需要生成的格式,可以为 xml、pkcs1、pkcs8 45 | 46 | -s 或者 --size :指需要生成的秘钥长度,默认为2048 47 | 48 | --pem :只是否带有pem格式,值为 true 或者 false,默认为 false 49 | 50 | -o 或者 --output :指秘钥保存的路径,默认保存在当前文件夹 51 | 52 | 生成一个长度为2048的xml格式的秘钥示例: 53 | 54 | ````shell 55 | dotnetrsa gen -s 2048 -f xml 56 | ```` 57 | 58 | ### 2.转换秘钥 59 | 60 | 转换秘钥使用命令 `dontetrsa convert ,加入 `-h` 获取帮助: 61 | 62 | ````shell 63 | Usage: dotnetrsa convert [arguments] [options] 64 | 65 | Arguments: 66 | KeyFilePath Required.Secret key file path. 67 | 68 | Options: 69 | -h|--help Show help information 70 | -f|--from Required.Source format.The value must be xml, pkcs1,pkcs8. 71 | -t|--to Required.Target format.The value must be xml, pkcs1,pkcs8. 72 | -k Required.Key type.The value must be pri, pub.'pub' represents the public key. 73 | -o|--output File output path.If you do not specify it will be output in the current directory. 74 | ```` 75 | 76 | KeyFilePath:指定被转换的秘钥的路径 77 | 78 | -f 或者 --from :该字段为必须指定,指被转换的秘钥的格式,值只能为 xml、pkcs1、pkcs8 79 | 80 | -t 或者 --to:该字段为必须指定,指需要转换的目标格式,值只能为 xml、pkcs1、pkcs8 81 | 82 | -k :指被转换的秘钥的类型,公钥或者私钥,值只能为 pri 或者 pub ,分别代表公钥和私钥 83 | 84 | -o :转换的秘钥的输出路径,默认为当前目录 85 | 86 | 将一个格式为xml的私钥转换为pkcs1,示例: 87 | 88 | ````shell 89 | dotnetrsa convert c:\xml_private.key -f xml -t pkcs1 -k pri 90 | ```` 91 | 92 | ## 四.参考资料 93 | 94 | DotnetRSA 生成和转换秘钥使用了开源项目 RSAUtil :https://github.com/stulzq/RSAUtil 95 | 96 | DotnetRSA 的开源地址:https://github.com/stulzq/dotnetrsa -------------------------------------------------------------------------------- /dotnetrsa/GenApp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.IO; 5 | using McMaster.Extensions.CommandLineUtils; 6 | using XC.RSAUtil; 7 | 8 | namespace dotnetrsa 9 | { 10 | [Command(Name = "dotnetrsa gen", Description = "Generate xml, pkcs1, pkcs8 keys.")] 11 | [HelpOption("-h|--help")] 12 | public class GenApp 13 | { 14 | [Option("-f|--format", Description = "Required.Gen keys's format.The value must be xml, pkcs1 ,pkcs8.")] 15 | [Required] 16 | [AllowedValues("xml", "pkcs1", "pkcs8", IgnoreCase = false)] 17 | public string Format { get; } 18 | 19 | [Option("-s|--size ", Description = "Key Size.Default 2048.")] 20 | public int KeySize { get; } = 2048; 21 | 22 | [Option("--pem", Description = "Pem Format. true of false.Default false.")] 23 | [AllowedValues("true", "false", IgnoreCase = true)] 24 | public string PemFormat { get; } = "false"; 25 | 26 | [Option("-o|--output ", Description = 27 | "File output path.If you do not specify it will be output in the current directory.")] 28 | public string Output { get; } = Environment.CurrentDirectory; 29 | 30 | private int OnExecute(CommandLineApplication app) 31 | { 32 | if (app.Options.Count == 1 && app.Options[0].ShortName == "h") 33 | { 34 | app.ShowHelp(); 35 | } 36 | 37 | try 38 | { 39 | bool pemFormat = bool.Parse(PemFormat); 40 | string publicKey = string.Empty; 41 | string privateKey = string.Empty; 42 | List keyList; 43 | 44 | switch (Format) 45 | { 46 | case "xml": 47 | keyList = RsaKeyGenerator.XmlKey(KeySize); 48 | privateKey = keyList[0]; 49 | publicKey = keyList[1]; 50 | break; 51 | case "pkcs1": 52 | keyList = RsaKeyGenerator.Pkcs1Key(KeySize, pemFormat); 53 | privateKey = keyList[0]; 54 | publicKey = keyList[1]; 55 | break; 56 | case "pkcs8": 57 | keyList = RsaKeyGenerator.Pkcs8Key(KeySize, pemFormat); 58 | privateKey = keyList[0]; 59 | publicKey = keyList[1]; 60 | break; 61 | } 62 | 63 | if (!Directory.Exists(Output)) 64 | { 65 | Directory.CreateDirectory(Output); 66 | } 67 | 68 | File.WriteAllText(Path.Combine(Output, "public.key"), publicKey); 69 | File.WriteAllText(Path.Combine(Output, "private.key"), privateKey); 70 | 71 | app.Out.WriteLine($"Process success.File saved in {Output}."); 72 | 73 | } 74 | catch (Exception e) 75 | { 76 | app.Out.WriteLine($"Process error.Detail message:{e.Message}"); 77 | return 1; 78 | } 79 | 80 | return 0; 81 | } 82 | } 83 | } -------------------------------------------------------------------------------- /dotnetrsa/ConvertApp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.IO; 4 | using McMaster.Extensions.CommandLineUtils; 5 | using XC.RSAUtil; 6 | 7 | namespace dotnetrsa 8 | { 9 | [Command(Name = "dotnetrsa convert", Description = "Convert you keys to xml pkcs1, pkcs8 format.")] 10 | [HelpOption("-h|--help")] 11 | public class ConvertApp 12 | { 13 | [Option("-f|--from ",Description = "Required.Source format.The value must be xml, pkcs1,pkcs8.")] 14 | [Required] 15 | [AllowedValues("xml", "pkcs1", "pkcs8", IgnoreCase = false)] 16 | public string SourceFormat { get; } 17 | 18 | [Option("-t|--to ", Description = "Required.Target format.The value must be xml, pkcs1,pkcs8.")] 19 | [Required] 20 | [AllowedValues("xml", "pkcs1", "pkcs8", IgnoreCase = false)] 21 | public string TargetFormat { get; } 22 | 23 | [Option("-k", Description = "Required.Key type.The value must be pri, pub.'pub' represents the public key.")] 24 | [Required] 25 | [AllowedValues("pub", "pri", IgnoreCase = false)] 26 | public string KeyType { get; } 27 | 28 | [Argument(0,"KeyFilePath", "Required.Secret key file path.")] 29 | [Required] 30 | [FileExists] 31 | public string KeyFilePath { get; } 32 | 33 | [Option("-o|--output ", Description = 34 | "File output path.If you do not specify it will be output in the current directory.")] 35 | public string Output { get; } = Environment.CurrentDirectory; 36 | private int OnExecute(CommandLineApplication app) 37 | { 38 | if (app.Options.Count == 1 && app.Options[0].ShortName=="h") 39 | { 40 | app.ShowHelp(); 41 | return 0; 42 | } 43 | 44 | if (KeyType == "pub" && ((SourceFormat == "pkcs1" && TargetFormat == "pkcs8") || 45 | (SourceFormat == "pkcs8" && TargetFormat == "pkcs1"))) 46 | { 47 | app.Out.WriteLine("This public key does not need to be converted."); 48 | return 1; 49 | } 50 | 51 | if (SourceFormat == TargetFormat) 52 | { 53 | app.Out.WriteLine("Target format can not equal Source format."); 54 | return 1; 55 | } 56 | 57 | try 58 | { 59 | string result = string.Empty; 60 | string keyContent = File.ReadAllText(KeyFilePath); 61 | 62 | if (KeyType == "pri") 63 | { 64 | switch ($"{SourceFormat}->{TargetFormat}") 65 | { 66 | case "xml->pkcs1": 67 | result = RsaKeyConvert.PrivateKeyXmlToPkcs1(keyContent); 68 | break; 69 | case "xml->pkcs8": 70 | result = RsaKeyConvert.PrivateKeyXmlToPkcs8(keyContent); 71 | break; 72 | case "pkcs1->xml": 73 | result = RsaKeyConvert.PrivateKeyPkcs1ToXml(keyContent); 74 | break; 75 | case "pkcs1->pkcs8": 76 | result = RsaKeyConvert.PrivateKeyPkcs1ToPkcs8(keyContent); 77 | break; 78 | case "pkcs8->xml": 79 | result = RsaKeyConvert.PrivateKeyPkcs8ToXml(keyContent); 80 | break; 81 | case "pkcs8->pkcs1": 82 | result = RsaKeyConvert.PrivateKeyPkcs8ToPkcs1(keyContent); 83 | break; 84 | } 85 | } 86 | else 87 | { 88 | result = SourceFormat == "xml" ? RsaKeyConvert.PublicKeyXmlToPem(keyContent) : RsaKeyConvert.PublicKeyPemToXml(keyContent); 89 | } 90 | 91 | if (!Directory.Exists(Output)) 92 | { 93 | Directory.CreateDirectory(Output); 94 | } 95 | string fileName = $"{new FileInfo(KeyFilePath).Name}.new.key"; 96 | string savePath = Path.Combine(Output, fileName); 97 | File.WriteAllText(savePath, result); 98 | app.Out.WriteLine($"Process success.File saved in {savePath}."); 99 | } 100 | catch (Exception e) 101 | { 102 | app.Out.WriteLine($"Process error.Detail message:{e.Message}"); 103 | return 1; 104 | } 105 | 106 | return 0; 107 | } 108 | } 109 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015/2017 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # Visual Studio 2017 auto generated files 33 | Generated\ Files/ 34 | 35 | # MSTest test Results 36 | [Tt]est[Rr]esult*/ 37 | [Bb]uild[Ll]og.* 38 | 39 | # NUNIT 40 | *.VisualState.xml 41 | TestResult.xml 42 | 43 | # Build Results of an ATL Project 44 | [Dd]ebugPS/ 45 | [Rr]eleasePS/ 46 | dlldata.c 47 | 48 | # Benchmark Results 49 | BenchmarkDotNet.Artifacts/ 50 | 51 | # .NET Core 52 | project.lock.json 53 | project.fragment.lock.json 54 | artifacts/ 55 | **/Properties/launchSettings.json 56 | 57 | # StyleCop 58 | StyleCopReport.xml 59 | 60 | # Files built by Visual Studio 61 | *_i.c 62 | *_p.c 63 | *_i.h 64 | *.ilk 65 | *.meta 66 | *.obj 67 | *.iobj 68 | *.pch 69 | *.pdb 70 | *.ipdb 71 | *.pgc 72 | *.pgd 73 | *.rsp 74 | *.sbr 75 | *.tlb 76 | *.tli 77 | *.tlh 78 | *.tmp 79 | *.tmp_proj 80 | *.log 81 | *.vspscc 82 | *.vssscc 83 | .builds 84 | *.pidb 85 | *.svclog 86 | *.scc 87 | 88 | # Chutzpah Test files 89 | _Chutzpah* 90 | 91 | # Visual C++ cache files 92 | ipch/ 93 | *.aps 94 | *.ncb 95 | *.opendb 96 | *.opensdf 97 | *.sdf 98 | *.cachefile 99 | *.VC.db 100 | *.VC.VC.opendb 101 | 102 | # Visual Studio profiler 103 | *.psess 104 | *.vsp 105 | *.vspx 106 | *.sap 107 | 108 | # Visual Studio Trace Files 109 | *.e2e 110 | 111 | # TFS 2012 Local Workspace 112 | $tf/ 113 | 114 | # Guidance Automation Toolkit 115 | *.gpState 116 | 117 | # ReSharper is a .NET coding add-in 118 | _ReSharper*/ 119 | *.[Rr]e[Ss]harper 120 | *.DotSettings.user 121 | 122 | # JustCode is a .NET coding add-in 123 | .JustCode 124 | 125 | # TeamCity is a build add-in 126 | _TeamCity* 127 | 128 | # DotCover is a Code Coverage Tool 129 | *.dotCover 130 | 131 | # AxoCover is a Code Coverage Tool 132 | .axoCover/* 133 | !.axoCover/settings.json 134 | 135 | # Visual Studio code coverage results 136 | *.coverage 137 | *.coveragexml 138 | 139 | # NCrunch 140 | _NCrunch_* 141 | .*crunch*.local.xml 142 | nCrunchTemp_* 143 | 144 | # MightyMoose 145 | *.mm.* 146 | AutoTest.Net/ 147 | 148 | # Web workbench (sass) 149 | .sass-cache/ 150 | 151 | # Installshield output folder 152 | [Ee]xpress/ 153 | 154 | # DocProject is a documentation generator add-in 155 | DocProject/buildhelp/ 156 | DocProject/Help/*.HxT 157 | DocProject/Help/*.HxC 158 | DocProject/Help/*.hhc 159 | DocProject/Help/*.hhk 160 | DocProject/Help/*.hhp 161 | DocProject/Help/Html2 162 | DocProject/Help/html 163 | 164 | # Click-Once directory 165 | publish/ 166 | 167 | # Publish Web Output 168 | *.[Pp]ublish.xml 169 | *.azurePubxml 170 | # Note: Comment the next line if you want to checkin your web deploy settings, 171 | # but database connection strings (with potential passwords) will be unencrypted 172 | *.pubxml 173 | *.publishproj 174 | 175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 176 | # checkin your Azure Web App publish settings, but sensitive information contained 177 | # in these scripts will be unencrypted 178 | PublishScripts/ 179 | 180 | # NuGet Packages 181 | *.nupkg 182 | # The packages folder can be ignored because of Package Restore 183 | **/[Pp]ackages/* 184 | # except build/, which is used as an MSBuild target. 185 | !**/[Pp]ackages/build/ 186 | # Uncomment if necessary however generally it will be regenerated when needed 187 | #!**/[Pp]ackages/repositories.config 188 | # NuGet v3's project.json files produces more ignorable files 189 | *.nuget.props 190 | *.nuget.targets 191 | 192 | # Microsoft Azure Build Output 193 | csx/ 194 | *.build.csdef 195 | 196 | # Microsoft Azure Emulator 197 | ecf/ 198 | rcf/ 199 | 200 | # Windows Store app package directories and files 201 | AppPackages/ 202 | BundleArtifacts/ 203 | Package.StoreAssociation.xml 204 | _pkginfo.txt 205 | *.appx 206 | 207 | # Visual Studio cache files 208 | # files ending in .cache can be ignored 209 | *.[Cc]ache 210 | # but keep track of directories ending in .cache 211 | !*.[Cc]ache/ 212 | 213 | # Others 214 | ClientBin/ 215 | ~$* 216 | *~ 217 | *.dbmdl 218 | *.dbproj.schemaview 219 | *.jfm 220 | *.pfx 221 | *.publishsettings 222 | orleans.codegen.cs 223 | 224 | # Including strong name files can present a security risk 225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 226 | #*.snk 227 | 228 | # Since there are multiple workflows, uncomment next line to ignore bower_components 229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 230 | #bower_components/ 231 | 232 | # RIA/Silverlight projects 233 | Generated_Code/ 234 | 235 | # Backup & report files from converting an old project file 236 | # to a newer Visual Studio version. Backup files are not needed, 237 | # because we have git ;-) 238 | _UpgradeReport_Files/ 239 | Backup*/ 240 | UpgradeLog*.XML 241 | UpgradeLog*.htm 242 | ServiceFabricBackup/ 243 | *.rptproj.bak 244 | 245 | # SQL Server files 246 | *.mdf 247 | *.ldf 248 | *.ndf 249 | 250 | # Business Intelligence projects 251 | *.rdl.data 252 | *.bim.layout 253 | *.bim_*.settings 254 | *.rptproj.rsuser 255 | 256 | # Microsoft Fakes 257 | FakesAssemblies/ 258 | 259 | # GhostDoc plugin setting file 260 | *.GhostDoc.xml 261 | 262 | # Node.js Tools for Visual Studio 263 | .ntvs_analysis.dat 264 | node_modules/ 265 | 266 | # Visual Studio 6 build log 267 | *.plg 268 | 269 | # Visual Studio 6 workspace options file 270 | *.opt 271 | 272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 273 | *.vbw 274 | 275 | # Visual Studio LightSwitch build output 276 | **/*.HTMLClient/GeneratedArtifacts 277 | **/*.DesktopClient/GeneratedArtifacts 278 | **/*.DesktopClient/ModelManifest.xml 279 | **/*.Server/GeneratedArtifacts 280 | **/*.Server/ModelManifest.xml 281 | _Pvt_Extensions 282 | 283 | # Paket dependency manager 284 | .paket/paket.exe 285 | paket-files/ 286 | 287 | # FAKE - F# Make 288 | .fake/ 289 | 290 | # JetBrains Rider 291 | .idea/ 292 | *.sln.iml 293 | 294 | # CodeRush 295 | .cr/ 296 | 297 | # Python Tools for Visual Studio (PTVS) 298 | __pycache__/ 299 | *.pyc 300 | 301 | # Cake - Uncomment if you are using it 302 | # tools/** 303 | # !tools/packages.config 304 | 305 | # Tabs Studio 306 | *.tss 307 | 308 | # Telerik's JustMock configuration file 309 | *.jmconfig 310 | 311 | # BizTalk build output 312 | *.btp.cs 313 | *.btm.cs 314 | *.odx.cs 315 | *.xsd.cs 316 | 317 | # OpenCover UI analysis results 318 | OpenCover/ 319 | 320 | # Azure Stream Analytics local run output 321 | ASALocalRun/ 322 | 323 | # MSBuild Binary and Structured Log 324 | *.binlog 325 | 326 | # NVidia Nsight GPU debugger configuration file 327 | *.nvuser 328 | 329 | # MFractors (Xamarin productivity tool) working folder 330 | .mfractor/ 331 | --------------------------------------------------------------------------------