Skip to content

Commit 303eca7

Browse files
authored
Create main.yml
1 parent bdb3257 commit 303eca7

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build .NET Framework Project
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest
14+
15+
steps:
16+
# Checkout the repository
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
# Setup MSBuild
21+
- name: Setup MSBuild
22+
uses: microsoft/setup-msbuild@v1
23+
24+
# Setup NuGet
25+
- name: Setup NuGet
26+
uses: NuGet/setup-nuget@v1
27+
28+
# Restore NuGet packages
29+
- name: Restore NuGet packages
30+
run: nuget restore "source\Plugins.sln"
31+
32+
# Build the solution
33+
- name: Build solution
34+
run: msbuild "\source\Plugins.sln" /p:Configuration=Release
35+
36+
# Run tests (optional)
37+
#- name: Run tests
38+
#run: |
39+
#vstest.console.exe path\to\your\test\project.dll

0 commit comments

Comments
 (0)