Repository navigation
Update Configuration.md - #3251
Conversation
$(MSBuildThisFileDirectory) can be used to simplify the .props file
Codecov Report
@@ Coverage Diff @@
## master #3251 +/- ##
=======================================
Coverage 94.39% 94.40%
=======================================
Files 967 967
Lines 108429 108429
Branches 3675 3675
=======================================
+ Hits 102356 102358 +2
+ Misses 5143 5142 -1
+ Partials 930 929 -1 |
|
💭 This seems fine, but I'm not one of the users of this configuration form. It would be good to get a review from one of the original contributors of this section. /cc @ngeor |
|
Hi, I haven't worked with .NET pretty much since I did this contribution more than 2 years ago :-( The configuration sample was about having an external NuGet package ( MyCompany.MyRules.nuget ) that holds StyleCop configuration, so I can share it in multiple projects without copy pasting around the config file. If this "MSBuildThisFileDirectory" variable somehow points to a NuGet package, go ahead with the changes. If your change is actually in a different direction (copy pasting the stylecop file rules in multiple projects), I think then you should add it to the docs as a new section. |
|
The Documentation includes a hint which covers this scenario:
The NuGet Package i created this way works at least with PackageReference in old-style and sdk-style Projects |
I think $(MSBuildThisFileDirectory) can be used to simplify the .props file