Skip to content

Commit 8fa8107

Browse files
[VMR] Codeflow e26a16c-e26a16c
[[ commit created by automation ]]
1 parent e26a16c commit 8fa8107

File tree

10 files changed

+38
-19
lines changed

10 files changed

+38
-19
lines changed

eng/Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656
$(RepoRoot)src\SignalR\perf\benchmarkapps\**\*.csproj;
5757
" />
5858

59-
<!-- In the VMR, we don't build the native ANCM bits in pass 1 -->
59+
<!-- In the .NET product build mode, don't build the native ANCM bits in pass 1 -->
6060
<ProjectToExclude Include="
6161
$(RepoRoot)src\Installers\**\*.vcxproj;
6262
"
6363
Condition=" '$(BuildNative)' == 'true' and '$(DotNetBuild)' == 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1') " />
6464

6565

66-
<!-- This project requires inputs from x64, x86, and arm64 on Windows - therefore in the VMR, we build it in pass 2 -->
66+
<!-- This project requires inputs from x64, x86, and arm64 on Windows - therefore in the .NET product build mode, build it in pass 2 -->
6767
<ProjectToExclude Include="
6868
$(RepoRoot)src\Servers\IIS/IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj;
6969
"
@@ -83,7 +83,7 @@
8383
</ProjectToBuild>
8484
</ItemGroup>
8585
</When>
86-
<!-- Projects to build in VMR build pass 2 -->
86+
<!-- Projects to build in .NET product build pass 2 -->
8787
<When Condition="'$(DotNetBuildPass)' == '2'">
8888
<ItemGroup Condition=" '$(DotNetBuild)' == 'true' AND '$(TargetOsName)' == 'win' AND '$(TargetArchitecture)' == 'x64' ">
8989
<!-- Build Hosting Bundle -->
@@ -264,7 +264,7 @@
264264
<_VcxTargetPlatform Condition="'$(TargetArchitecture)' == 'arm64'">ARM64</_VcxTargetPlatform>
265265
</PropertyGroup>
266266

267-
<!-- In the VMR, we build the installers entirely via HostingBundle ProjectReferences in pass 2 -->
267+
<!-- In .NET product build mode, build the installers entirely via HostingBundle ProjectReferences in pass 2 -->
268268
<ItemGroup Condition="'$(DotNetBuild)' != 'true' and '$(_BuildWindowsInstallers)' == 'true' ">
269269
<!-- Build the ANCM custom action -->
270270
<InstallerProject Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\CustomAction\aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x64" />

eng/Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<TargetRuntimeIdentifier Condition="'$(TargetRuntimeIdentifier)' == ''">$(TargetOsName)-$(TargetArchitecture)</TargetRuntimeIdentifier>
1313
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>
14-
<DefaultAppHostRuntimeIdentifier Condition=" '$(DotNetBuild)' == 'true' ">$(TargetRuntimeIdentifier)</DefaultAppHostRuntimeIdentifier>
14+
<DefaultAppHostRuntimeIdentifier Condition="'$(DotNetBuild)' == 'true'">$(TargetRuntimeIdentifier)</DefaultAppHostRuntimeIdentifier>
1515

1616
<BuildNodeJS>$(BuildNodeJSUnlessSourcebuild)</BuildNodeJS>
1717
<BuildNodeJS Condition="'$(DotNetBuildSourceOnly)' == 'true'">false</BuildNodeJS>

eng/Dependencies.props

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,23 @@ and are generated based on the last package release.
258258
Condition=" $([System.String]::new('%(Identity)').StartsWith('Microsoft.NETCore.App.Runtime.')) or $([System.String]::new('%(Identity)').StartsWith('Microsoft.NETCore.App.Crossgen2.'))">$(MicrosoftNETCoreAppRefVersion)</Version>
259259
</LatestPackageReference>
260260
</ItemGroup>
261+
262+
<!-- Replicates the same overriding of versions that occurs on Roslyn package versions for source only builds -->
263+
<ItemGroup Label="Source only build overrides" Condition="'$(DotNetBuildSourceOnly)' == 'true'">
264+
<LatestPackageReference Update="Microsoft.CodeAnalysis.Common">
265+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
266+
</LatestPackageReference>
267+
<LatestPackageReference Update="Microsoft.CodeAnalysis.CSharp">
268+
<Version>$(Analyzer_MicrosoftCodeAnalysisCSharpVersion)</Version>
269+
</LatestPackageReference>
270+
<LatestPackageReference Update="Microsoft.CodeAnalysis.CSharp.Workspaces">
271+
<Version>$(Analyzer_MicrosoftCodeAnalysisCSharpWorkspacesVersion)</Version>
272+
</LatestPackageReference>
273+
<LatestPackageReference Update="Microsoft.CodeAnalysis.ExternalAccess.AspNetCore">
274+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
275+
</LatestPackageReference>
276+
<LatestPackageReference Update="Microsoft.CodeAnalysis.Razor">
277+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
278+
</LatestPackageReference>
279+
</ItemGroup>
261280
</Project>

