Skip to content

Commit

Permalink
chore: Upgrade - All Samples to run with latest uno and latest VS 2022
Browse files Browse the repository at this point in the history
chore: Upgrade - All Samples to run with latest uno and latest VS 2022

chore: Upgrade - All Samples to run with latest uno and latest VS 2022
  • Loading branch information
aesteves900 committed Sep 22, 2022
1 parent 4ed2863 commit 3074276
Show file tree
Hide file tree
Showing 131 changed files with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,30 @@ jobs:
$SolutionsToBuild = Get-ChildItem -Path **\*.sln -Recurse
$ArchiveFolderName = 'ArchivedProjects'
foreach ($SolutionName in $SolutionsToBuild) {
$solutionPath=[System.IO.Path]::GetDirectoryName($SolutionName);
git diff --quiet HEAD "origin/$(System.PullRequest.TargetBranch)" -- "$solutionPath"
# Only build if there a change in the solution path for the current PR, if we're in a PR
if( ('$(System.PullRequest.PullRequestId)' -eq '') -or ($global:LASTEXITCODE -ne 0)) {
$solutinPathParentDir=[System.IO.Directory]::GetParent($solutionPath).FullName;
& $env:msbuildpath $SolutionName /r /p:Configuration=Release /p:AotAssemblies=false /p:WasmShellILLinkerEnabled=false /ds ;
if($solutinPathParentDir.IndexOf($ArchiveFolderName) -eq (-1))
{
git diff --quiet HEAD "origin/$(System.PullRequest.TargetBranch)" -- "$solutionPath"
if (($lastexitcode -ne 0)) {
exit $lastexitcode
}
# Only build if there a change in the solution path for the current PR, if we're in a PR
if( ('$(System.PullRequest.PullRequestId)' -eq '') -or ($global:LASTEXITCODE -ne 0)) {
# Clean the whole tree after every build to avoid disk space issues
git clean -fdx
& $env:msbuildpath $SolutionName /r /p:Configuration=Release /p:AotAssemblies=false /p:WasmShellILLinkerEnabled=false /ds ;
if (($lastexitcode -ne 0)) {
exit $lastexitcode
}
# Clean the whole tree after every build to avoid disk space issues
git clean -fdx
}
}
}
Expand Down
File renamed without changes.

0 comments on commit 3074276

Please sign in to comment.