From dd92d0d21d9c51a9c7306a6aa997869f3baa0f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 15 May 2017 09:15:10 +0100 Subject: [PATCH] Add vssettings file (#52) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add vssettings file - as template at repo root - to Core Library solution - update documentation about it Signed-off-by: José Simões --- .../nanoFramework.CoreLibrary.vssettings | 82 +++++++++++++++++++ docs/coding-guidelines/cs-coding-style.md | 5 +- template.vssettings | 74 +++++++++++++++++ 3 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 CoreLibrary/nanoFramework.CoreLibrary.vssettings create mode 100644 template.vssettings diff --git a/CoreLibrary/nanoFramework.CoreLibrary.vssettings b/CoreLibrary/nanoFramework.CoreLibrary.vssettings new file mode 100644 index 0000000..ac71361 --- /dev/null +++ b/CoreLibrary/nanoFramework.CoreLibrary.vssettings @@ -0,0 +1,82 @@ + + + + + True + + + + true + + + + + + 4 + false + 4 + true + + + 1 + 0 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 0 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 1 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 1 + 1 + + + + diff --git a/docs/coding-guidelines/cs-coding-style.md b/docs/coding-guidelines/cs-coding-style.md index 500caa9..c31a0ea 100644 --- a/docs/coding-guidelines/cs-coding-style.md +++ b/docs/coding-guidelines/cs-coding-style.md @@ -26,7 +26,10 @@ The general rule we follow is "use Visual Studio defaults". 13. We use ```nameof(...)``` instead of ```"..."``` whenever possible and relevant. 14. Fields should be specified at the top within type declarations. -We have provided a Visual Studio 2013 vssettings file (`nfcore.vssettings`) at the root of the repository, enabling C# auto-formatting conforming to the above guidelines. Note that rules 7 and 8 are not covered by the vssettings, since these are not rules currently supported by VS formatting. +We have provided a Visual Studio 2017 _vssettings_ file (`template.vssettings`) at the root of the repository, enabling C# auto-formatting conforming to the above guidelines. Note that rules 7 and 8 are not covered by the vssettings, since these are not rules currently supported by VS formatting. + +_Tip:_ when adding a Solution for a new class library copy the [`template.vssettings`](../../template.vssettings) file into the same folder as the Solution file _and_ rename it to match the solution name. If you have installed an extension such as [Visual Studio Settings Switcher ](https://marketplace.visualstudio.com/items?itemName=DaveSexton.VSSettingsSwitcherbyDaveSexton) it will automatically pickup the setting file and will apply it to the Solution. + ### Example File: diff --git a/template.vssettings b/template.vssettings new file mode 100644 index 0000000..0485070 --- /dev/null +++ b/template.vssettings @@ -0,0 +1,74 @@ + + + + + + + 4 + false + 4 + true + + + 1 + 0 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 0 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 1 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 1 + 1 + + + +