To follow is my standard layout for .NET projects. It is a modification of David Fowler's dotnetlayout.md gist
$/
artifacts/
build/
dependencies/
docs/
packages/
samples/
| Function Main() | |
| { | |
| Enable-MicrosoftUpdate | |
| Install-WindowsUpdate -AcceptEula | |
| Install-Packages | |
| Write-Host "Importing Carbon module..." | |
| & "C:\Program Files\WindowsPowerShell\Modules\Carbon\Import-Carbon.ps1" |
| var sb = new StringBuilder(); | |
| var properties = error.GetType().GetProperties(); | |
| foreach (var propertyInfo in properties) | |
| { | |
| sb.AppendLine(string.Format("public {0} {1} {{ get; set; }}", propertyInfo.PropertyType.Name, propertyInfo.Name)); | |
| } | |
| foreach (var propertyInfo in properties) | |
| { |
| <configSections> | |
| <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" /> | |
| <sectionGroup name="common"> | |
| <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /> | |
| </sectionGroup> | |
| </configSections> | |
| <common> | |
| <logging> | |
| <factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog31"> |
| The following scripts are used by [Boxstarter](http://boxstarter.org/) to configure my Azure virtual machines. |
To follow is my standard layout for .NET projects. It is a modification of David Fowler's dotnetlayout.md gist
$/
artifacts/
build/
dependencies/
docs/
packages/
samples/
| <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| ... | |
| <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |
| ... | |
| </PropertyGroup> |
| [alias] | |
| # References | |
| # ---------- | |
| # | |
| # - http://haacked.com/archive/2014/07/28/github-flow-aliases/ | |
| # update working copy before creating new branch | |
| update = !git pull --rebase --prune $@ && git submodule update --init --recursive |
| Enable-MicrosoftUpdate | |
| Install-WindowsUpdate -AcceptEula | |
| Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -DisableShowAppsViewOnStartScreen -DisableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -EnableShowFileExtensions -DisableShowFullPathInTitleBar | |
| Enable-RemoteDesktop | |
| cinst Microsoft-Hyper-V-All -source windowsFeatures |
| <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> |
| public class LibLogLogger | |
| { | |
| private readonly ILog Logger; | |
| public LibLogLogger(ILog logger) | |
| { | |
| Logger = logger; | |
| } | |
| public bool IsDebugEnabled |