├── Install └── LibreOfficeMacro │ ├── dialog.xlb │ ├── script.xlb │ └── Module1.xba ├── LibreOfficeLibrary ├── ConvertDocumentException.cs ├── RevisionManager.cs ├── LibreOfficeLibrary.csproj ├── DocumentComparer.cs ├── Properties │ └── AssemblyInfo.cs ├── DocumentConverter.cs └── LibreOfficeWorker.cs ├── README.md ├── LibreOfficeLibrary.sln ├── .gitattributes └── .gitignore /Install/LibreOfficeMacro/dialog.xlb: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Install/LibreOfficeMacro/script.xlb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/ConvertDocumentException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace LibreOfficeLibrary 6 | { 7 | public class ConvertDocumentException : Exception 8 | { 9 | public ConvertDocumentException() 10 | { 11 | } 12 | 13 | public ConvertDocumentException(string message) 14 | : base(message) 15 | { 16 | } 17 | 18 | public ConvertDocumentException(string message, Exception inner) 19 | : base(message, inner) 20 | { 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LibreOfficeLibrary 2 | Library for operations with documents with LibreOffice 3 | ## Features 4 | * Convert document to PDF 5 | * Compare two documents 6 | ## Getting started 7 | ### Prerequisites 8 | On your machine must be installed `LibreOffice` 9 | ### Installing 10 | For comparison of two documents you must install macro from Install directory 11 | 12 | Open `LibreOffice` 13 | 14 | On menu go to `Tools` -> `Macros` -> `Organize Dialogs` 15 | 16 | In opened window go to tab `Libraries` and click to button `Import` 17 | 18 | Then choose the following file from this repo 19 | ``` 20 | Install/LibreOfficeMacro/script.xlb 21 | ``` 22 | Congrats! 23 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/RevisionManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Text; 5 | 6 | namespace LibreOfficeLibrary 7 | { 8 | public class RevisionManager 9 | { 10 | public void AcceptAllRevisions(string filePath, int? timeForWaiting = null) 11 | { 12 | if (!File.Exists(filePath)) 13 | throw new ArgumentException("The file doesn't exist"); 14 | 15 | var tempDirPath = Path.GetTempPath().TrimEnd(Path.DirectorySeparatorChar); 16 | var tempFilePath = Path.Combine(tempDirPath, Path.GetRandomFileName()); 17 | File.Copy(filePath, tempFilePath); 18 | 19 | var worker = new LibreOfficeWorker(); 20 | worker.DoWork($"macro:///LibreOfficeLibrary.Module1.AcceptAllChanges(\"{tempFilePath}\")", timeForWaiting); 21 | 22 | File.Delete(filePath); 23 | File.Move(tempFilePath, filePath); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/LibreOfficeLibrary.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0;;net461 5 | 1.0.0.0 6 | false 7 | false 8 | false 9 | false 10 | 1.0.0.0 11 | 1.0.7 12 | Digital Design 13 | Library for operations with documents with LibreOffice 14 | https://github.com/DigDes/LibreOfficeLibrary 15 | © Digital Design 16 | LibreOfficeLibrary 17 | Digital Design 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/DocumentComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading; 8 | using System.Threading.Tasks; 9 | 10 | namespace LibreOfficeLibrary 11 | { 12 | public class DocumentComparer 13 | { 14 | /// 15 | /// Compare two documents with LibreOffice 16 | /// 17 | public void Compare(string filePath, string fileToComparePath, string targetFilePath, int? timeForWaiting = null) 18 | { 19 | if (!File.Exists(filePath)) 20 | throw new ArgumentException("File for comparison doesn't exist"); 21 | if (!File.Exists(fileToComparePath)) 22 | throw new ArgumentException("File to compare doesn't exist"); 23 | if (File.Exists(targetFilePath)) 24 | throw new ArgumentException("The target file exists"); 25 | 26 | var tempDirPath = Path.GetTempPath().TrimEnd(Path.DirectorySeparatorChar); 27 | var tempFilePath = Path.Combine(tempDirPath, Path.GetRandomFileName()); 28 | var tempFileToComparePath = Path.Combine(tempDirPath, Path.GetRandomFileName()); 29 | 30 | File.Copy(filePath, tempFilePath); 31 | File.Copy(fileToComparePath, tempFileToComparePath); 32 | 33 | var worker = new LibreOfficeWorker(); 34 | worker.DoWork($"macro:///LibreOfficeLibrary.Module1.CompareDocuments(\"{tempFilePath}\",\"{tempFileToComparePath}\")", timeForWaiting); 35 | 36 | File.Move(tempFilePath, targetFilePath); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /LibreOfficeLibrary.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26510.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibreOfficeLibrary", "LibreOfficeLibrary\LibreOfficeLibrary.csproj", "{E588536D-1C3F-4AD1-81DF-C733BAFFE938}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibreOfficeLibrary.Tests", "LibreOfficeLibrary.Tests\LibreOfficeLibrary.Tests.csproj", "{97EA9F3A-5D86-437B-BA51-1E3D9C7A8022}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {E588536D-1C3F-4AD1-81DF-C733BAFFE938}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {E588536D-1C3F-4AD1-81DF-C733BAFFE938}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {E588536D-1C3F-4AD1-81DF-C733BAFFE938}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {E588536D-1C3F-4AD1-81DF-C733BAFFE938}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {97EA9F3A-5D86-437B-BA51-1E3D9C7A8022}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {97EA9F3A-5D86-437B-BA51-1E3D9C7A8022}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {97EA9F3A-5D86-437B-BA51-1E3D9C7A8022}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {97EA9F3A-5D86-437B-BA51-1E3D9C7A8022}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | //#if !NETSTANDARD2_0 && !NETCOREAPP2_0 9 | //[assembly: AssemblyTitle("LibreOfficeLibrary")] 10 | //#endif 11 | //[assembly: AssemblyDescription("Library for operations with documents with LibreOffice")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("Digital Design")] 14 | [assembly: AssemblyProduct("LibreOfficeLibrary")] 15 | //[assembly: AssemblyCopyright("© Digital Design")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | // The following GUID is for the ID of the typelib if this project is exposed to COM 25 | [assembly: Guid("25083389-1245-49aa-862c-e61f2414b2cf")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | // You can specify all the values or you can default the Build and Revision Numbers 35 | // by using the '*' as shown below: 36 | // [assembly: AssemblyVersion("1.0.*")] 37 | 38 | //[assembly: AssemblyVersion("1.0.0.0")] 39 | //[assembly: AssemblyFileVersion("1.0.0.0")] 40 | 41 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/DocumentConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading; 8 | using System.Threading.Tasks; 9 | 10 | namespace LibreOfficeLibrary 11 | { 12 | public class DocumentConverter 13 | { 14 | /// 15 | /// Convert document to PDF format 16 | /// 17 | public void ConvertToPdf(string filePath, string targetPath, string profileLocation = null, int? timeForWaiting = null) 18 | { 19 | if (!File.Exists(filePath)) 20 | throw new ArgumentException("The file doesn't exist"); 21 | if (File.Exists(targetPath)) 22 | throw new ArgumentException("The target file exists"); 23 | 24 | if (profileLocation == null) 25 | { 26 | var path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); 27 | var versionDir = Directory.GetDirectories(Path.Combine(path, "libreoffice")).FirstOrDefault(); 28 | if(versionDir==null) 29 | return; 30 | 31 | profileLocation = versionDir; 32 | } 33 | 34 | var profilePath = Path.GetFullPath(profileLocation).Replace('\\', '/').Replace(" ", "%20"); 35 | var tempDirPath = Path.GetTempPath().TrimEnd(Path.DirectorySeparatorChar); 36 | var tempFilePath = Path.Combine(tempDirPath, Path.GetRandomFileName()); 37 | var tempOutputFilePath = Path.Combine(tempDirPath, Path.GetFileNameWithoutExtension(tempFilePath) + ".pdf"); 38 | 39 | File.Copy(filePath, tempFilePath); 40 | 41 | var worker = new LibreOfficeWorker(); 42 | worker.DoWork($"/C -headless -writer -convert-to pdf -outdir \"{tempDirPath}\" \"{tempFilePath}\" \"-env:UserInstallation=file:///{profilePath}/\"", timeForWaiting); 43 | 44 | if (File.Exists(tempOutputFilePath)) 45 | File.Move(tempOutputFilePath, targetPath); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /LibreOfficeLibrary/LibreOfficeWorker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Diagnostics; 5 | using System.Text; 6 | using System.Threading; 7 | 8 | namespace LibreOfficeLibrary 9 | { 10 | public class LibreOfficeWorker 11 | { 12 | private class Worker 13 | { 14 | public string ErrorMessage { get; private set; } 15 | public Worker(object parameterObject) 16 | { 17 | Process = new Process 18 | { 19 | StartInfo = new ProcessStartInfo 20 | { 21 | WindowStyle = ProcessWindowStyle.Hidden, 22 | FileName = GetLibreofficeAppName(), 23 | Arguments = (string)parameterObject 24 | } 25 | }; 26 | } 27 | public void DoWork() 28 | { 29 | ErrorMessage = string.Empty; 30 | try 31 | { 32 | using (Process) 33 | { 34 | Process.Start(); 35 | Process.WaitForExit(); 36 | } 37 | } 38 | catch (Exception e) 39 | { 40 | ErrorMessage = e.ToString(); 41 | } 42 | } 43 | public Process Process { get; } 44 | } 45 | public void DoWork(string argumentString, int? timeForWaiting = null) 46 | { 47 | var worker = new Worker(argumentString); 48 | var thread = new Thread(worker.DoWork) 49 | { 50 | IsBackground = true 51 | }; 52 | thread.Start(); 53 | 54 | if (timeForWaiting.HasValue && !thread.Join(TimeSpan.FromSeconds(timeForWaiting.Value))) 55 | { 56 | worker.Process.Kill(); 57 | worker.Process.Dispose(); 58 | thread.Abort(); 59 | throw new ConvertDocumentException("LibreOffice process didn't respond within the expected time"); 60 | } 61 | 62 | if (timeForWaiting.HasValue) 63 | return; 64 | 65 | try 66 | { 67 | thread.Join(); 68 | } 69 | catch (ThreadAbortException) 70 | { 71 | worker.Process.Kill(); 72 | worker.Process.Dispose(); 73 | thread.Abort(); 74 | throw; 75 | } 76 | catch (Exception) 77 | { 78 | if (thread.IsAlive) 79 | thread.Abort(); 80 | } 81 | 82 | if (!string.IsNullOrEmpty(worker.ErrorMessage)) 83 | { 84 | throw new ConvertDocumentException($"LibreOffice process error {worker.ErrorMessage}"); 85 | } 86 | } 87 | 88 | private static bool IsLinux() 89 | { 90 | #if NET461 91 | return false; 92 | #elif NETSTANDARD2_0 93 | return System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux); 94 | #endif 95 | } 96 | 97 | private static string GetLibreofficeAppName() 98 | { 99 | #if NET461 100 | return "soffice.exe"; 101 | #elif NETSTANDARD2_0 102 | return IsLinux() ? "libreoffice" : "soffice.exe"; 103 | #endif 104 | } 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /Install/LibreOfficeMacro/Module1.xba: -------------------------------------------------------------------------------- 1 | 2 | 3 | sub CompareDocuments(path1, path2) 4 | 5 | dim sUrl as string 6 | dim oDoc as object, oDocFrame as object, dispatcher as object 7 | dim PropVal(0) as new com.sun.star.beans.PropertyValue 8 | dim args(0) as new com.sun.star.beans.PropertyValue 9 | 10 | sUrl = convertToUrl(path1) 11 | 12 | oDoc = stardesktop.LoadComponentFromURL(sUrl, "_blank", 0, Array()) 13 | 14 | oDocFrame = oDoc.CurrentController.Frame 15 | dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") 16 | 17 | PropVal(0).Name = "URL" 18 | PropVal(0).Value = convertToUrl(path2) 19 | 20 | dispatcher.executeDispatch(oDocFrame, ".uno:CompareDocuments", "", 0, PropVal()) 21 | 22 | args(0).Name = "ShowTrackedChanges" 23 | args(0).Value = true 24 | dispatcher.executeDispatch(oDocFrame, ".uno:ShowTrackedChanges", "", 0, args()) 25 | 26 | 'dispatcher.executeDispatch(oDocFrame, ".uno:AcceptChanges", "", 0, array())' 27 | 28 | rem ---------------------------------------------------------------------- 29 | dim args3(0) as new com.sun.star.beans.PropertyValue 30 | args3(0).Name = "AcceptTrackedChanges" 31 | args3(0).Value = false 32 | 33 | dispatcher.executeDispatch(oDocFrame, ".uno:AcceptTrackedChanges", "", 0, args3()) 34 | 35 | Dim aURL As New com.sun.star.util.URL 36 | Dim args4(0) As New com.sun.star.beans.PropertyValue 37 | 38 | args4(0).Name = "ToPoint" 39 | args4(0).Value = "$F$1" 40 | dispatcher.executeDispatch(oDocFrame, ".uno:GoToCell", "", 0, args4()) 41 | rem ---------------------------------------------------------------------- 42 | 43 | dispatcher.executeDispatch(oDocFrame, ".uno:Save", "", 0, Array()) 44 | 45 | ThisComponent.close(True) 46 | 47 | end sub 48 | 49 | 50 | 51 | 52 | sub AcceptAllChanges(path1) 53 | 54 | dim sUrl as string 55 | dim oDoc as object, oDocFrame as object, dispatcher as object 56 | 57 | sUrl = convertToUrl(path1) 58 | 59 | oDoc = stardesktop.LoadComponentFromURL(sUrl, "_blank", 0, Array()) 60 | 61 | oDocFrame = oDoc.CurrentController.Frame 62 | dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") 63 | 64 | rem ---------------------------------------------------------------------- 65 | dispatcher.executeDispatch(oDocFrame, ".uno:SelectAll", "", 0, Array()) 66 | 67 | rem ---------------------------------------------------------------------- 68 | dispatcher.executeDispatch(oDocFrame, ".uno:AcceptTrackedChange", "", 0, Array()) 69 | 70 | Dim args4(0) As New com.sun.star.beans.PropertyValue 71 | args4(0).Name = "ToPoint" 72 | args4(0).Value = "$F$1" 73 | dispatcher.executeDispatch(oDocFrame, ".uno:GoToCell", "", 0, args4()) 74 | rem ---------------------------------------------------------------------- 75 | 76 | dispatcher.executeDispatch(oDocFrame, ".uno:Save", "", 0, Array()) 77 | 78 | ThisComponent.close(True) 79 | end sub 80 | 81 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc 262 | /LibreOfficeLibrary.Tests 263 | --------------------------------------------------------------------------------