eng/Publishing.props

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<Project>
2+
23
<PropertyGroup>
34
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets>
45

5-
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows.
6-
Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have
7-
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package
8-
to be published. Use DotNetBuildRepo is only set in the internal source build,
9-
and Build.proj is invoked from the wrapper build. -->
6+
<!-- Don't sign and publish rid agnostic nuget packages from other builds than windows when not building
7+
inside the VMR. Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have
8+
the nupkgs pushed. -->
109
<EnableDefaultArtifacts Condition="'$(OS)' != 'Windows_NT' and
1110
'$(PostBuildSign)' != 'true' and
12-
'$(DotNetBuildRepo)' != 'true'">false</EnableDefaultArtifacts>
11+
'$(DotNetBuild)' != 'true'">false</EnableDefaultArtifacts>
1312

1413
<!-- This avoids creating VS.*.symbols.nupkg packages that are identical to the original package. -->
1514
<AutoGenerateSymbolPackages>false</AutoGenerateSymbolPackages>

eng/SharedFramework.External.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<ExternalAspNetCoreAppReference Include="Microsoft.Extensions.Options" Version="$(MicrosoftExtensionsOptionsVersion)" />
4444
<ExternalAspNetCoreAppReference Include="Microsoft.Extensions.Primitives" Version="$(MicrosoftExtensionsPrimitivesVersion)" />
4545
<ExternalAspNetCoreAppReference Include="System.Security.Cryptography.Xml" Version="$(SystemSecurityCryptographyXmlVersion)" />
46+
<ExternalAspNetCoreAppReference Include="System.Threading.AccessControl" Version="$(SystemThreadingAccessControlVersion)" />
4647
<ExternalAspNetCoreAppReference Include="System.Threading.RateLimiting" Version="$(SystemThreadingRateLimitingVersion)" />
4748

4849
<!--

eng/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ $MSBuildArguments += "/p:Publish=$Publish"
282282
$MSBuildArguments += "/p:TargetArchitecture=$Architecture"
283283
$MSBuildArguments += "/p:TargetOsName=win"
284284

285-
if ($ProductBuild) { $MSBuildArguments += "/p:DotNetBuildRepo=$ProductBuild" }
285+
if ($ProductBuild) { $MSBuildArguments += "/p:DotNetBuild=$ProductBuild" }
286286

