зеркало из https://github.com/dotnet/samples.git
19e8c4e6ee
Co-authored-by: IEvangelist <IEvangelist@users.noreply.github.com> |
||
---|---|---|
.. | ||
DotNet.CodeAnalysis | ||
DotNet.GitHubAction | ||
.dockerignore | ||
.gitignore | ||
CODE_METRICS.md | ||
Dockerfile | ||
DotNet.GitHubAction.sln | ||
LICENSE | ||
README.md | ||
action.yml |
README.md
languages | products | page_type | name | urlFragment | description | ||||
---|---|---|---|---|---|---|---|---|---|
|
|
sample | GitHub Actions with .NET | create-dotnet-github-action | A .NET 6 console application that contains the example from Create a GitHub Action with .NET tutorial. |
Create a GitHub Action with .NET
This sample is a console application written in C# from the Create a GitHub Action with .NET tutorial. The article gives an overview of what is required to create a .NET GitHub Action.
Sample prerequisites
This sample is written in C# and targets .NET 6. It requires the .NET 6.0 SDK or later.
Building the sample
To download and run the sample, follow these steps:
- Download and unzip the sample.
- In Visual Studio (2022 or later):
- On the menu bar, choose File > Open > Project/Solution.
- Navigate to the folder that holds the unzipped sample code, and open the C# project (.csproj) file.
- Choose the F5 key to run with debugging, or Ctrl+F5 keys to run the project without debugging.
- From the command line:
- Navigate to the folder that holds the unzipped sample code.
- At the command line, type
dotnet run
.