├── Properties └── AssemblyInfo.cs ├── .github └── workflows │ └── build-release.yml ├── README.md ├── LICENSE ├── WslShortcut.sln ├── CommandLine.cs ├── WslShortcut.csproj ├── Win32.cs ├── Program.cs ├── WslPath.cs └── .gitignore /Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyTitle("WSL Shortcut")] 4 | [assembly: AssemblyProduct("WSL Shortcut")] 5 | [assembly: AssemblyCopyright("Hanabishi © 2020")] 6 | [assembly: AssemblyVersion("1.0.1")] 7 | -------------------------------------------------------------------------------- /.github/workflows/build-release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - "v*" 7 | 8 | jobs: 9 | build: 10 | runs-on: windows-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v2 14 | 15 | - name: Setup MSBuild.exe 16 | uses: microsoft/setup-msbuild@v1.0.0 17 | 18 | - name: Build with MSBuild 19 | run: msbuild WslShortcut.sln -p:Configuration=Release 20 | 21 | - name: Upload 22 | uses: marvinpinto/action-automatic-releases@latest 23 | with: 24 | repo_token: "${{ secrets.GITHUB_TOKEN }}" 25 | prerelease: false 26 | files: | 27 | ./bin/WslShortcut.exe 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WSL Shortcut 2 | 3 | Run **WSL** commands directly in Windows. 4 | 5 | Also allows to use **WSL** `git`/`node`/etc. in **Visual Studio Code** or another software. 6 | 7 | Combines functionality of utilities like [`wslgit`](//github.com/andy-5/wslgit), [`wslnodejs`](//github.com/snooopcatt/wslnodejs), [`wslexec`](//github.com/int128/wslexec) etc. with simpler usage. 8 | 9 | ### [Releases](../../releases) 10 | 11 | ### Usage 12 | 13 | - Rename `WslShortcut.exe` to desired command name, e.g. `git.exe`, `node.exe`, `ls.exe` etc. You can make a renamed copy for every command you want. 14 | - Place this executable(s) to some **PATH** directory (`Windows`, `System32` or make your own). 15 | - Now you can run it directly in **cmd** (e.g. `git status`, `node -v`, `ls -la`), **VS Code** should find `git`/`node` automatically. 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Hanabishi 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 | -------------------------------------------------------------------------------- /WslShortcut.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.29920.165 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WslShortcut", "WslShortcut.csproj", "{5CB6322B-A621-4661-893D-198C6C6054D7}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|X64 = Debug|X64 11 | Release|X64 = Release|X64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {5CB6322B-A621-4661-893D-198C6C6054D7}.Debug|X64.ActiveCfg = Debug|X64 15 | {5CB6322B-A621-4661-893D-198C6C6054D7}.Debug|X64.Build.0 = Debug|X64 16 | {5CB6322B-A621-4661-893D-198C6C6054D7}.Release|X64.ActiveCfg = Release|X64 17 | {5CB6322B-A621-4661-893D-198C6C6054D7}.Release|X64.Build.0 = Release|X64 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {4A9C2D43-9BC6-4FE9-8380-CAE66C3A40F7} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /CommandLine.cs: -------------------------------------------------------------------------------- 1 | static class CommandLine { 2 | public static (int start, int length, int next, bool quot) ExtractArg(string commandLine, int start = 0) { 3 | var cmdLength = commandLine.Length; 4 | for(int i = start; i < cmdLength; i++) { 5 | var c = commandLine[i]; 6 | if(c <= 0x20) 7 | continue; 8 | 9 | var i1 = i + 1; 10 | if(c == '"') { 11 | if(i1 < cmdLength) { 12 | var ei = commandLine.IndexOf('"', i1); 13 | return (ei > -1) ? (i1, ei - i1, ei + 1, true) : (i1, cmdLength - i1, cmdLength, true); 14 | } 15 | break; 16 | } else { 17 | if(i1 < cmdLength) { 18 | var ei = commandLine.IndexOf(' ', i1); 19 | return (ei > -1) ? (i, ei - i, ei, false) : (i, cmdLength - i, cmdLength, false); 20 | } 21 | return (i, 1, cmdLength, false); 22 | } 23 | } 24 | return (0, 0, 0, false); 25 | } 26 | 27 | public static (int start, int length) ExtractCommandName(string commandLine, int start, int length) { 28 | var ei = start + length - 1; 29 | var b = true; 30 | for(int i = ei; i >= start; i--) { 31 | var c = commandLine[i]; 32 | if((c == '\\') || (c == '/') || (c == ':')) { 33 | return (i + 1, ei - i); 34 | } else if(b && (c == '.')) { 35 | b = false; 36 | ei = i - 1; 37 | } 38 | } 39 | return (start, ei - start + 1); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /WslShortcut.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Release 6 | X64 7 | {5CB6322B-A621-4661-893D-198C6C6054D7} 8 | Exe 9 | WslShortcut 10 | WslShortcut 11 | v4.8 12 | 512 13 | true 14 | false 15 | 8.0 16 | 17 | 18 | x64 19 | true 20 | full 21 | false 22 | bin\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | false 27 | 28 | 29 | x64 30 | none 31 | true 32 | bin\ 33 | 34 | 35 | prompt 36 | 4 37 | false 38 | true 39 | 40 | 41 | Program 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Win32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | static class Win32 { 5 | const string kernel32 = "kernel32.dll"; 6 | 7 | [DllImport(kernel32, SetLastError = true)] 8 | public static extern IntPtr GetStdHandle(int nStdHandle); 9 | 10 | [DllImport(kernel32, SetLastError = true)] 11 | public static extern bool CloseHandle(IntPtr hObject); 12 | 13 | [DllImport(kernel32, SetLastError = true)] 14 | public static extern bool CreatePipe(out IntPtr hReadPipe, out IntPtr hWritePipe, SECURITY_ATTRIBUTES lpPipeAttributes, int nSize); 15 | 16 | [DllImport(kernel32, SetLastError = true)] 17 | public static extern bool SetHandleInformation(IntPtr hObject, int dwMask, int dwFlags); 18 | 19 | [DllImport(kernel32, CharSet = CharSet.Unicode, SetLastError = true)] 20 | public unsafe static extern bool CreateProcessW(string lpApplicationName, string lpCommandLine, void* lpProcessAttributes, void* lpThreadAttributes, bool bInheritHandles, int dwCreationFlags, void* lpEnvironment, string lpCurrentDirectory, STARTUPINFO lpStartupInfo, out PROCESS_INFORMATION lpProcessInformation); 21 | 22 | [DllImport(kernel32, SetLastError = true)] 23 | public unsafe static extern bool ReadFile(IntPtr hFile, byte* lpBuffer, int nNumberOfBytesToRead, out int lpNumberOfBytesRead, void* lpOverlapped); 24 | 25 | [DllImport(kernel32, SetLastError = true)] 26 | public unsafe static extern bool WriteFile(IntPtr hFile, byte* lpBuffer, int nNumberOfBytesToWrite, int* lpNumberOfBytesWritten, void* lpOverlapped); 27 | 28 | [DllImport(kernel32, SetLastError = true)] 29 | public static extern bool SetConsoleCP(uint wCodePageID); 30 | 31 | [DllImport(kernel32, SetLastError = true)] 32 | public static extern bool SetConsoleOutputCP(uint wCodePageID); 33 | 34 | [DllImport(kernel32, SetLastError = true)] 35 | public static extern int WaitForSingleObject(IntPtr hHandle, int dwMilliseconds); 36 | 37 | [DllImport(kernel32, SetLastError = true)] 38 | public static extern bool GetExitCodeProcess(IntPtr hProcess, out int lpExitCode); 39 | 40 | [StructLayout(LayoutKind.Sequential)] 41 | public struct SECURITY_ATTRIBUTES { 42 | public int nLength; 43 | public IntPtr lpSecurityDescriptor; 44 | public bool bInheritHandle; 45 | } 46 | 47 | [StructLayout(LayoutKind.Sequential)] 48 | public struct STARTUPINFO { 49 | public int cb; 50 | public IntPtr lpReserved, lpDesktop, lpTitle; 51 | public int dwX, dwY, dwXSize, dwYSize, dwXCountChars, dwYCountChars, dwFillAttribute, dwFlags; 52 | public short wShowWindow, cbReserved2; 53 | public IntPtr lpReserved2, hStdInput, hStdOutput, hStdError; 54 | } 55 | 56 | [StructLayout(LayoutKind.Sequential)] 57 | public struct PROCESS_INFORMATION { 58 | public IntPtr hProcess, hThread; 59 | public int dwProcessId, dwThreadId; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using static Win32; 4 | 5 | static class Program { 6 | // Set buffer to 512K as temporal workaround of https://github.com/microsoft/WSL/issues/5063 7 | public const int BufferSize = 512 * 1024; 8 | 9 | static void Main() { 10 | SetConsoleCP(65001); 11 | SetConsoleOutputCP(65001); 12 | 13 | var cmd = Environment.CommandLine; 14 | 15 | // Extract command name 16 | var arg = CommandLine.ExtractArg(cmd); 17 | if(!(arg.length > 0)) 18 | return; 19 | 20 | var command = CommandLine.ExtractCommandName(cmd, arg.start, arg.length); 21 | if(!(command.length > 0)) 22 | return; 23 | 24 | var builder = new StringBuilder(cmd.Length); 25 | builder.Append("wsl.exe -e "); 26 | builder.Append(cmd, command.start, command.length); 27 | 28 | // Extract arguments and convert paths 29 | while((arg = CommandLine.ExtractArg(cmd, arg.next)).next > 0) { 30 | if(arg.length == 0) 31 | continue; 32 | 33 | builder.Append(' '); 34 | 35 | if(arg.quot) 36 | builder.Append('"'); 37 | 38 | if(!WslPath.PathToWsl(cmd, arg.start, arg.length, builder)) 39 | builder.Append(cmd, arg.start, arg.length); 40 | 41 | if(arg.quot) 42 | builder.Append('"'); 43 | } 44 | 45 | PROCESS_INFORMATION proc; 46 | 47 | // Check for interactive mode 48 | if(Console.IsOutputRedirected) { 49 | // Create pipe 50 | var pipe = OpenPipe(); 51 | if(!pipe.ok) 52 | throw new Exception("Failed to create pipe."); 53 | 54 | // Do not inherit reading end of pipe 55 | if(!SetHandleInformation(pipe.hRead, 1, 0)) 56 | throw new Exception("Failed to set up pipe."); 57 | 58 | // Run WSL command 59 | proc = CreateProcess(builder.ToString(), pipe.hWrite); 60 | 61 | // Close own writing end of pipe to avoid ReadFile self locking 62 | if(!CloseHandle(pipe.hWrite)) 63 | throw new Exception("Failed to close own writing handle."); 64 | 65 | WslPath.ProcessOutput(pipe.hRead, GetStdHandle(-11)); 66 | } else { 67 | // Run WSL command without processing 68 | proc = CreateProcess(builder.ToString(), IntPtr.Zero); 69 | } 70 | 71 | WaitForSingleObject(proc.hProcess, -1); 72 | 73 | GetExitCodeProcess(proc.hProcess, out var exitCode); 74 | Environment.ExitCode = exitCode; 75 | } 76 | 77 | public unsafe static (bool ok, IntPtr hRead, IntPtr hWrite) OpenPipe() { 78 | var secAttrs = new SECURITY_ATTRIBUTES { 79 | nLength = sizeof(SECURITY_ATTRIBUTES), 80 | bInheritHandle = true, 81 | }; 82 | return (CreatePipe(out var hReadPipe, out var hWritePipe, secAttrs, BufferSize), hReadPipe, hWritePipe); 83 | } 84 | 85 | public unsafe static PROCESS_INFORMATION CreateProcess(string commandLine, IntPtr hWritePipe) { 86 | var startupInfo = (hWritePipe == IntPtr.Zero) ? new STARTUPINFO() : 87 | new STARTUPINFO { 88 | cb = sizeof(STARTUPINFO), 89 | hStdInput = GetStdHandle(-10), 90 | hStdOutput = hWritePipe, 91 | hStdError = GetStdHandle(-12), 92 | dwFlags = 0x100, 93 | }; 94 | 95 | if(!CreateProcessW(null, commandLine, null, null, true, 0, null, null, startupInfo, out var procInfo)) 96 | throw new Exception("Failed to launch WSL."); 97 | 98 | return procInfo; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /WslPath.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.CompilerServices; 3 | using System.Text; 4 | 5 | static class WslPath { 6 | const string mntPath = "/mnt/"; 7 | 8 | public static bool PathToWsl(string str, int startIndex, int charCount, StringBuilder builder) { 9 | // Detect absolute path 10 | if(charCount < 2) 11 | return false; 12 | 13 | if(str[startIndex + 1] != ':') 14 | return false; 15 | 16 | var drive = str[startIndex]; 17 | if(!CheckDriveLetter(drive, true, true)) 18 | return false; 19 | 20 | var count = charCount - 2; 21 | if(count > 0) { 22 | // Absolute path 23 | var index = startIndex + 2; 24 | var chr = str[index]; 25 | if(!((chr == '\\') || (chr == '/'))) 26 | return false; 27 | 28 | builder.Append(mntPath); 29 | builder.Append(ToLower(drive)); 30 | 31 | var len = builder.Length; 32 | builder.Append(str, index, count); 33 | builder.Replace('\\', '/', len, count); 34 | } else { 35 | // Drive only 36 | builder.Append(mntPath); 37 | builder.Append(ToLower(drive)); 38 | } 39 | 40 | return true; 41 | } 42 | 43 | public unsafe static void ProcessOutput(IntPtr input, IntPtr output) { 44 | // Dangerous zone 45 | var buffer = stackalloc byte[Program.BufferSize]; 46 | 47 | // First read is explicit to detect possible path output 48 | if(!(Win32.ReadFile(input, buffer, Program.BufferSize, out var count, null) && (count > 0))) 49 | return; 50 | 51 | var mntLen = mntPath.Length; 52 | var checkLen = mntLen + 1; 53 | char drive; 54 | 55 | // Detect plain path 56 | if((count >= checkLen) && CheckMntPath(buffer) && CheckDriveLetter(drive = (char)buffer[mntLen], false, true)) { 57 | // Very weird way to write 2 bytes 58 | short s; 59 | var sp = (byte*)&s; 60 | sp[0] = (byte)ToUpper(drive); 61 | sp[1] = (byte)':'; 62 | Win32.WriteFile(output, sp, 2, null, null); 63 | 64 | if(count > checkLen) { 65 | // Seek for EOL and replace slashes along the way 66 | byte b; 67 | for(int i = checkLen; (i < count) && ((b = buffer[i]) != '\n'); i++) 68 | if(b == '/') 69 | buffer[i] = (byte)'\\'; 70 | 71 | // Write remaining path 72 | Win32.WriteFile(output, buffer + checkLen, count - checkLen, null, null); 73 | } 74 | } else { 75 | Win32.WriteFile(output, buffer, count, null, null); 76 | } 77 | 78 | // Pump all the rest output 79 | while(Win32.ReadFile(input, buffer, Program.BufferSize, out count, null) && (count > 0)) 80 | Win32.WriteFile(output, buffer, count, null, null); 81 | } 82 | 83 | unsafe static bool CheckMntPath(byte* p) { 84 | for(int i = 0; i < mntPath.Length; i++) 85 | if(p[i] != mntPath[i]) 86 | return false; 87 | return true; 88 | } 89 | 90 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 91 | static bool CheckDriveLetter(char chr, bool upper, bool lower) => 92 | (upper && (chr >= 'A') && (chr <= 'Z')) || 93 | (lower && (chr >= 'a') && (chr <= 'z')); 94 | 95 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 96 | static char ToUpper(char chr) => (char)(chr & -33); 97 | 98 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 99 | static char ToLower(char chr) => (char)(chr | 32); 100 | } 101 | -------------------------------------------------------------------------------- /.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 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.vspscc 94 | *.vssscc 95 | .builds 96 | *.pidb 97 | *.svclog 98 | *.scc 99 | 100 | # Chutzpah Test files 101 | _Chutzpah* 102 | 103 | # Visual C++ cache files 104 | ipch/ 105 | *.aps 106 | *.ncb 107 | *.opendb 108 | *.opensdf 109 | *.sdf 110 | *.cachefile 111 | *.VC.db 112 | *.VC.VC.opendb 113 | 114 | # Visual Studio profiler 115 | *.psess 116 | *.vsp 117 | *.vspx 118 | *.sap 119 | 120 | # Visual Studio Trace Files 121 | *.e2e 122 | 123 | # TFS 2012 Local Workspace 124 | $tf/ 125 | 126 | # Guidance Automation Toolkit 127 | *.gpState 128 | 129 | # ReSharper is a .NET coding add-in 130 | _ReSharper*/ 131 | *.[Rr]e[Ss]harper 132 | *.DotSettings.user 133 | 134 | # TeamCity is a build add-in 135 | _TeamCity* 136 | 137 | # DotCover is a Code Coverage Tool 138 | *.dotCover 139 | 140 | # AxoCover is a Code Coverage Tool 141 | .axoCover/* 142 | !.axoCover/settings.json 143 | 144 | # Coverlet is a free, cross platform Code Coverage Tool 145 | coverage*[.json, .xml, .info] 146 | 147 | # Visual Studio code coverage results 148 | *.coverage 149 | *.coveragexml 150 | 151 | # NCrunch 152 | _NCrunch_* 153 | .*crunch*.local.xml 154 | nCrunchTemp_* 155 | 156 | # MightyMoose 157 | *.mm.* 158 | AutoTest.Net/ 159 | 160 | # Web workbench (sass) 161 | .sass-cache/ 162 | 163 | # Installshield output folder 164 | [Ee]xpress/ 165 | 166 | # DocProject is a documentation generator add-in 167 | DocProject/buildhelp/ 168 | DocProject/Help/*.HxT 169 | DocProject/Help/*.HxC 170 | DocProject/Help/*.hhc 171 | DocProject/Help/*.hhk 172 | DocProject/Help/*.hhp 173 | DocProject/Help/Html2 174 | DocProject/Help/html 175 | 176 | # Click-Once directory 177 | publish/ 178 | 179 | # Publish Web Output 180 | *.[Pp]ublish.xml 181 | *.azurePubxml 182 | # Note: Comment the next line if you want to checkin your web deploy settings, 183 | # but database connection strings (with potential passwords) will be unencrypted 184 | *.pubxml 185 | *.publishproj 186 | 187 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 188 | # checkin your Azure Web App publish settings, but sensitive information contained 189 | # in these scripts will be unencrypted 190 | PublishScripts/ 191 | 192 | # NuGet Packages 193 | *.nupkg 194 | # NuGet Symbol Packages 195 | *.snupkg 196 | # The packages folder can be ignored because of Package Restore 197 | **/[Pp]ackages/* 198 | # except build/, which is used as an MSBuild target. 199 | !**/[Pp]ackages/build/ 200 | # Uncomment if necessary however generally it will be regenerated when needed 201 | #!**/[Pp]ackages/repositories.config 202 | # NuGet v3's project.json files produces more ignorable files 203 | *.nuget.props 204 | *.nuget.targets 205 | 206 | # Microsoft Azure Build Output 207 | csx/ 208 | *.build.csdef 209 | 210 | # Microsoft Azure Emulator 211 | ecf/ 212 | rcf/ 213 | 214 | # Windows Store app package directories and files 215 | AppPackages/ 216 | BundleArtifacts/ 217 | Package.StoreAssociation.xml 218 | _pkginfo.txt 219 | *.appx 220 | *.appxbundle 221 | *.appxupload 222 | 223 | # Visual Studio cache files 224 | # files ending in .cache can be ignored 225 | *.[Cc]ache 226 | # but keep track of directories ending in .cache 227 | !?*.[Cc]ache/ 228 | 229 | # Others 230 | ClientBin/ 231 | ~$* 232 | *~ 233 | *.dbmdl 234 | *.dbproj.schemaview 235 | *.jfm 236 | *.pfx 237 | *.publishsettings 238 | orleans.codegen.cs 239 | 240 | # Including strong name files can present a security risk 241 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 242 | #*.snk 243 | 244 | # Since there are multiple workflows, uncomment next line to ignore bower_components 245 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 246 | #bower_components/ 247 | 248 | # RIA/Silverlight projects 249 | Generated_Code/ 250 | 251 | # Backup & report files from converting an old project file 252 | # to a newer Visual Studio version. Backup files are not needed, 253 | # because we have git ;-) 254 | _UpgradeReport_Files/ 255 | Backup*/ 256 | UpgradeLog*.XML 257 | UpgradeLog*.htm 258 | ServiceFabricBackup/ 259 | *.rptproj.bak 260 | 261 | # SQL Server files 262 | *.mdf 263 | *.ldf 264 | *.ndf 265 | 266 | # Business Intelligence projects 267 | *.rdl.data 268 | *.bim.layout 269 | *.bim_*.settings 270 | *.rptproj.rsuser 271 | *- [Bb]ackup.rdl 272 | *- [Bb]ackup ([0-9]).rdl 273 | *- [Bb]ackup ([0-9][0-9]).rdl 274 | 275 | # Microsoft Fakes 276 | FakesAssemblies/ 277 | 278 | # GhostDoc plugin setting file 279 | *.GhostDoc.xml 280 | 281 | # Node.js Tools for Visual Studio 282 | .ntvs_analysis.dat 283 | node_modules/ 284 | 285 | # Visual Studio 6 build log 286 | *.plg 287 | 288 | # Visual Studio 6 workspace options file 289 | *.opt 290 | 291 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 292 | *.vbw 293 | 294 | # Visual Studio LightSwitch build output 295 | **/*.HTMLClient/GeneratedArtifacts 296 | **/*.DesktopClient/GeneratedArtifacts 297 | **/*.DesktopClient/ModelManifest.xml 298 | **/*.Server/GeneratedArtifacts 299 | **/*.Server/ModelManifest.xml 300 | _Pvt_Extensions 301 | 302 | # Paket dependency manager 303 | .paket/paket.exe 304 | paket-files/ 305 | 306 | # FAKE - F# Make 307 | .fake/ 308 | 309 | # CodeRush personal settings 310 | .cr/personal 311 | 312 | # Python Tools for Visual Studio (PTVS) 313 | __pycache__/ 314 | *.pyc 315 | 316 | # Cake - Uncomment if you are using it 317 | # tools/** 318 | # !tools/packages.config 319 | 320 | # Tabs Studio 321 | *.tss 322 | 323 | # Telerik's JustMock configuration file 324 | *.jmconfig 325 | 326 | # BizTalk build output 327 | *.btp.cs 328 | *.btm.cs 329 | *.odx.cs 330 | *.xsd.cs 331 | 332 | # OpenCover UI analysis results 333 | OpenCover/ 334 | 335 | # Azure Stream Analytics local run output 336 | ASALocalRun/ 337 | 338 | # MSBuild Binary and Structured Log 339 | *.binlog 340 | 341 | # NVidia Nsight GPU debugger configuration file 342 | *.nvuser 343 | 344 | # MFractors (Xamarin productivity tool) working folder 345 | .mfractor/ 346 | 347 | # Local History for Visual Studio 348 | .localhistory/ 349 | 350 | # BeatPulse healthcheck temp database 351 | healthchecksdb 352 | 353 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 354 | MigrationBackup/ 355 | 356 | # Ionide (cross platform F# VS Code tools) working folder 357 | .ionide/ 358 | --------------------------------------------------------------------------------