Skip to content

Commit 6333dec

Browse files
nvborisenkodiemol
andauthored
[dotnet] Clean main csproj files to be more readable (#12052)
Clean csproj files Co-authored-by: Diego Molina <[email protected]>
1 parent 89f1f08 commit 6333dec

2 files changed

Lines changed: 7 additions & 133 deletions

File tree

dotnet/src/support/WebDriver.Support.csproj

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
<BuildSystem>visual-studio</BuildSystem>
88
</PropertyGroup>
99

10-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
11-
<OutputPath>..\..\..\build\cli\Release\</OutputPath>
12-
</PropertyGroup>
13-
14-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
15-
<OutputPath>..\..\..\build\cli\Debug\</OutputPath>
10+
<PropertyGroup>
11+
<OutputPath>..\..\..\build\cli\$(Configuration)\</OutputPath>
1612
</PropertyGroup>
1713

1814
<PropertyGroup>
@@ -25,51 +21,8 @@
2521
<PackageId>Selenium.Support</PackageId>
2622
<AssemblyVersion>4.0.0.0</AssemblyVersion>
2723
<FileVersion>4.0.0.0</FileVersion>
28-
</PropertyGroup>
29-
30-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net45|AnyCPU'">
31-
<DocumentationFile>..\..\..\build\cli\Release\net45\WebDriver.Support.xml</DocumentationFile>
32-
</PropertyGroup>
33-
34-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net45|AnyCPU'">
35-
<DocumentationFile>..\..\..\build\cli\Debug\net45\WebDriver.Support.xml</DocumentationFile>
36-
<WarningLevel>0</WarningLevel>
37-
</PropertyGroup>
38-
39-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net46|AnyCPU'">
40-
<DocumentationFile>..\..\..\build\cli\Release\net46\WebDriver.Support.xml</DocumentationFile>
41-
</PropertyGroup>
42-
43-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net46|AnyCPU'">
44-
<DocumentationFile>..\..\..\build\cli\Debug\net46\WebDriver.Support.xml</DocumentationFile>
45-
<WarningLevel>0</WarningLevel>
46-
</PropertyGroup>
47-
48-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net48|AnyCPU'">
49-
<DocumentationFile>..\..\..\build\cli\Release\net48\WebDriver.Support.xml</DocumentationFile>
50-
</PropertyGroup>
51-
52-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net48|AnyCPU'">
53-
<DocumentationFile>..\..\..\build\cli\Debug\net48\WebDriver.Support.xml</DocumentationFile>
54-
<WarningLevel>0</WarningLevel>
55-
</PropertyGroup>
56-
57-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
58-
<DocumentationFile>..\..\..\build\cli\Release\netstandard2.0\WebDriver.Support.xml</DocumentationFile>
59-
</PropertyGroup>
60-
61-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
62-
<DocumentationFile>..\..\..\build\cli\Debug\netstandard2.0\WebDriver.Support.xml</DocumentationFile>
63-
<WarningLevel>0</WarningLevel>
64-
</PropertyGroup>
65-
66-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.1|AnyCPU'">
67-
<DocumentationFile>..\..\..\build\cli\Release\netstandard2.1\WebDriver.Support.xml</DocumentationFile>
68-
</PropertyGroup>
6924

70-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.1|AnyCPU'">
71-
<DocumentationFile>..\..\..\build\cli\Debug\netstandard2.1\WebDriver.Support.xml</DocumentationFile>
72-
<WarningLevel>0</WarningLevel>
25+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7326
</PropertyGroup>
7427

7528
<ItemGroup>

dotnet/src/webdriver/WebDriver.csproj

Lines changed: 4 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@
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>
9+
<PropertyGroup>
10+
<OutputPath>..\..\..\build\cli\$(Configuration)\</OutputPath>
1511
</PropertyGroup>
1612

1713
<PropertyGroup>
@@ -24,60 +20,8 @@
2420
<PackageId>Selenium.WebDriver</PackageId>
2521
<AssemblyVersion>4.0.0.0</AssemblyVersion>
2622
<FileVersion>4.0.0.0</FileVersion>
27-
</PropertyGroup>
28-
29-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net45|AnyCPU'">
30-
<DocumentationFile>..\..\..\build\cli\Release\net45\WebDriver.xml</DocumentationFile>
31-
</PropertyGroup>
32-
33-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net45|AnyCPU'">
34-
<DocumentationFile>..\..\..\build\cli\Debug\net45\WebDriver.xml</DocumentationFile>
35-
<WarningLevel>0</WarningLevel>
36-
</PropertyGroup>
37-
38-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net46|AnyCPU'">
39-
<DocumentationFile>..\..\..\build\cli\Release\net46\WebDriver.xml</DocumentationFile>
40-
</PropertyGroup>
41-
42-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net46|AnyCPU'">
43-
<DocumentationFile>..\..\..\build\cli\Debug\net46\WebDriver.xml</DocumentationFile>
44-
<WarningLevel>0</WarningLevel>
45-
</PropertyGroup>
46-
47-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net47|AnyCPU'">
48-
<DocumentationFile>..\..\..\build\cli\Release\net47\WebDriver.xml</DocumentationFile>
49-
</PropertyGroup>
50-
51-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net47|AnyCPU'">
52-
<DocumentationFile>..\..\..\build\cli\Debug\net47\WebDriver.xml</DocumentationFile>
53-
<WarningLevel>0</WarningLevel>
54-
</PropertyGroup>
55-
56-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net48|AnyCPU'">
57-
<DocumentationFile>..\..\..\build\cli\Release\net48\WebDriver.xml</DocumentationFile>
58-
</PropertyGroup>
59-
60-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net48|AnyCPU'">
61-
<DocumentationFile>..\..\..\build\cli\Debug\net48\WebDriver.xml</DocumentationFile>
62-
<WarningLevel>0</WarningLevel>
63-
</PropertyGroup>
64-
65-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
66-
<DocumentationFile>..\..\..\build\cli\Release\netstandard2.0\WebDriver.xml</DocumentationFile>
67-
</PropertyGroup>
6823

69-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
70-
<DocumentationFile>..\..\..\build\cli\Debug\netstandard2.0\WebDriver.xml</DocumentationFile>
71-
<WarningLevel>0</WarningLevel>
72-
</PropertyGroup>
73-
74-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.1|AnyCPU'">
75-
<DocumentationFile>..\..\..\build\cli\Release\netstandard2.1\WebDriver.xml</DocumentationFile>
76-
</PropertyGroup>
77-
78-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.1|AnyCPU'">
79-
<DocumentationFile>..\..\..\build\cli\Debug\netstandard2.1\WebDriver.xml</DocumentationFile>
80-
<WarningLevel>0</WarningLevel>
24+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8125
</PropertyGroup>
8226

8327
<ItemGroup>
@@ -112,7 +56,7 @@
11256
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.19.0" />
11357
</ItemGroup>
11458

115-
<ItemGroup Condition="'$(OS)' == 'WINDOWS_NT'">
59+
<ItemGroup>
11660
<EmbeddedResource Include="$(ProjectDir)..\..\..\third_party\js\selenium\webdriver.json">
11761
<Visible>False</Visible>
11862
<LogicalName>webdriver_prefs.json</LogicalName>
@@ -135,29 +79,6 @@
13579
</EmbeddedResource>
13680
</ItemGroup>
13781

138-
<ItemGroup Condition="'$(OS)' != 'WINDOWS_NT'">
139-
<EmbeddedResource Include="$(ProjectDir)../../../third_party/js/selenium/webdriver.json">
140-
<Visible>False</Visible>
141-
<LogicalName>webdriver_prefs.json</LogicalName>
142-
</EmbeddedResource>
143-
<EmbeddedResource Include="$(ProjectDir)../../../bazel-bin/javascript/webdriver/atoms/get-attribute.js">
144-
<Visible>False</Visible>
145-
<LogicalName>get-attribute.js</LogicalName>
146-
</EmbeddedResource>
147-
<EmbeddedResource Include="$(ProjectDir)../../../bazel-bin/javascript/atoms/fragments/is-displayed.js">
148-
<Visible>False</Visible>
149-
<LogicalName>is-displayed.js</LogicalName>
150-
</EmbeddedResource>
151-
<EmbeddedResource Include="$(ProjectDir)../../../bazel-bin/javascript/atoms/fragments/find-elements.js">
152-
<Visible>False</Visible>
153-
<LogicalName>find-elements.js</LogicalName>
154-
</EmbeddedResource>
155-
<EmbeddedResource Include="$(ProjectDir)../../../javascript/cdp-support/mutation-listener.js">
156-
<Visible>False</Visible>
157-
<LogicalName>mutation-listener.js</LogicalName>
158-
</EmbeddedResource>
159-
</ItemGroup>
160-
16182
<ItemGroup Condition="'$(TargetFramework)'!='net6.0' And '$(TargetFramework)'!='net5.0' And '$(TargetFramework)'!='netstandard2.0' And '$(TargetFramework)'!='netstandard2.1'">
16283
<Reference Include="System.Net.Http" />
16384
<Reference Include="System.IO.Compression" />

0 commit comments

Comments
 (0)