├── NLog.Targets.ActiveMQ ├── NLog.Targets.ActiveMQ.Tests │ ├── Usings.cs │ ├── ActiveMqFixture.cs │ ├── NLog.Targets.ActiveMQ.Tests.csproj │ ├── AsyncLazy.cs │ └── ActiveMqTargetIntegrationTest.cs ├── CHANGELOG.md ├── NLog.Targets.ActiveMQ │ ├── NLog.Targets.ActiveMQ.csproj │ └── ActiveMqTarget.cs └── NLog.Targets.ActiveMQ.sln ├── .github └── workflows │ ├── build-and-test.yml │ └── publish.yml ├── LICENSE.md ├── README.md └── .gitignore /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.Tests/Usings.cs: -------------------------------------------------------------------------------- 1 | global using Xunit; -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | ## [2.1.1] – 2025-04-24 5 | ### Fixed 6 | - Upgraded Apache.NMS.ActiveMQ to 2.1.1 to address CVE-2025-29953. -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.Tests/ActiveMqFixture.cs: -------------------------------------------------------------------------------- 1 | using DotNet.Testcontainers.Builders; 2 | 3 | namespace NLog.Targets.ActiveMQ.Tests; 4 | 5 | public class ActiveMqFixture : IAsyncDisposable 6 | { 7 | public readonly AsyncLazy ActiveMqContainer = new(async () => 8 | { 9 | var container = new ContainerBuilder() 10 | .WithImage("rmohr/activemq:latest") 11 | .WithPortBinding(61616, 61616) 12 | .WithWaitStrategy(Wait.ForUnixContainer().UntilPortIsAvailable(61616)) 13 | .Build(); 14 | await container.StartAsync(); 15 | return container; 16 | }); 17 | 18 | public ActiveMqFixture() 19 | { 20 | } 21 | 22 | public async ValueTask DisposeAsync() 23 | { 24 | await (await ActiveMqContainer).DisposeAsync().ConfigureAwait(false); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.github/workflows/build-and-test.yml: -------------------------------------------------------------------------------- 1 | name: Build and Test 2 | 3 | on: 4 | workflow_dispatch: 5 | pull_request: 6 | push: 7 | branches: 8 | - main 9 | 10 | jobs: 11 | build-and-test: 12 | name: Build & Test 13 | runs-on: ubuntu-latest 14 | defaults: 15 | run: 16 | working-directory: NLog.Targets.ActiveMQ 17 | 18 | env: 19 | DOTNET_VERSION: '9.0.x' 20 | 21 | steps: 22 | - name: Checkout code 23 | uses: actions/checkout@v4 24 | 25 | - name: Setup .NET 26 | uses: actions/setup-dotnet@v3 27 | with: 28 | dotnet-version: ${{ env.DOTNET_VERSION }} 29 | 30 | - name: Restore dependencies 31 | run: dotnet restore 32 | 33 | - name: Build 34 | run: dotnet build --configuration Release --no-restore 35 | 36 | - name: Test 37 | run: dotnet test --configuration Release --no-restore --verbosity normal -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2020 Yurii Sydorets 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: Publish NuGet Package 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | tags: 8 | - 'v*.*.*' 9 | 10 | jobs: 11 | publish: 12 | name: Pack & Publish 13 | runs-on: ubuntu-latest 14 | defaults: 15 | run: 16 | working-directory: NLog.Targets.ActiveMQ 17 | 18 | env: 19 | DOTNET_VERSION: '9.0.x' 20 | NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} 21 | 22 | steps: 23 | - name: Checkout code 24 | uses: actions/checkout@v4 25 | 26 | - name: Setup .NET 27 | uses: actions/setup-dotnet@v3 28 | with: 29 | dotnet-version: ${{ env.DOTNET_VERSION }} 30 | 31 | - name: Restore dependencies 32 | run: dotnet restore 33 | 34 | - name: Build 35 | run: dotnet build --configuration Release --no-restore 36 | 37 | - name: Pack NuGet 38 | run: | 39 | dotnet pack ./NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.csproj \ 40 | --configuration Release \ 41 | --no-build \ 42 | --output ./artifacts 43 | 44 | - name: Push to NuGet 45 | run: | 46 | dotnet nuget push ./artifacts/*.nupkg \ 47 | --api-key $NUGET_API_KEY \ 48 | --source https://api.nuget.org/v3/index.json 49 | -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.Tests/NLog.Targets.ActiveMQ.Tests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | 8 | false 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | runtime; build; native; contentfiles; analyzers; buildtransitive 19 | all 20 | 21 | 22 | runtime; build; native; contentfiles; analyzers; buildtransitive 23 | all 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NLog.Targets.ActiveMQ [![NuGet Release](https://img.shields.io/nuget/vpre/NLog.Targets.ActiveMQ.svg)](https://nuget.org/packages/NLog.Targets.ActiveMQ) 2 | NLog custom target for ActiveMQ 3 | 4 | # Options 5 | 6 | | Name | Type | Description | 7 | |---------|--------|-------------| 8 | | `Uri` | Layout | URL for the ActiveMQ Connecttion. Default: `tcp://localhost:61616` | 9 | | `Destination` | Layout | Destination for the ActiveMQ message. Default: `queue://nlog.messages` | 10 | | `Layout` | Layout | Payload for the ActiveMQ message | 11 | | `Persistent` | Bool | Control delivery-mode whether Persistent or NonPersistent. Default = `True` | 12 | | `UseCompression` | Bool | Control whether to enable compression for producer. Default = `False` | 13 | | `Username` | Layout | Optional UserName for basic authentication | 14 | | `Password` | Layout | Optional Password for basic authentication | 15 | | `ClientId` | Layout | Optional identifier for this publisher-client | 16 | 17 | # Example NLog.config 18 | 19 | ```xml 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | ${longdate} ${level} ${message} ${exception} 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | ``` 36 | 37 | See also: [ActiveMQ Uri Configuration](https://activemq.apache.org/components/nms/providers/activemq/uri-configuration) 38 | 39 | Based on [Nlog.Contrib.ActiveMq](https://github.com/NLog/NLog.Contrib.ActiveMQ) 40 | -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 2.1.2 6 | Yurii Sydorets 7 | 8 | true 9 | An NLog target that utilises the ActiveMQ connection. 10 | 11 | 12 | https://github.com/YuraSidorets/NLog.Targets.ActiveMQ 13 | nlog target activemq 14 | LICENSE.md 15 | README.md 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | true 27 | true 28 | true 29 | snupkg 30 | 31 | 32 | 33 | 34 | True 35 | 36 | 37 | 38 | True 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.Tests/AsyncLazy.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | namespace NLog.Targets.ActiveMQ.Tests; 4 | 5 | /// 6 | /// Provides support for asynchronous lazy initialization. This type is fully threadsafe. 7 | /// 8 | /// The type of object that is being asynchronously initialized. 9 | public sealed class AsyncLazy 10 | { 11 | /// 12 | /// The underlying lazy task. 13 | /// 14 | private readonly Lazy> instance; 15 | 16 | /// 17 | /// Initializes a new instance of the class. 18 | /// 19 | /// The delegate that is invoked on a background thread to produce the value when it is needed. 20 | public AsyncLazy(Func factory) 21 | { 22 | instance = new Lazy>(() => Task.Run(factory)); 23 | } 24 | 25 | /// 26 | /// Initializes a new instance of the class. 27 | /// 28 | /// The asynchronous delegate that is invoked on a background thread to produce the value when it is needed. 29 | public AsyncLazy(Func> factory) 30 | { 31 | instance = new Lazy>(() => Task.Run(factory)); 32 | } 33 | 34 | /// 35 | /// Asynchronous infrastructure support. This method permits instances of to be await'ed. 36 | /// 37 | public TaskAwaiter GetAwaiter() 38 | { 39 | return instance.Value.GetAwaiter(); 40 | } 41 | 42 | /// 43 | /// Starts the asynchronous initialization, if it has not already started. 44 | /// 45 | public void Start() 46 | { 47 | _ = instance.Value; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.6.33620.401 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NLog.Targets.ActiveMQ", "NLog.Targets.ActiveMQ\NLog.Targets.ActiveMQ.csproj", "{51166451-DFE5-4F2F-9FB6-D6A1EA719BB2}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NLog.Targets.ActiveMQ.Tests", "NLog.Targets.ActiveMQ.Tests\NLog.Targets.ActiveMQ.Tests.csproj", "{F397BA9B-894F-48E8-A1AF-5DE1982ECBD6}" 9 | EndProject 10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F020D292-CB06-4176-8249-CC899F0447E6}" 11 | ProjectSection(SolutionItems) = preProject 12 | ..\README.md = ..\README.md 13 | EndProjectSection 14 | EndProject 15 | Global 16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 17 | Debug|Any CPU = Debug|Any CPU 18 | Release|Any CPU = Release|Any CPU 19 | EndGlobalSection 20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 21 | {51166451-DFE5-4F2F-9FB6-D6A1EA719BB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 22 | {51166451-DFE5-4F2F-9FB6-D6A1EA719BB2}.Debug|Any CPU.Build.0 = Debug|Any CPU 23 | {51166451-DFE5-4F2F-9FB6-D6A1EA719BB2}.Release|Any CPU.ActiveCfg = Release|Any CPU 24 | {51166451-DFE5-4F2F-9FB6-D6A1EA719BB2}.Release|Any CPU.Build.0 = Release|Any CPU 25 | {F397BA9B-894F-48E8-A1AF-5DE1982ECBD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 26 | {F397BA9B-894F-48E8-A1AF-5DE1982ECBD6}.Debug|Any CPU.Build.0 = Debug|Any CPU 27 | {F397BA9B-894F-48E8-A1AF-5DE1982ECBD6}.Release|Any CPU.ActiveCfg = Release|Any CPU 28 | {F397BA9B-894F-48E8-A1AF-5DE1982ECBD6}.Release|Any CPU.Build.0 = Release|Any CPU 29 | EndGlobalSection 30 | GlobalSection(SolutionProperties) = preSolution 31 | HideSolutionNode = FALSE 32 | EndGlobalSection 33 | GlobalSection(ExtensibilityGlobals) = postSolution 34 | SolutionGuid = {453D8CCB-20E2-4D4F-9264-AEA23901B75C} 35 | EndGlobalSection 36 | EndGlobal 37 | -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ.Tests/ActiveMqTargetIntegrationTest.cs: -------------------------------------------------------------------------------- 1 | using Apache.NMS; 2 | using Apache.NMS.ActiveMQ; 3 | using Apache.NMS.Util; 4 | using FluentAssertions; 5 | using NLog.Common; 6 | using System.Reflection; 7 | 8 | namespace NLog.Targets.ActiveMQ.Tests; 9 | 10 | public class ActiveMqTargetIntegrationTest : IClassFixture 11 | { 12 | private readonly ActiveMqFixture _activeMqFixture; 13 | 14 | public ActiveMqTargetIntegrationTest(ActiveMqFixture activeMqFixture) 15 | { 16 | _activeMqFixture = activeMqFixture; 17 | } 18 | 19 | [Fact] 20 | public async Task Write_SendsMessageToActiveMq() 21 | { 22 | // Arrange 23 | var activeMqContainer = await _activeMqFixture.ActiveMqContainer; 24 | var target = new ActiveMqTarget 25 | { 26 | Uri = $"activemq:tcp://{activeMqContainer.Hostname}:{activeMqContainer.GetMappedPublicPort(61616)}", 27 | Destination = "queue://nlog.messages", 28 | Layout = "${message}" 29 | }; 30 | 31 | InitializeTarget(target); 32 | 33 | var logEvent = new LogEventInfo(LogLevel.Info, "TestLogger", "Test Message"); 34 | var asyncLogEvent = new AsyncLogEventInfo(logEvent, e => { }); 35 | 36 | // Act 37 | try 38 | { 39 | target.WriteAsyncLogEvent(asyncLogEvent); 40 | } 41 | finally 42 | { 43 | CloseTarget(target); 44 | } 45 | 46 | // Assert 47 | var uri = target.Uri?.Render(LogEventInfo.CreateNullEvent()); 48 | var factory = new ConnectionFactory(uri); 49 | using (var connection = factory.CreateConnection()) 50 | using (var session = connection.CreateSession()) 51 | { 52 | var destinationName = target.Destination?.Render(LogEventInfo.CreateNullEvent()); 53 | var destination = SessionUtil.GetDestination(session, destinationName); 54 | using (var consumer = session.CreateConsumer(destination)) 55 | { 56 | connection.Start(); 57 | 58 | await Task.Delay(1000); 59 | 60 | var receivedMessage = consumer.Receive(new TimeSpan(0, 0, 5)) as ITextMessage; 61 | receivedMessage.Should().NotBeNull(); 62 | logEvent.FormattedMessage.Should().Be(receivedMessage.Text); 63 | } 64 | } 65 | } 66 | 67 | private static void InitializeTarget(Target target) => target.GetType().GetMethod("Initialize", BindingFlags.Instance | BindingFlags.NonPublic)?.Invoke(target, new object?[] { null }); 68 | 69 | private static void CloseTarget(Target target) => target.GetType().GetMethod("Close", BindingFlags.Instance | BindingFlags.NonPublic)?.Invoke(target, Array.Empty()); 70 | 71 | public ValueTask DisposeAsync() 72 | { 73 | return _activeMqFixture.DisposeAsync(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /NLog.Targets.ActiveMQ/NLog.Targets.ActiveMQ/ActiveMqTarget.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Apache.NMS.ActiveMQ; 3 | using Apache.NMS.Util; 4 | using Apache.NMS; 5 | using NLog.Common; 6 | using NLog.Config; 7 | using NLog.Layouts; 8 | 9 | namespace NLog.Targets.ActiveMQ 10 | { 11 | [Target("ActiveMQ")] 12 | public class ActiveMqTarget : TargetWithLayout 13 | { 14 | private const string _activeMqConnectionString = "tcp://localhost:61616"; 15 | private const string _activeMqDestination = "queue://nlog.messages"; 16 | 17 | private IConnection _connection; 18 | private ISession _session; 19 | private IMessageProducer _producer; 20 | 21 | public ActiveMqTarget() 22 | { 23 | Destination = _activeMqDestination; 24 | Uri = _activeMqConnectionString; 25 | Persistent = true; 26 | } 27 | 28 | /// 29 | /// Example: queue://FOO.BAR 30 | /// Example: topic://FOO.BAR 31 | /// 32 | [RequiredParameter] 33 | public Layout Destination { get; set; } 34 | /// 35 | /// Example: tcp://localhost:61616 36 | /// 37 | [RequiredParameter] 38 | public Layout Uri { get; set; } 39 | public bool Persistent { get; set; } 40 | public bool UseCompression { get; set; } 41 | public Layout Username { get; set; } 42 | public Layout Password { get; set; } 43 | public Layout ClientId { get; set; } 44 | 45 | protected override void InitializeTarget() 46 | { 47 | var uri = RenderLogEvent(Uri, LogEventInfo.CreateNullEvent()); 48 | var username = RenderLogEvent(Username, LogEventInfo.CreateNullEvent()); 49 | var password = RenderLogEvent(Password, LogEventInfo.CreateNullEvent()); 50 | var clientId = RenderLogEvent(ClientId, LogEventInfo.CreateNullEvent()); 51 | var destinationName = RenderLogEvent(Destination, LogEventInfo.CreateNullEvent()); 52 | 53 | InternalLogger.Info("ActiveMQ(Name={0}): Creating connection to Uri={1} and Destination={2}", Name, uri, destinationName); 54 | 55 | try 56 | { 57 | var factory = new ConnectionFactory(new Uri(uri)); 58 | if (!string.IsNullOrEmpty(username)) 59 | { 60 | factory.UserName = username; 61 | factory.Password = password; 62 | } 63 | 64 | if (!string.IsNullOrEmpty(clientId)) 65 | factory.ClientId = clientId; 66 | 67 | if (UseCompression) 68 | factory.UseCompression = true; 69 | 70 | factory.OnException -= MonitorFactoryExceptions; // Avoid double subscriptions 71 | factory.OnException += MonitorFactoryExceptions; 72 | 73 | _connection = factory.CreateConnection(); 74 | _connection.Start(); 75 | 76 | _session = _connection.CreateSession(); 77 | 78 | var destination = SessionUtil.GetDestination(_session, destinationName); 79 | _producer = _session.CreateProducer(destination); 80 | _producer.DeliveryMode = Persistent ? MsgDeliveryMode.Persistent : MsgDeliveryMode.NonPersistent; 81 | } 82 | catch (Exception ex) 83 | { 84 | InternalLogger.Error(ex, "ActiveMQ(Name={0}): Failed to create ActiveMQ connection to Uri={1} and Destination={2}", Name, uri, destinationName); 85 | throw; 86 | } 87 | 88 | base.InitializeTarget(); 89 | } 90 | 91 | private static void MonitorFactoryExceptions(Exception ex) 92 | { 93 | InternalLogger.Error(ex, "ActiveMQ: Exception from ActiveMQ connection"); 94 | } 95 | 96 | protected override void CloseTarget() 97 | { 98 | base.CloseTarget(); 99 | 100 | _producer?.Dispose(); 101 | _session?.Dispose(); 102 | _connection?.Dispose(); 103 | } 104 | 105 | protected override void Write(LogEventInfo logEvent) 106 | { 107 | var logMessage = RenderLogEvent(Layout, logEvent); 108 | var request = _session.CreateTextMessage(logMessage); 109 | _producer.Send(request); 110 | } 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /.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 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | 33 | # Visual Studio 2015/2017 cache/options directory 34 | .vs/ 35 | # Uncomment if you have tasks that create the project's static files in wwwroot 36 | #wwwroot/ 37 | 38 | # Visual Studio 2017 auto generated files 39 | Generated\ Files/ 40 | 41 | # MSTest test Results 42 | [Tt]est[Rr]esult*/ 43 | [Bb]uild[Ll]og.* 44 | 45 | # NUnit 46 | *.VisualState.xml 47 | TestResult.xml 48 | nunit-*.xml 49 | 50 | # Build Results of an ATL Project 51 | [Dd]ebugPS/ 52 | [Rr]eleasePS/ 53 | dlldata.c 54 | 55 | # Benchmark Results 56 | BenchmarkDotNet.Artifacts/ 57 | 58 | # .NET Core 59 | project.lock.json 60 | project.fragment.lock.json 61 | artifacts/ 62 | 63 | # StyleCop 64 | StyleCopReport.xml 65 | 66 | # Files built by Visual Studio 67 | *_i.c 68 | *_p.c 69 | *_h.h 70 | *.ilk 71 | *.meta 72 | *.obj 73 | *.iobj 74 | *.pch 75 | *.pdb 76 | *.ipdb 77 | *.pgc 78 | *.pgd 79 | *.rsp 80 | *.sbr 81 | *.tlb 82 | *.tli 83 | *.tlh 84 | *.tmp 85 | *.tmp_proj 86 | *_wpftmp.csproj 87 | *.log 88 | *.vspscc 89 | *.vssscc 90 | .builds 91 | *.pidb 92 | *.svclog 93 | *.scc 94 | 95 | # Chutzpah Test files 96 | _Chutzpah* 97 | 98 | # Visual C++ cache files 99 | ipch/ 100 | *.aps 101 | *.ncb 102 | *.opendb 103 | *.opensdf 104 | *.sdf 105 | *.cachefile 106 | *.VC.db 107 | *.VC.VC.opendb 108 | 109 | # Visual Studio profiler 110 | *.psess 111 | *.vsp 112 | *.vspx 113 | *.sap 114 | 115 | # Visual Studio Trace Files 116 | *.e2e 117 | 118 | # TFS 2012 Local Workspace 119 | $tf/ 120 | 121 | # Guidance Automation Toolkit 122 | *.gpState 123 | 124 | # ReSharper is a .NET coding add-in 125 | _ReSharper*/ 126 | *.[Rr]e[Ss]harper 127 | *.DotSettings.user 128 | 129 | # JustCode is a .NET coding add-in 130 | .JustCode 131 | 132 | # TeamCity is a build add-in 133 | _TeamCity* 134 | 135 | # DotCover is a Code Coverage Tool 136 | *.dotCover 137 | 138 | # AxoCover is a Code Coverage Tool 139 | .axoCover/* 140 | !.axoCover/settings.json 141 | 142 | # Visual Studio code coverage results 143 | *.coverage 144 | *.coveragexml 145 | 146 | # NCrunch 147 | _NCrunch_* 148 | .*crunch*.local.xml 149 | nCrunchTemp_* 150 | 151 | # MightyMoose 152 | *.mm.* 153 | AutoTest.Net/ 154 | 155 | # Web workbench (sass) 156 | .sass-cache/ 157 | 158 | # Installshield output folder 159 | [Ee]xpress/ 160 | 161 | # DocProject is a documentation generator add-in 162 | DocProject/buildhelp/ 163 | DocProject/Help/*.HxT 164 | DocProject/Help/*.HxC 165 | DocProject/Help/*.hhc 166 | DocProject/Help/*.hhk 167 | DocProject/Help/*.hhp 168 | DocProject/Help/Html2 169 | DocProject/Help/html 170 | 171 | # Click-Once directory 172 | publish/ 173 | 174 | # Publish Web Output 175 | *.[Pp]ublish.xml 176 | *.azurePubxml 177 | # Note: Comment the next line if you want to checkin your web deploy settings, 178 | # but database connection strings (with potential passwords) will be unencrypted 179 | *.pubxml 180 | *.publishproj 181 | 182 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 183 | # checkin your Azure Web App publish settings, but sensitive information contained 184 | # in these scripts will be unencrypted 185 | PublishScripts/ 186 | 187 | # NuGet Packages 188 | *.nupkg 189 | # NuGet Symbol Packages 190 | *.snupkg 191 | # The packages folder can be ignored because of Package Restore 192 | **/[Pp]ackages/* 193 | # except build/, which is used as an MSBuild target. 194 | !**/[Pp]ackages/build/ 195 | # Uncomment if necessary however generally it will be regenerated when needed 196 | #!**/[Pp]ackages/repositories.config 197 | # NuGet v3's project.json files produces more ignorable files 198 | *.nuget.props 199 | *.nuget.targets 200 | 201 | # Microsoft Azure Build Output 202 | csx/ 203 | *.build.csdef 204 | 205 | # Microsoft Azure Emulator 206 | ecf/ 207 | rcf/ 208 | 209 | # Windows Store app package directories and files 210 | AppPackages/ 211 | BundleArtifacts/ 212 | Package.StoreAssociation.xml 213 | _pkginfo.txt 214 | *.appx 215 | *.appxbundle 216 | *.appxupload 217 | 218 | # Visual Studio cache files 219 | # files ending in .cache can be ignored 220 | *.[Cc]ache 221 | # but keep track of directories ending in .cache 222 | !?*.[Cc]ache/ 223 | 224 | # Others 225 | ClientBin/ 226 | ~$* 227 | *~ 228 | *.dbmdl 229 | *.dbproj.schemaview 230 | *.jfm 231 | *.pfx 232 | *.publishsettings 233 | orleans.codegen.cs 234 | 235 | # Including strong name files can present a security risk 236 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 237 | #*.snk 238 | 239 | # Since there are multiple workflows, uncomment next line to ignore bower_components 240 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 241 | #bower_components/ 242 | 243 | # RIA/Silverlight projects 244 | Generated_Code/ 245 | 246 | # Backup & report files from converting an old project file 247 | # to a newer Visual Studio version. Backup files are not needed, 248 | # because we have git ;-) 249 | _UpgradeReport_Files/ 250 | Backup*/ 251 | UpgradeLog*.XML 252 | UpgradeLog*.htm 253 | ServiceFabricBackup/ 254 | *.rptproj.bak 255 | 256 | # SQL Server files 257 | *.mdf 258 | *.ldf 259 | *.ndf 260 | 261 | # Business Intelligence projects 262 | *.rdl.data 263 | *.bim.layout 264 | *.bim_*.settings 265 | *.rptproj.rsuser 266 | *- [Bb]ackup.rdl 267 | *- [Bb]ackup ([0-9]).rdl 268 | *- [Bb]ackup ([0-9][0-9]).rdl 269 | 270 | # Microsoft Fakes 271 | FakesAssemblies/ 272 | 273 | # GhostDoc plugin setting file 274 | *.GhostDoc.xml 275 | 276 | # Node.js Tools for Visual Studio 277 | .ntvs_analysis.dat 278 | node_modules/ 279 | 280 | # Visual Studio 6 build log 281 | *.plg 282 | 283 | # Visual Studio 6 workspace options file 284 | *.opt 285 | 286 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 287 | *.vbw 288 | 289 | # Visual Studio LightSwitch build output 290 | **/*.HTMLClient/GeneratedArtifacts 291 | **/*.DesktopClient/GeneratedArtifacts 292 | **/*.DesktopClient/ModelManifest.xml 293 | **/*.Server/GeneratedArtifacts 294 | **/*.Server/ModelManifest.xml 295 | _Pvt_Extensions 296 | 297 | # Paket dependency manager 298 | .paket/paket.exe 299 | paket-files/ 300 | 301 | # FAKE - F# Make 302 | .fake/ 303 | 304 | # CodeRush personal settings 305 | .cr/personal 306 | 307 | # Python Tools for Visual Studio (PTVS) 308 | __pycache__/ 309 | *.pyc 310 | 311 | # Cake - Uncomment if you are using it 312 | # tools/** 313 | # !tools/packages.config 314 | 315 | # Tabs Studio 316 | *.tss 317 | 318 | # Telerik's JustMock configuration file 319 | *.jmconfig 320 | 321 | # BizTalk build output 322 | *.btp.cs 323 | *.btm.cs 324 | *.odx.cs 325 | *.xsd.cs 326 | 327 | # OpenCover UI analysis results 328 | OpenCover/ 329 | 330 | # Azure Stream Analytics local run output 331 | ASALocalRun/ 332 | 333 | # MSBuild Binary and Structured Log 334 | *.binlog 335 | 336 | # NVidia Nsight GPU debugger configuration file 337 | *.nvuser 338 | 339 | # MFractors (Xamarin productivity tool) working folder 340 | .mfractor/ 341 | 342 | # Local History for Visual Studio 343 | .localhistory/ 344 | 345 | # BeatPulse healthcheck temp database 346 | healthchecksdb 347 | 348 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 349 | MigrationBackup/ 350 | --------------------------------------------------------------------------------