Skip to content

Commit 7cd20cf

Browse files
nvborisenkodiemol
andauthored
[dotnet] Fix building errors of the solution in VS via isolating output path per project (#12063)
* Isolate bin output per project * Ignore bin folder only for dotnet --------- Co-authored-by: Diego Molina <[email protected]>
1 parent b985016 commit 7cd20cf

11 files changed

Lines changed: 8 additions & 72 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ selenium.egg-info/
8080
third_party/java/jetty/jetty-repacked.jar
8181
*.user
8282
*.cache
83+
dotnet/**/bin/
8384
obj/
8485
*.opensdf
8586
*.suo

dotnet/src/support/WebDriver.Support.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
<BuildSystem>visual-studio</BuildSystem>
88
</PropertyGroup>
99

10-
<PropertyGroup>
11-
<OutputPath>..\..\..\build\cli\$(Configuration)\</OutputPath>
12-
</PropertyGroup>
13-
1410
<PropertyGroup>
1511
<AssemblyTitle>Selenium WebDriver Support</AssemblyTitle>
1612
<Description>Selenium WebDriver .NET Bindings support classes</Description>

dotnet/src/webdriver/WebDriver.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
<RootNamespace>OpenQA.Selenium</RootNamespace>
77
</PropertyGroup>
88

9-
<PropertyGroup>
10-
<OutputPath>..\..\..\build\cli\$(Configuration)\</OutputPath>
11-
</PropertyGroup>
12-
139
<PropertyGroup>
1410
<AssemblyTitle>WebDriver</AssemblyTitle>
1511
<Description>Selenium WebDriver API .NET Bindings</Description>

dotnet/test/chrome/WebDriver.Chrome.Tests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
<AssemblyName>WebDriver.Chrome.Tests</AssemblyName>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
10-
</PropertyGroup>
11-
12-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
13-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
14-
</PropertyGroup>
15-
168
<ItemGroup>
179
<Compile Remove="obj\**" />
1810
<EmbeddedResource Remove="obj\**" />
@@ -31,6 +23,7 @@
3123
</ItemGroup>
3224

3325
<ItemGroup>
26+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
3427
<PackageReference Include="NUnit" Version="3.13.2" />
3528
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
3629
</ItemGroup>

dotnet/test/common/WebDriver.Common.Tests.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
<RootNamespace>OpenQA.Selenium</RootNamespace>
77
</PropertyGroup>
88

9-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
10-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
11-
</PropertyGroup>
12-
13-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
14-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
15-
</PropertyGroup>
16-
179
<ItemGroup>
1810
<Compile Remove="obj\**" />
1911
<EmbeddedResource Remove="obj\**" />

dotnet/test/edge/WebDriver.Edge.Tests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
<AssemblyName>WebDriver.Edge.Tests</AssemblyName>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
10-
</PropertyGroup>
11-
12-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
13-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
14-
</PropertyGroup>
15-
168
<ItemGroup>
179
<Compile Remove="obj\**" />
1810
<EmbeddedResource Remove="obj\**" />
@@ -33,6 +25,7 @@
3325
</ItemGroup>
3426

3527
<ItemGroup>
28+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
3629
<PackageReference Include="NUnit" Version="3.13.2" />
3730
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
3831
</ItemGroup>

dotnet/test/firefox/WebDriver.Firefox.Tests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
<AssemblyName>WebDriver.Firefox.Tests</AssemblyName>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
10-
</PropertyGroup>
11-
12-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
13-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
14-
</PropertyGroup>
15-
168
<ItemGroup>
179
<Compile Remove="obj\**" />
1810
<EmbeddedResource Remove="obj\**" />
@@ -44,6 +36,7 @@
4436
</ItemGroup>
4537

4638
<ItemGroup>
39+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
4740
<PackageReference Include="NUnit" Version="3.13.2" />
4841
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
4942
</ItemGroup>

dotnet/test/ie/WebDriver.IE.Tests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
<RootNamespace>OpenQA.Selenium.IE</RootNamespace>
77
</PropertyGroup>
88

9-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
11-
</PropertyGroup>
12-
13-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
14-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
15-
</PropertyGroup>
16-
179
<ItemGroup>
1810
<Compile Remove="obj\**" />
1911
<EmbeddedResource Remove="obj\**" />
@@ -32,6 +24,7 @@
3224
</ItemGroup>
3325

3426
<ItemGroup>
27+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
3528
<PackageReference Include="NUnit" Version="3.13.2" />
3629
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
3730
</ItemGroup>

dotnet/test/remote/WebDriver.Remote.Tests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
<AssemblyName>WebDriver.Remote.Tests</AssemblyName>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
10-
</PropertyGroup>
11-
12-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
13-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
14-
</PropertyGroup>
15-
168
<ItemGroup>
179
<Compile Remove="obj\**" />
1810
<EmbeddedResource Remove="obj\**" />
@@ -29,6 +21,7 @@
2921
</ItemGroup>
3022

3123
<ItemGroup>
24+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
3225
<PackageReference Include="NUnit" Version="3.13.2" />
3326
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
3427
</ItemGroup>

dotnet/test/safari/WebDriver.Safari.Tests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
<AssemblyName>WebDriver.Safari.Tests</AssemblyName>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
10-
</PropertyGroup>
11-
12-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
13-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
14-
</PropertyGroup>
15-
168
<ItemGroup>
179
<Compile Remove="obj\**" />
1810
<EmbeddedResource Remove="obj\**" />
@@ -30,6 +22,7 @@
3022
</ItemGroup>
3123

3224
<ItemGroup>
25+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
3326
<PackageReference Include="NUnit" Version="3.13.2" />
3427
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
3528
</ItemGroup>

0 commit comments

Comments
 (0)