Execute 'csc' with working directory set to the project directory.
When using a ruleset with a relative path in buildOptions, csc can't find the file because it is not working in the same directory as the project. Fix #2710
This commit is contained in:
parent
2827ef208a
commit
f2d917ed2e
10 changed files with 99 additions and 7 deletions
6
TestAssets/TestProjects/TestRuleSet/global.ruleset
Normal file
6
TestAssets/TestProjects/TestRuleSet/global.ruleset
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RuleSet Name="New Rule Set" Description=" " ToolsVersion="14.0">
|
||||
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
|
||||
<Rule Id="CA1018" Action="Hidden" />
|
||||
</Rules>
|
||||
</RuleSet>
|
Loading…
Add table
Add a link
Reference in a new issue