Browse files

Added explicit Allman code style to OpenTK.sln and OpenTK.csproj.

The remaining projects will get it by inheritance.

It was added explicitly to the csproj because that project might be used from within other solutions which might have other policies.
  • Loading branch information...
1 parent 1f9a210 commit 41711bca70035ddcf35f70bb465cc7dbb2fb915f @hultqvist committed Apr 9, 2012
Showing with 38 additions and 3 deletions.
  1. +27 −3 OpenTK.sln
  2. +11 −0 Source/OpenTK/OpenTK.csproj
View
30 OpenTK.sln
@@ -133,10 +133,34 @@ Global
{ADC34399-7613-44D2-90B2-19250F06FE7B}.Nsis|Any CPU.Build.0 = Nsis|Any CPU
{ADC34399-7613-44D2-90B2-19250F06FE7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Source\Examples\OpenTK.Examples.csproj
+ Policies = $0
+ $0.TextStylePolicy = $1
+ $1.FileWidth = 120
+ $1.EolMarker = Unix
+ $1.inheritsSet = VisualStudio
+ $1.inheritsScope = text/plain
+ $1.scope = text/x-csharp
+ $0.CSharpFormattingPolicy = $2
+ $2.PlaceElseOnNewLine = True
+ $2.PlaceCatchOnNewLine = True
+ $2.PlaceFinallyOnNewLine = True
+ $2.PlaceWhileOnNewLine = True
+ $2.BeforeIndexerDeclarationBracket = False
+ $2.SpacesBeforeBrackets = False
+ $2.inheritsSet = Allman
+ $2.inheritsScope = text/x-csharp
+ $2.scope = text/x-csharp
+ $0.TextStylePolicy = $3
+ $3.FileWidth = 120
+ $3.TabWidth = 4
+ $3.EolMarker = Unix
+ $3.inheritsSet = Mono
+ $3.inheritsScope = text/plain
+ $3.scope = text/plain
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
View
11 Source/OpenTK/OpenTK.csproj
@@ -777,4 +777,15 @@
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
+ <ProjectExtensions>
+ <MonoDevelop>
+ <Properties>
+ <Policies>
+ <CSharpFormattingPolicy PlaceElseOnNewLine="True" PlaceCatchOnNewLine="True" PlaceFinallyOnNewLine="True" PlaceWhileOnNewLine="True" BeforeIndexerDeclarationBracket="False" SpacesBeforeBrackets="False" inheritsSet="Allman" inheritsScope="text/x-csharp" scope="text/x-csharp" />
+ <TextStylePolicy FileWidth="120" EolMarker="Unix" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/x-csharp" />
+ <TextStylePolicy FileWidth="120" TabWidth="4" EolMarker="Unix" inheritsSet="Mono" inheritsScope="text/plain" scope="text/plain" />
+ </Policies>
+ </Properties>
+ </MonoDevelop>
+ </ProjectExtensions>
</Project>

0 comments on commit 41711bc

Please sign in to comment.