File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -690,15 +690,10 @@ Example `.props` file:
690
690
<?xml version =" 1.0" encoding =" utf-8" ?>
691
691
<Project ToolsVersion =" 14.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
692
692
<PropertyGroup >
693
- <CodeAnalysisRuleSetLocation Condition =" '$(NuGetPackageRoot)' != '' " >$(NuGetPackageRoot)\acme.stylecop\1.0.0</CodeAnalysisRuleSetLocation >
694
- <CodeAnalysisRuleSetLocation Condition =" '$(CodeAnalysisRuleSetLocation)' == '' and '$(SolutionDir)' != '' " >$(SolutionDir)\packages\acme.stylecop.1.0.0</CodeAnalysisRuleSetLocation >
695
- <CodeAnalysisRuleSetLocation Condition =" '$(CodeAnalysisRuleSetLocation)' == '' " >$([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))\packages\acme.stylecop.1.0.0</CodeAnalysisRuleSetLocation >
696
- </PropertyGroup >
697
- <PropertyGroup >
698
- <CodeAnalysisRuleSet >$(CodeAnalysisRuleSetLocation)\acme.stylecop.ruleset</CodeAnalysisRuleSet >
693
+ <CodeAnalysisRuleSet >$(MSBuildThisFileDirectory)..\acme.stylecop.ruleset</CodeAnalysisRuleSet >
699
694
</PropertyGroup >
700
695
<ItemGroup >
701
- <AdditionalFiles Include =" $(CodeAnalysisRuleSetLocation) \stylecop.json" Link =" stylecop.json" />
696
+ <AdditionalFiles Include =" $(MSBuildThisFileDirectory).. \stylecop.json" Link =" stylecop.json" />
702
697
</ItemGroup >
703
698
</Project >
704
699
```
You can’t perform that action at this time.
0 commit comments