Merge pull request #2792 from eerhardt/Relative

Execute 'csc' with working directory set to the project directory.
This commit is contained in:
Eric Erhardt 2016-05-02 18:53:57 -05:00
commit 9a85205781
18 changed files with 124 additions and 13 deletions

View file

@ -0,0 +1,26 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
namespace TestLibrary
{
public class AttributeWithoutUsage : Attribute
{
}
public class ClassWithUndisposedStream
{
private Stream _nonDisposedStream = new MemoryStream();
public ClassWithUndisposedStream()
{
}
public Stream GetStream()
{
return _nonDisposedStream;
}
}
}

View file

@ -0,0 +1,16 @@
{
"version": "1.0.0-*",
"buildOptions": {
"additionalArguments": [ "/ruleset:../global.ruleset" ]
},
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"System.Runtime.Analyzers": {
"version": "1.1.0",
"type": "build"
}
},
"frameworks": {
"netstandard1.5": {}
}
}

View 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>