Skip to content

Commit c845813

Browse files
committed
Adjust generation scripts to explicitly choose the MSBuild engine
- also ensure native assets are included in GenerateReferenceAssemblies.ps1 build
1 parent 75626c1 commit c845813

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

eng/scripts/GenerateProjectList.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ param(
33
)
44
$ErrorActionPreference = 'stop'
55

6+
Remove-Item variable:global:_BuildTool -ea Ignore
7+
$msbuildEngine = 'dotnet'
68
$repoRoot = Resolve-Path "$PSScriptRoot/../.."
79

810
& "$repoRoot\eng\common\msbuild.ps1" -ci:$ci "$repoRoot/eng/CodeGen.proj" `

eng/scripts/GenerateReferenceAssemblies.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ param(
33
)
44
$ErrorActionPreference = 'stop'
55

6+
# GenAPI with `dotnet msbuild` doesn't consistently order attributes in Microsoft.AspNetCore.Mvc.TagHelpers.netcoreapp.cs
7+
$msbuildEngine = 'vs'
8+
9+
Remove-Item variable:global:_BuildTool -ea Ignore
610
$repoRoot = Resolve-Path "$PSScriptRoot/../.."
711

812
& "$repoRoot\eng\common\msbuild.ps1" -ci:$ci "$repoRoot/eng/CodeGen.proj" `
913
/t:GenerateReferenceSources `
10-
/bl:artifacts/log/genrefassemblies.binlog
14+
/bl:artifacts/log/genrefassemblies.binlog `
15+
/p:BuildNative=true

0 commit comments

Comments
 (0)