Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 MSB3884 warning: Could not find rule set file

When I imported an old solution in VS2015 I receive loads of warnings MSB3884 warning: Could not find rule set file .. when building the solution.

Q How can I get rid of this annoying problem?

like image 360
participant Avatar asked Oct 08 '15 15:10

participant


2 Answers

You need to edit the .csproj file and find the reference to the CodeAnalysisRuleSetDirectories. Change the version of the Visual Studio reference in the path to the one that is for VS2015 (a.k.a 14) and reload the project. (That worked for me.)

Alternatively delete all references of

<CodeAnalysisRuleSetDirectories> <CodeAnalysisIgnoreBuiltInRuleSets>  <CodeAnalysisRuleDirectories>  <CodeAnalysisIgnoreBuiltInRules> 

I found the solution here.

like image 168
participant Avatar answered Sep 19 '22 16:09

participant


Use the DevEnvDir instead of the hardcoded path to your old version of VS (probably 2010).

<CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSetDirectories>;$(DevEnvDir)\..\..\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 
like image 23
timB33 Avatar answered Sep 23 '22 16:09

timB33