File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 '."
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments