@@ -384,18 +384,18 @@ static string GetGlobalAnalyzerConfigTargetContents(string packageName)
384
384
<!-- PropertyGroup to compute global analyzer config file to be used -->
385
385
<PropertyGroup>{ propertyStringForSettingDefaultPropertyValue }
386
386
<!-- Set the default analysis mode, if not set by the user -->
387
- <_GlobalAnalyzerConfigAnalysisMode >$(AnalysisMode)</_GlobalAnalyzerConfigAnalysisMode >
388
- <_GlobalAnalyzerConfigAnalysisMode Condition=""'$(_GlobalAnalyzerConfigAnalysisMode )' == ''"">{ nameof ( AnalysisMode . Default ) } </_GlobalAnalyzerConfigAnalysisMode >
387
+ <_GlobalAnalyzerConfigAnalysisMode_ { trimmedPackageName } >$(AnalysisMode)</_GlobalAnalyzerConfigAnalysisMode_ { trimmedPackageName } >
388
+ <_GlobalAnalyzerConfigAnalysisMode_ { trimmedPackageName } Condition=""'$(_GlobalAnalyzerConfigAnalysisMode_ { trimmedPackageName } )' == ''"">{ nameof ( AnalysisMode . Default ) } </_GlobalAnalyzerConfigAnalysisMode_ { trimmedPackageName } >
389
389
390
390
<!-- GlobalAnalyzerConfig file name based on user specified package version '{ packageVersionPropName } ', if any. We replace '.' with '_' to map the version string to file name suffix. -->
391
- <_GlobalAnalyzerConfigFileName Condition=""'$({ packageVersionPropName } )' != ''"">AnalysisLevel_$({ packageVersionPropName } .Replace(""."",""_""))_$(_GlobalAnalyzerConfigAnalysisMode ).editorconfig</_GlobalAnalyzerConfigFileName >
391
+ <_GlobalAnalyzerConfigFileName_ { trimmedPackageName } Condition=""'$({ packageVersionPropName } )' != ''"">AnalysisLevel_$({ packageVersionPropName } .Replace(""."",""_""))_$(_GlobalAnalyzerConfigAnalysisMode_ { trimmedPackageName } ).editorconfig</_GlobalAnalyzerConfigFileName_ { trimmedPackageName } >
392
392
393
- <_GlobalAnalyzerConfigDir Condition=""'$(_GlobalAnalyzerConfigDir )' == ''"">$(MSBuildThisFileDirectory)config</_GlobalAnalyzerConfigDir >
394
- <_GlobalAnalyzerConfigFile Condition=""'$(_GlobalAnalyzerConfigFileName )' != ''"">$(_GlobalAnalyzerConfigDir )\$(_GlobalAnalyzerConfigFileName )</_GlobalAnalyzerConfigFile >
393
+ <_GlobalAnalyzerConfigDir_ { trimmedPackageName } Condition=""'$(_GlobalAnalyzerConfigDir_ { trimmedPackageName } )' == ''"">$(MSBuildThisFileDirectory)config</_GlobalAnalyzerConfigDir_ { trimmedPackageName } >
394
+ <_GlobalAnalyzerConfigFile_ { trimmedPackageName } Condition=""'$(_GlobalAnalyzerConfigFileName_ { trimmedPackageName } )' != ''"">$(_GlobalAnalyzerConfigDir_ { trimmedPackageName } )\$(_GlobalAnalyzerConfigFileName_ { trimmedPackageName } )</_GlobalAnalyzerConfigFile_ { trimmedPackageName } >
395
395
</PropertyGroup>
396
396
397
- <ItemGroup Condition=""Exists('$(_GlobalAnalyzerConfigFile )')"">
398
- <EditorConfigFiles Include=""$(_GlobalAnalyzerConfigFile )"" />
397
+ <ItemGroup Condition=""Exists('$(_GlobalAnalyzerConfigFile_ { trimmedPackageName } )')"">
398
+ <EditorConfigFiles Include=""$(_GlobalAnalyzerConfigFile_ { trimmedPackageName } )"" />
399
399
</ItemGroup>
400
400
</Target>
401
401
" ;
0 commit comments