Skip to content

Commit 30555eb

Browse files
committed
Update to net8.0
1 parent 5221ff5 commit 30555eb

4 files changed

Lines changed: 58 additions & 2 deletions

File tree

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ignore build output and user-specific files for .NET projects
2+
bin/
3+
obj/
4+
# Visual Studio files
5+
.vs/
6+
# User-specific files
7+
*.user
8+
*.suo
9+
*.userosscache
10+
*.sln.docstates
11+
# Rider project files
12+
.idea/
13+
# OS generated files
14+
.DS_Store
15+
Thumbs.db

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,5 +528,22 @@ For example, under `bin/Debug/net10.0` you’ll find:
528528
In summary:
529529

530530
- **`obj/`** = “how MSBuild thinks” (intermediate compilation metadata and caches).
531-
- **`bin/`** = “what you actually run” (the compiled test assembly, dependencies, runtime configs, and Playwright tooling used by `dotnet test` and GitHub Actions.
531+
- **`bin/`** = “what you actually run” (the compiled test assembly, dependencies, runtime configs, and Playwright tooling used by `dotnet test` and GitHub Actions).
532+
533+
### What is `bin/Release/net8.0/playwright.ps1`?
534+
535+
This file is a PowerShell script generated by the Playwright .NET tooling when you build the project. It acts as the entry point for Playwright CLI commands specific to your test project. The script is used to install the required browsers and OS dependencies for Playwright tests, both locally and in CI environments (such as GitHub Actions).
536+
537+
For example, running:
538+
539+
```bash
540+
pwsh bin/Release/net8.0/playwright.ps1 install --with-deps
541+
```
542+
543+
installs all supported browsers and any required dependencies, ensuring your Playwright tests can run successfully. This script is automatically created in the appropriate output directory (e.g., `bin/Release/net8.0/`) when you build the project targeting .NET 8.0.
544+
545+
For more details, see:
546+
- Official .NET output directories documentation: [How .NET organizes build outputs (Microsoft Docs)](https://learn.microsoft.com/dotnet/core/project-sdk/overview#output-directory)
547+
- Playwright for .NET CLI documentation: [Playwright CLI for .NET](https://playwright.dev/dotnet/docs/cli)
548+
- About target frameworks: [Target frameworks in .NET (Microsoft Docs)](https://learn.microsoft.com/dotnet/standard/frameworks)
532549

Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests.csproj", "{2129A3AB-DC3C-F26A-5D24-037F9D5937E6}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{2129A3AB-DC3C-F26A-5D24-037F9D5937E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{2129A3AB-DC3C-F26A-5D24-037F9D5937E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{2129A3AB-DC3C-F26A-5D24-037F9D5937E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{2129A3AB-DC3C-F26A-5D24-037F9D5937E6}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {490680C7-F98C-495D-B0A1-62563FA4864C}
23+
EndGlobalSection
24+
EndGlobal

0 commit comments

Comments
 (0)