2
2
# Licensed under the MIT License.
3
3
4
4
param (
5
- [string ]$Branch = " " , # This has to correspond with one of the AppEnvironment enum values
6
- [string ]$SolutionPath = " Files.sln "
7
- [string ]$StartupProjectPath = " "
8
- [string ]$Platform = " x64"
9
- [string ]$Configuration = " Debug"
10
- [string ]$AppxBundlePlatforms = " x64|arm64"
11
- [string ]$AppxPackageDir = " "
12
- [string ]$AppInstallerUrl = " " # Sideload only
13
- [string ]$AppxPackageCertKeyFile = " " # Debug only
5
+ [string ]$ReleaseBranch = " Debug " , # This has to correspond with one of the AppEnvironment enum values
6
+ [string ]$SolutionPath = " Files.slnx "
7
+ [string ]$StartupProjectPath = " "
8
+ [string ]$Platform = " x64"
9
+ [string ]$Configuration = " Debug"
10
+ [string ]$AppxBundlePlatforms = " x64|arm64"
11
+ [string ]$AppxPackageDir = " "
12
+ [string ]$AppInstallerUrl = " " # Sideload only
13
+ [string ]$AppxPackageCertKeyFile = " " # Debug only
14
14
)
15
15
16
16
# Restore the solution
17
17
msbuild $SolutionPath / t:Restore / p:Platform= $Platform / p:Configuration= $Configuration / p:PublishReadyToRun= true
18
18
19
- if ($Branch -eq " Debug" )
19
+ if ($ReleaseBranch -eq " Debug" )
20
20
{
21
21
if ($Platform -eq " x64" )
22
22
{
@@ -44,10 +44,11 @@ if ($Branch -eq "Debug")
44
44
/ p:AppxBundle= Never
45
45
}
46
46
}
47
- elseif ($Branch -contains " Sideload" )
47
+ elseif ($ReleaseBranch -contains " Sideload" )
48
48
{
49
49
msbuild $StartupProjectPath `
50
50
/ t:Build `
51
+ / clp:ErrorsOnly `
51
52
/ p:Platform= $Platform `
52
53
/ p:Configuration= $Configuration `
53
54
/ p:AppxBundlePlatforms= $AppxBundlePlatforms `
@@ -63,10 +64,11 @@ elseif ($Branch -contains "Sideload")
63
64
$fileContent = $fileContent.Replace (' http://schemas.microsoft.com/appx/appinstaller/2017/2' , $newSchema )
64
65
$fileContent | Set-Content $localFilePath
65
66
}
66
- elseif ($Branch -contains " Store" )
67
+ elseif ($ReleaseBranch -contains " Store" )
67
68
{
68
69
msbuild $StartupProjectPath `
69
70
/ t:Build `
71
+ / clp:ErrorsOnly `
70
72
/ p:Platform= $Platform `
71
73
/ p:Configuration= $Configuration `
72
74
/ p:AppxBundlePlatforms= $AppxBundlePlatforms `
0 commit comments