Skip to content

Commit

Permalink
remove .runsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertk committed Sep 17, 2023
1 parent 0a9bcb8 commit 8e5fcf7
Show file tree
Hide file tree
Showing 9 changed files with 209 additions and 209 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>preview</AnalysisLevel>
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<LangVersion>preview</LangVersion>
<NoWarn>$(NoWarn);NU5105;CS1591</NoWarn>
Expand Down
7 changes: 4 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
</PropertyGroup>

<ItemGroup>
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
<!--<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="9.10.0.77988" />-->
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -58,6 +59,6 @@
<PackageVersion Include="xunit.assemblyfixture" Version="2.2.0" />
<PackageVersion Include="xunit.assert" Version="2.5.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.0"/>

<PackageVersion Include="envdte" Version="17.7.37355" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/coverlet.core/Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Coverlet.Core.Exceptions
{
[Serializable]
internal class CoverletException : Exception
public class CoverletException : Exception
{
public CoverletException() { }
public CoverletException(string message) : base(message) { }
Expand Down
5 changes: 3 additions & 2 deletions src/coverlet.msbuild.tasks/InstrumentationTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ public override bool Execute()
ServiceProvider.GetService<ICecilSymbolHelper>());

CoveragePrepareResult prepareResult = coverage.PrepareModules();
InstrumenterState = new TaskItem(System.IO.Path.GetTempFileName());
using Stream instrumentedStateFile = fileSystem.NewFileStream(InstrumenterState.ItemSpec, FileMode.Open, FileAccess.Write);
string randomPath = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetRandomFileName());
InstrumenterState = new TaskItem(randomPath);
using Stream instrumentedStateFile = fileSystem.NewFileStream(InstrumenterState.ItemSpec, FileMode.CreateNew, FileAccess.Write);
using Stream serializedState = CoveragePrepareResult.Serialize(prepareResult);
serializedState.CopyTo(instrumentedStateFile);
}
Expand Down
2 changes: 2 additions & 0 deletions test/coverlet.core.tests/coverlet.core.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<PackageReference Include="Tmds.ExecFunction" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
<!-- https://github.com/tmds/Tmds.ExecFunction/blob/15b5456a49c2d2bd34b59dc8e7c88bc34ac674a0/src/Tmds.ExecFunction/Tmds.ExecFunction.targets#L3C1-L3C1 workaraound -->
<PackageReference Include="envdte" VersionOverride="17.7.37355" />
</ItemGroup>

<ItemGroup>
Expand Down
379 changes: 190 additions & 189 deletions test/coverlet.integration.tests/DeterministicBuild.cs

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions test/coverlet.msbuild.tasks.tests/.runsettings

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<Nullable>enable</Nullable>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<RunSettingsFilePath>$(MSBuildThisFileDirectory).runsettings</RunSettingsFilePath>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions test/coverlet.tests.projectsample.wpf6/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# top-most EditorConfig file
# We don't want to import other EditorConfig files and we want
# to ensure no rules are enabled for these asset source files.
root = true

[*.cs]
# Default severity for all analyzer diagnostics
dotnet_analyzer_diagnostic.severity = none

0 comments on commit 8e5fcf7

Please sign in to comment.