File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
1
param (
2
2
[switch ]$ci
3
3
)
4
- $ErrorActionPreference = ' stop'
5
4
5
+ $ErrorActionPreference = ' stop'
6
+ $msbuildEngine = ' dotnet'
6
7
$repoRoot = Resolve-Path " $PSScriptRoot /../.."
7
8
8
- & " $repoRoot \eng\common\msbuild.ps1" - ci:$ci " $repoRoot /eng/CodeGen.proj" `
9
+ try {
10
+ & " $repoRoot \eng\common\msbuild.ps1" - ci:$ci " $repoRoot /eng/CodeGen.proj" `
9
11
/ t:GenerateProjectList `
10
12
/ bl:artifacts/ log/ genprojlist.binlog
13
+ } finally {
14
+ Remove-Item variable:global:_BuildTool - ErrorAction Ignore
15
+ Remove-Item variable:global:_DotNetInstallDir - ErrorAction Ignore
16
+ Remove-Item variable:global:_ToolsetBuildProj - ErrorAction Ignore
17
+ Remove-Item variable:global:_MSBuildExe - ErrorAction Ignore
18
+ }
Original file line number Diff line number Diff line change 1
1
param (
2
2
[switch ]$ci
3
3
)
4
- $ErrorActionPreference = ' stop'
5
4
5
+ # GenAPI with `dotnet msbuild` doesn't consistently order attributes in Microsoft.AspNetCore.Mvc.TagHelpers.netcoreapp.cs
6
+ $msbuildEngine = ' vs'
7
+
8
+ $ErrorActionPreference = ' stop'
6
9
$repoRoot = Resolve-Path " $PSScriptRoot /../.."
7
10
8
- & " $repoRoot \eng\common\msbuild.ps1" - ci:$ci " $repoRoot /eng/CodeGen.proj" `
11
+ try {
12
+ & " $repoRoot \eng\common\msbuild.ps1" - ci:$ci " $repoRoot /eng/CodeGen.proj" `
9
13
/ t:GenerateReferenceSources `
10
- / bl:artifacts/ log/ genrefassemblies.binlog
14
+ / bl:artifacts/ log/ genrefassemblies.binlog `
15
+ / p:BuildNative= true
16
+ } finally {
17
+ Remove-Item variable:global:_BuildTool - ErrorAction Ignore
18
+ Remove-Item variable:global:_DotNetInstallDir - ErrorAction Ignore
19
+ Remove-Item variable:global:_ToolsetBuildProj - ErrorAction Ignore
20
+ Remove-Item variable:global:_MSBuildExe - ErrorAction Ignore
21
+ }
You can’t perform that action at this time.
0 commit comments