287287
if (-not $Configuration) {
288288
$Configuration = if ($CI) { 'Release' } else { 'Debug' }
@@ -298,7 +298,7 @@ if ($RuntimeSourceFeed -or $RuntimeSourceFeedKey) {
298298
$ToolsetBuildArguments += $runtimeFeedArg
299299
$ToolsetBuildArguments += $runtimeFeedKeyArg
300300
}
301-
if ($ProductBuild) { $ToolsetBuildArguments += "/p:DotNetBuildRepo=$ProductBuild" }
301+
if ($ProductBuild) { $ToolsetBuildArguments += "/p:DotNetBuild=$ProductBuild" }
302302

303303
# Split build categories between dotnet msbuild and desktop msbuild. Use desktop msbuild as little as possible.
304304
[string[]]$dotnetBuildArguments = ''

eng/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ fi
316316
[ ! -z "$build_nodejs" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildNodeJSUnlessSourcebuild=$build_nodejs"
317317
[ ! -z "$build_managed" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildManaged=$build_managed"
318318
[ ! -z "$build_installers" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildInstallers=$build_installers"
319-
[ ! -z "$product_build" ] && msbuild_args[${#msbuild_args[*]}]="-p:DotNetBuildRepo=$product_build"
319+
[ ! -z "$product_build" ] && msbuild_args[${#msbuild_args[*]}]="-p:DotNetBuild=$product_build"
320320
[ ! -z "$source_build" ] && msbuild_args[${#msbuild_args[*]}]="-p:DotNetBuildSourceOnly=$source_build"
321321

322322
# Run restore by default unless --no-restore or --no-build was specified.
@@ -354,7 +354,7 @@ if [ ! -z "$runtime_source_feed$runtime_source_feed_key" ]; then
354354
toolset_build_args[${#toolset_build_args[*]}]=$runtimeFeedArg
355355
toolset_build_args[${#toolset_build_args[*]}]=$runtimeFeedKeyArg
356356
fi
357-
[ ! -z "$product_build" ] && toolset_build_args[${#toolset_build_args[*]}]="-p:DotNetBuildRepo=$product_build"
357+
[ ! -z "$product_build" ] && toolset_build_args[${#toolset_build_args[*]}]="-p:DotNetBuild=$product_build"
358358
[ ! -z "$source_build" ] && toolset_build_args[${#toolset_build_args[*]}]="-p:DotNetBuildSourceOnly=$source_build"
359359

360360
# Initialize global variables need to be set before the import of Arcade is imported

eng/configure-toolset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# We could potentially try to find an existing installation that has all the required runtimes,
33
# but it's unlikely one will be available.
44

5-
if [ "${DotNetBuild:-false}" = false ]; then
5+
if [ "$product_build" = false ]; then
66
use_installed_dotnet_cli="false"
77
fi
88

eng/tools/GenerateFiles/Directory.Build.targets.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<ItemGroup>
6666
<!-- Use the same NETCore shared framework as repo built against except when building product code in servicing. -->
67-
<!-- We cannot use live shims when building tool packs in VMR - only package for current arch is available. -->
67+
<!-- We cannot use live shims when building tool packs in the .NET product mode as only packages for the current arch are available. -->
6868
<KnownFrameworkReference Update="Microsoft.NETCore.App" Condition=" '$(DotNetBuild)' != 'true' OR '$(PackAsToolShimRuntimeIdentifiers)' == '' ">
6969
<LatestRuntimeFrameworkVersion
7070
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRefVersion}</LatestRuntimeFrameworkVersion>
@@ -84,7 +84,7 @@
8484
<RuntimePackRuntimeIdentifiers Condition="'$(DotNetBuild)' == 'true'">%(RuntimePackRuntimeIdentifiers);$(TargetRuntimeIdentifier)</RuntimePackRuntimeIdentifiers>
8585
</KnownFrameworkReference>
8686

87-
<!-- We cannot use live shims when building tool packs in VMR - only package for current arch is available. -->
87+
<!-- We cannot use live shims when building tool packs in .NET product build mode as only packages for the current arch are available. -->
8888
<KnownAppHostPack Update="Microsoft.NETCore.App" Condition=" '$(DotNetBuild)' != 'true' OR '$(PackAsToolShimRuntimeIdentifiers)' == '' ">
8989
<AppHostPackVersion
9090
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRefVersion}</AppHostPackVersion>

src/Servers/IIS/IIS/src/Microsoft.AspNetCore.Server.IIS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</Target>
4646

4747
<ItemGroup Condition=" '$(UseIisNativeAssets)' == 'true' ">
48-
<!-- Only build the target platform for product build (DotNetBuild=true). -->
48+
<!-- Only build the target platform in .NET product build mode. -->
4949
<NativeProjectReference Include="$(MSBuildThisFileDirectory)..\..\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj" Platform="x64" Condition="'$(DotNetBuild)' != 'true'" />
5050
<NativeProjectReference Include="$(MSBuildThisFileDirectory)..\..\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj" Platform="Win32" Condition="'$(DotNetBuild)' != 'true'" />
5151
<NativeProjectReference Include="$(MSBuildThisFileDirectory)..\..\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj" Platform="ARM64" Condition="'$(DotNetBuild)' != 'true'" />

0 commit comments

Comments
 (0)