Skip to content

Commit

Permalink
ci: ignore NuGet warning for package source mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed May 1, 2024
1 parent b94a373 commit aeb3a80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/templates/package-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ steps:
cd UnoApp1
& dotnet build UnoApp1.sln "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" /p:TreatWarningsAsErrors=true
& dotnet build UnoApp1.sln "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" /p:TreatWarningsAsErrors=true /p:NoWarn=NU1507
if ($LASTEXITCODE -ne 0)
{
throw "Exit code must be zero."
Expand Down
4 changes: 2 additions & 2 deletions build/templates/template-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ steps:
if ('${{ parameters.templateName }}' -eq 'unoapp-uwp')
{
$msbuild = vswhere -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
& $msbuild /r "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" /p:TreatWarningsAsErrors=true
& $msbuild /r "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" /p:TreatWarningsAsErrors=true /p:NoWarn=NU1507
}
else
{
& dotnet build "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" /p:TreatWarningsAsErrors=true
& dotnet build "/bl:$(build.artifactstagingdirectory)\$(Agent.JobName).binlog" /p:TreatWarningsAsErrors=true /p:NoWarn=NU1507
}
if ($LASTEXITCODE -ne 0)
Expand Down

0 comments on commit aeb3a80

Please sign in to comment.