Skip to content

Commit e7a916f

Browse files
authored
Update dotnetcore.yml
1 parent cdc581d commit e7a916f

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,13 @@ jobs:
88
runs-on: windows-latest
99

1010
steps:
11-
- run: |
12-
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
13-
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
14-
$componentsToAdd = @(
15-
"Microsoft.Net.Component.6.0.SDK",
16-
"Microsoft .NET Framework 6.0 Targeting Pack"
17-
)
18-
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
19-
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
20-
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
21-
if ($process.ExitCode -eq 0)
22-
{
23-
Write-Host "components have been successfully added"
24-
}
25-
else
26-
{
27-
Write-Host "components were not installed"
28-
exit 1
29-
}
3011
- uses: actions/checkout@v1
3112
- name: Setup .Net Core
3213
uses: actions/setup-dotnet@v1
3314
with:
3415
dotnet-version: 3.1.100
3516
- name: Build
36-
run: dotnet build --configuration Release
17+
run: dotnet build -f netstandard2.1 --configuration Release
3718

3819
- name: Test
39-
run: dotnet test --configuration Release
20+
run: dotnet test -f netstandard2.1 --configuration Release

0 commit comments

Comments
 (0)