Skip to content

Instantly share code, notes, and snippets.

@v3rt1go
Forked from TimMurphy/App.config
Created June 30, 2016 08:47
Show Gist options
  • Save v3rt1go/da9d4e7d4f60c6f18844cc0119ad8368 to your computer and use it in GitHub Desktop.
Save v3rt1go/da9d4e7d4f60c6f18844cc0119ad8368 to your computer and use it in GitHub Desktop.
.NET solution
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
</configSections>
<nlog throwExceptions="false" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<time type="AccurateUTC" />
<targets>
<target xsi:type="Chainsaw" name="Chainsaw" address="udp://127.0.0.1:7071" />
<target xsi:type="Trace" name="Trace" layout="NLog | ${level:padding=5} | ${logger} | ${message}" />
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="Chainsaw" />
<logger name="*" minlevel="Trace" writeTo="Trace" />
</rules>
</nlog>
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<Anotar.LibLog />
<EmptyStringGuard IncludeDebugAssert="false" />
<NullGuard IncludeDebugAssert="false" />
</Weavers>
// All projects
Install-Package -Id Anotar.LibLog.Fody
Install-Package -Id EmptyStringGuard.Fody
Install-Package -Id NullGuard.Fody
// Test projects
Install-Package -Id SpecFlow.xunit
Install-Package -Id FluentAssertions
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment