Skip to content

Commit 93e9507

Browse files
Merge pull request #252 from martincostello/Move-Usings
Move usings
2 parents ed291c3 + 40355e2 commit 93e9507

20 files changed

+68
-103
lines changed

Directory.Build.targets

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,4 @@
2727
</AssemblyAttribute>
2828
</ItemGroup>
2929
</Target>
30-
<!--
31-
Workaround bug in generation of _LocalTopLevelSourceRoot file path.
32-
See https://github.com/coverlet-coverage/coverlet/pull/863.
33-
-->
34-
<Target Name="ReferencedPathMaps" BeforeTargets="CoreCompile" DependsOnTargets="ResolveProjectReferences" >
35-
<MSBuild Projects="@(AnnotatedProjects->'%(FullPath)')"
36-
Targets="CoverletGetPathMap"
37-
Properties="TargetFramework=%(AnnotatedProjects.NearestTargetFramework)"
38-
SkipNonexistentTargets="true">
39-
<Output TaskParameter="TargetOutputs"
40-
ItemName="_LocalTopLevelSourceRoot" />
41-
</MSBuild>
42-
<ItemGroup>
43-
<_byProject Include="@(_LocalTopLevelSourceRoot->'%(MSBuildSourceProjectFile)')" OriginalPath="%(Identity)" />
44-
<_mapping Include="@(_byProject->'%(Identity)|%(OriginalPath)=%(MappedPath)')" />
45-
</ItemGroup>
46-
<PropertyGroup>
47-
<_sourceRootMappingFilePath>$([System.IO.Path]::Combine('$(OutputPath)', 'CoverletSourceRootsMapping'))</_sourceRootMappingFilePath>
48-
</PropertyGroup>
49-
<WriteLinesToFile File="$(_sourceRootMappingFilePath)" Lines="@(_mapping)"
50-
Overwrite="true" Encoding="Unicode"
51-
Condition="'@(_mapping)'!=''"
52-
WriteOnlyWhenDifferent="true" />
53-
<ItemGroup>
54-
<FileWrites Include="$(_sourceRootMappingFilePath)" Condition="'@(_mapping)'!=''" />
55-
</ItemGroup>
56-
</Target>
57-
<Target Name="CoverletGetPathMap"
58-
DependsOnTargets="InitializeSourceRootMappedPaths"
59-
Returns="@(_LocalTopLevelSourceRoot)"
60-
Condition="'$(DeterministicSourcePaths)' == 'true'">
61-
<ItemGroup>
62-
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
63-
</ItemGroup>
64-
</Target>
6530
</Project>

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.3" />
2020
</ItemGroup>
2121
<ItemGroup>
22-
<PackageReference Include="coverlet.msbuild" PrivateAssets="All" />
22+
<PackageReference Include="coverlet.msbuild" PrivateAssets="All" Condition=" '$(IsTestProject)' == 'true' " />
2323
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
2424
<PackageReference Include="ReportGenerator" PrivateAssets="All" />
2525
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" />

src/MartinCostello.BrowserStack.Automate/AutomatePlanStatus.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace MartinCostello.BrowserStack.Automate
57
{
6-
using Newtonsoft.Json;
7-
88
/// <summary>
99
/// A class representing the current status of a <c>BrowserStack</c> Automate plan.
1010
/// </summary>

src/MartinCostello.BrowserStack.Automate/Browser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace MartinCostello.BrowserStack.Automate
57
{
6-
using Newtonsoft.Json;
7-
88
/// <summary>
99
/// A class representing a browser.
1010
/// </summary>

src/MartinCostello.BrowserStack.Automate/BrowserStackAutomateClient.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using System;
5+
using System.Collections.Generic;
6+
using System.Globalization;
7+
using System.Linq;
8+
using System.Net;
9+
using System.Net.Http;
10+
using System.Net.Http.Headers;
11+
using System.Text;
12+
using System.Threading;
13+
using System.Threading.Tasks;
14+
using Newtonsoft.Json;
15+
416
namespace MartinCostello.BrowserStack.Automate
517
{
6-
using System;
7-
using System.Collections.Generic;
8-
using System.Globalization;
9-
using System.Linq;
10-
using System.Net;
11-
using System.Net.Http;
12-
using System.Net.Http.Headers;
13-
using System.Text;
14-
using System.Threading;
15-
using System.Threading.Tasks;
16-
using Newtonsoft.Json;
17-
1818
/// <summary>
1919
/// A class representing a client for the <c>BrowserStack</c> Automate REST API.
2020
/// </summary>

src/MartinCostello.BrowserStack.Automate/BrowserStackAutomateClientExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using System;
5+
using System.ComponentModel;
6+
using System.Threading;
7+
using System.Threading.Tasks;
8+
49
namespace MartinCostello.BrowserStack.Automate
510
{
6-
using System;
7-
using System.ComponentModel;
8-
using System.Threading;
9-
using System.Threading.Tasks;
10-
1111
/// <summary>
1212
/// A class containing extension methods for the <see cref="BrowserStackAutomateClient"/> class. This class cannot be inherited.
1313
/// </summary>

src/MartinCostello.BrowserStack.Automate/BrowserStackAutomateError.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace MartinCostello.BrowserStack.Automate
57
{
6-
using Newtonsoft.Json;
7-
88
/// <summary>
99
/// A class representing a BrowserStack Automate error.
1010
/// </summary>

src/MartinCostello.BrowserStack.Automate/BrowserStackAutomateException.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4-
namespace MartinCostello.BrowserStack.Automate
5-
{
6-
using System;
4+
using System;
75
#if NET451
8-
using System.Runtime.Serialization;
6+
using System.Runtime.Serialization;
97
#endif
108

9+
namespace MartinCostello.BrowserStack.Automate
10+
{
1111
/// <summary>
1212
/// Represents an error from the BrowserStack Automate API.
1313
/// </summary>

src/MartinCostello.BrowserStack.Automate/Build.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace MartinCostello.BrowserStack.Automate
57
{
6-
using Newtonsoft.Json;
7-
88
/// <summary>
99
/// A class representing a build.
1010
/// </summary>

src/MartinCostello.BrowserStack.Automate/BuildDetail.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) Martin Costello, 2015. All rights reserved.
22
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
33

4+
using System;
5+
using System.Collections.Generic;
6+
using Newtonsoft.Json;
7+
48
namespace MartinCostello.BrowserStack.Automate
59
{
6-
using System;
7-
using System.Collections.Generic;
8-
using Newtonsoft.Json;
9-
1010
/// <summary>
1111
/// A class representing detail about a build.
1212
/// </summary>

0 commit comments

Comments
 (0)