Skip to content

Commit 2e2a2da

Browse files
committed
Silence NET 5.0 EOL warnings
1 parent 39a3824 commit 2e2a2da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration-test/common.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ BeforeAll {
154154
Push-Location $projectPath
155155
try
156156
{
157-
dotnet restore | ForEach-Object { Write-Host $_ }
157+
dotnet restore /p:CheckEolTargetFramework=false | ForEach-Object { Write-Host $_ }
158158
if ($LASTEXITCODE -ne 0)
159159
{
160160
throw "Failed to restore the test app project."
@@ -175,7 +175,7 @@ BeforeAll {
175175
function DotnetNew([string] $type, [string] $name, [string] $framework)
176176
{
177177
Remove-Item -Path $name -Recurse -Force -ErrorAction SilentlyContinue
178-
dotnet new $type --output $name --framework $framework | ForEach-Object { Write-Host $_ }
178+
dotnet new $type --output $name --framework $framework --no-restore | ForEach-Object { Write-Host $_ }
179179
if ($LASTEXITCODE -ne 0)
180180
{
181181
throw "Failed to create the test app '$name' from template '$type'."

integration-test/msbuild.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ SentrySdk.CaptureMessage($"Hello from MSBuild app");
7676
{
7777
$config = "$PSScriptRoot/nuget.config"
7878
}
79-
dotnet restore msbuild-app.csproj --configfile $config | ForEach-Object { Write-Host $_ }
79+
dotnet restore msbuild-app.csproj --configfile $config /p:CheckEolTargetFramework=false | ForEach-Object { Write-Host $_ }
8080
$LASTEXITCODE | Should -Be 0
8181
Write-Host "::endgroup::"
8282

0 commit comments

Comments
 (0)