Skip to content

Commit

Permalink
Add BannedSymbols.txt for Features layer to prevent accidental use of…
Browse files Browse the repository at this point in the history
… public CodeStyle and Options related types in Features layer. This should keep our IDE layer clean and onto a single Options and CodeStyle API.
  • Loading branch information
mavasani committed Mar 10, 2020
1 parent 2143656 commit a9da22c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Features/BannedSymbols.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
T:Microsoft.CodeAnalysis.CodeStyle.CodeStyleOption`1; Use 'Microsoft.CodeAnalysis.CodeStyle.CodeStyleOption2' instead
T:Microsoft.CodeAnalysis.CodeStyle.CodeStyleOptions; Use 'Microsoft.CodeAnalysis.CodeStyle.CodeStyleOptions2' instead
T:Microsoft.CodeAnalysis.Options.PerLanguageOption`1; Use 'Microsoft.CodeAnalysis.Options.PerLanguageOption2' instead
T:Microsoft.CodeAnalysis.Options.Option`1; Use 'Microsoft.CodeAnalysis.Options.Option2' instead
7 changes: 7 additions & 0 deletions src/Features/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<Import Project="..\..\Directory.Build.targets"/>

<ItemGroup Condition="'$(IsShipping)' == 'true'">
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\BannedSymbols.txt" />
</ItemGroup>
</Project>

0 comments on commit a9da22c

Please sign in to comment.