mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-07 19:17:05 +09:00
Update unified build controls (#98330)
Generally a straight port. Removed ArcadeBuildFromSource and ArcadeBuildVertical and replaced with DotNetBuild.
This commit is contained in:
parent
bd5f6eb73f
commit
96159b2e5e
41 changed files with 85 additions and 86 deletions
|
@ -8,7 +8,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)SubsetValidation.targets" />
|
||||
<Import Project="$(RepositoryEngineeringDir)restore\optimizationData.targets" Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
<Import Project="$(RepositoryEngineeringDir)restore\optimizationData.targets" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
|
||||
<Target Name="BuildLocalTasks"
|
||||
BeforeTargets="Build">
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
|
||||
<!-- Used to determine if we should build some packages only once across multiple official build legs.
|
||||
For offline builds we still set OfficialBuildId but we need to build all the packages for a single
|
||||
leg only, so we also take DotNetBuildFromSource into account. -->
|
||||
<BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' and '$(OfficialBuildId)' != '' and '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg>
|
||||
leg only, so we also take DotNetBuildSourceOnly into account. -->
|
||||
<BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' and '$(OfficialBuildId)' != '' and '$(DotNetBuildSourceOnly)' != 'true'">true</BuildingAnOfficialBuildLeg>
|
||||
<!-- When doing a source build, we want to build the various text-only manifests in
|
||||
all cases, rather than ordinarily where we build them during mobile or wasm
|
||||
build legs. This makes the manifests available on source-only builds. -->
|
||||
<ForceBuildMobileManifests Condition="'$(DotNetBuildFromSource)' == 'true'">true</ForceBuildMobileManifests>
|
||||
<ForceBuildMobileManifests Condition="'$(DotNetBuildSourceOnly)' == 'true'">true</ForceBuildMobileManifests>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="CalculateTargetOS">
|
||||
|
@ -94,7 +94,7 @@
|
|||
|
||||
<!-- The minimum supported .NET version. -->
|
||||
<NetCoreAppMinimum>net8.0</NetCoreAppMinimum>
|
||||
<NetCoreAppMinimum Condition="'$(DotNetBuildFromSource)' == 'true'">$(NetCoreAppCurrent)</NetCoreAppMinimum>
|
||||
<NetCoreAppMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCoreAppCurrent)</NetCoreAppMinimum>
|
||||
|
||||
<!-- when this is updated, make sure to keep $(_NetCoreAppToolCurrent)
|
||||
in src/mono/wasm/build/WasmApp.LocalBuild.props
|
||||
|
@ -110,9 +110,9 @@
|
|||
<NetFrameworkCurrent>net48</NetFrameworkCurrent>
|
||||
<NetFrameworkToolCurrent>net472</NetFrameworkToolCurrent>
|
||||
<!-- Don't build for NETFramework during source-build. -->
|
||||
<NetFrameworkMinimum Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
<NetFrameworkToolCurrent Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
<NetFrameworkCurrent Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
<NetFrameworkMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
<NetFrameworkToolCurrent Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
<NetFrameworkCurrent Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
|
||||
<!-- Important: Set this to the GA version (or a close approximation) during servicing and adjust the TFM property below. -->
|
||||
<ApiCompatNetCoreAppBaselineVersion>8.0.0</ApiCompatNetCoreAppBaselineVersion>
|
||||
|
@ -176,7 +176,7 @@
|
|||
<MonoTargetsTasksAssemblyPath>$([MSBuild]::NormalizePath('$(MonoTargetsTasksDir)', 'MonoTargetsTasks.dll'))</MonoTargetsTasksAssemblyPath>
|
||||
<TestExclusionListTasksAssemblyPath>$([MSBuild]::NormalizePath('$(TestExclusionListTasksDir)', 'TestExclusionListTasks.dll'))</TestExclusionListTasksAssemblyPath>
|
||||
<CoreCLRToolPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'coreclr', '$(TargetOS).$(TargetArchitecture).$(RuntimeConfiguration)'))</CoreCLRToolPath>
|
||||
<ILAsmToolPath Condition="'$(DotNetBuildFromSource)' == 'true' or '$(BuildArchitecture)' == 's390x' or '$(BuildArchitecture)' == 'ppc64le'">$(CoreCLRToolPath)</ILAsmToolPath>
|
||||
<ILAsmToolPath Condition="'$(DotNetBuildSourceOnly)' == 'true' or '$(BuildArchitecture)' == 's390x' or '$(BuildArchitecture)' == 'ppc64le'">$(CoreCLRToolPath)</ILAsmToolPath>
|
||||
<WasmtimeDir Condition="'$(WasmtimeDir)' == '' and '$(WASMTIME_PATH)' != '' and Exists($(WASMTIME_PATH))">$(WASMTIME_PATH)</WasmtimeDir>
|
||||
<WasmtimeDir Condition="'$(WasmtimeDir)' == ''">$([MSBuild]::NormalizeDirectory($(ArtifactsObjDir), 'wasmtime'))</WasmtimeDir>
|
||||
<InstallWasmtimeForTests Condition="'$(InstallWasmtimeForTests)' == '' and !Exists($(WasmtimeDir))">true</InstallWasmtimeForTests>
|
||||
|
@ -184,7 +184,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="CalculatePortableBuild">
|
||||
<PortableBuild Condition="'$(PortableBuild)' == '' and '$(DotNetBuildFromSource)' == 'true'">false</PortableBuild>
|
||||
<PortableBuild Condition="'$(PortableBuild)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">false</PortableBuild>
|
||||
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -298,8 +298,8 @@
|
|||
|
||||
<!--Feature switches -->
|
||||
<PropertyGroup>
|
||||
<NoPgoOptimize Condition="'$(NoPgoOptimize)' == '' and '$(DotNetBuildFromSource)' == 'true'">true</NoPgoOptimize>
|
||||
<EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(DotNetBuildFromSource)' == 'true'">false</EnableNgenOptimization>
|
||||
<NoPgoOptimize Condition="'$(NoPgoOptimize)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</NoPgoOptimize>
|
||||
<EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">false</EnableNgenOptimization>
|
||||
<EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and ('$(Configuration)' == 'Release' or '$(Configuration)' == 'Checked')">true</EnableNgenOptimization>
|
||||
<!-- Enable NuGet static graph evaluation to optimize incremental restore -->
|
||||
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
|
||||
|
@ -380,7 +380,7 @@
|
|||
<!-- Always pass portable to override arcade sdk which uses embedded for local builds -->
|
||||
<DebugType>portable</DebugType>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == '' and '$(DotNetBuildFromSource)' == 'true'">true</KeepNativeSymbols>
|
||||
<KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</KeepNativeSymbols>
|
||||
<KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == ''">false</KeepNativeSymbols>
|
||||
<!-- Used for launchSettings.json and runtime config files. -->
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
When .NET gets built from source, make the SDK aware there are bootstrap packages
|
||||
for Microsoft.NETCore.App.Runtime.<rid> and Microsoft.NETCore.App.Crossgen2.<rid>.
|
||||
-->
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
|
||||
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
|
||||
<KnownFrameworkReference Update="Microsoft.NETCore.App">
|
||||
<RuntimePackRuntimeIdentifiers
|
||||
Condition="'%(TargetFramework)' == '$(NetCoreAppCurrent)'">%(RuntimePackRuntimeIdentifiers);$(PackageRID)</RuntimePackRuntimeIdentifiers>
|
||||
|
@ -88,7 +88,7 @@
|
|||
<PropertyGroup>
|
||||
<!-- when building from source we need to use the current version of MetadataLoadContext as the toolset version, but source-build imports
|
||||
another props file which overrides the SystemReflectionMetadataLoadContextVersion from Version.props so we can't set it there -->
|
||||
<SystemReflectionMetadataLoadContextToolsetVersion Condition="'$(DotNetBuildFromSource)' == 'true'">$(SystemReflectionMetadataLoadContextVersion)</SystemReflectionMetadataLoadContextToolsetVersion>
|
||||
<SystemReflectionMetadataLoadContextToolsetVersion Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(SystemReflectionMetadataLoadContextVersion)</SystemReflectionMetadataLoadContextToolsetVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="ValidateTargetOSLowercase"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<!-- Disable analyzers in sourcebuild -->
|
||||
<RunAnalyzers Condition="'$(DotNetBuildFromSource)' == 'true'">false</RunAnalyzers>
|
||||
<RunAnalyzers Condition="'$(DotNetBuildSourceOnly)' == 'true'">false</RunAnalyzers>
|
||||
<EnableNETAnalyzers Condition="'$(EnableNETAnalyzers)' == ''">$(RunAnalyzers)</EnableNETAnalyzers>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(RunAnalyzers)' != 'false'">
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
package can't be referenced directly but rather has to have it's assets manually copied
|
||||
out. This logic is responsible for doing that.
|
||||
-->
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
|
||||
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<Content Include="$(NuGetPackageRoot)\microsoft.diasymreader.native\$(MicrosoftDiaSymReaderNativeVersion)\runtimes\win\native\Microsoft.DiaSymReader.Native.x86.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
|
|
|
@ -38,9 +38,9 @@
|
|||
<Target Name="GetRuntimeSourceBuildCommandConfiguration"
|
||||
BeforeTargets="GetSourceBuildCommandConfiguration">
|
||||
<PropertyGroup>
|
||||
<!-- Properties that control the source-build configuration should be added to the repository and guarded with the DotNetBuildFromSource Condition.
|
||||
This allows to build the repository using './build.sh <args> /p:DotNetBuildFromSource=true'.
|
||||
Properties that control flags from source-build, and the expected output for source-build should be added to this file. -->
|
||||
<!-- Properties that control source-only build configurations should be added to the repository and guarded with DotNetBuildSourceOnly conditions.
|
||||
This allows to build the repository using './build.sh <args> /p:DotNetBuildSourceOnly=true'.
|
||||
Properties that control flags from the VMR build, and the expected output for the VMR build should be added to this file. -->
|
||||
<InnerBuildArgs>$(InnerBuildArgs) $(FlagParameterPrefix)arch $(TargetArch)</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(DotNetBuildSourceOnly)' != 'true'">$(InnerBuildArgs) $(FlagParameterPrefix)os $(TargetOS)</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(TargetArch)' != '$(_hostArch)' and '$(ShortStack)' != 'true'">$(InnerBuildArgs) $(FlagParameterPrefix)cross</InnerBuildArgs>
|
||||
|
@ -63,8 +63,7 @@
|
|||
<InnerBuildArgs Condition="'$(DotNetBuildRuntimeNativeAOTRuntimePack)' == 'true'">$(InnerBuildArgs) $(FlagParameterPrefix)s clr.nativeaotlibs+clr.nativeaotruntime+libs+packs /p:BuildNativeAOTRuntimePack=true /p:SkipLibrariesNativeRuntimePackages=true</InnerBuildArgs>
|
||||
|
||||
<!-- This prop needs to be passed to the inner build manually as the BaseInnerSourceBuildCommand gets overriden above -->
|
||||
<InnerBuildArgs Condition="'$(ArcadeBuildFromSource)' == 'true'">$(InnerBuildArgs) /p:ArcadeBuildFromSource=true</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(ArcadeBuildVertical)' == 'true'">$(InnerBuildArgs) /p:ArcadeBuildVertical=true</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(DotNetBuildRepo)' == 'true'">$(InnerBuildArgs) /p:DotNetBuildRepo=true</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(OfficialBuildId)' != ''">$(InnerBuildArgs) /p:OfficialBuildId=$(OfficialBuildId)</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(ContinuousIntegrationBuild)' != ''">$(InnerBuildArgs) /p:ContinuousIntegrationBuild=$(ContinuousIntegrationBuild)</InnerBuildArgs>
|
||||
<InnerBuildArgs Condition="'$(PortableBuild)' != ''">$(InnerBuildArgs) /p:PortableBuild=$(PortableBuild)</InnerBuildArgs>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<DefaultSubsets Condition="'$(TargetsMobile)' == 'true'">mono+libs+packs</DefaultSubsets>
|
||||
<DefaultSubsets Condition="'$(TargetsLinuxBionic)' == 'true'">mono+libs+host+packs</DefaultSubsets>
|
||||
<!-- In source build, mono is only supported as primary runtime flavor. On Windows mono is supported for x86/x64 only. -->
|
||||
<DefaultSubsets Condition="('$(DotNetBuildFromSource)' == 'true' and '$(PrimaryRuntimeFlavor)' != 'Mono') or ('$(TargetOS)' == 'windows' and '$(TargetArchitecture)' != 'x86' and '$(TargetArchitecture)' != 'x64')">clr+libs+tools+host+packs</DefaultSubsets>
|
||||
<DefaultSubsets Condition="('$(DotNetBuildSourceOnly)' == 'true' and '$(PrimaryRuntimeFlavor)' != 'Mono') or ('$(TargetOS)' == 'windows' and '$(TargetArchitecture)' != 'x86' and '$(TargetArchitecture)' != 'x64')">clr+libs+tools+host+packs</DefaultSubsets>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Init _subset here to allow RuntimeFlavor to be set as early as possible -->
|
||||
|
@ -85,13 +85,13 @@
|
|||
<DefaultToolsSubsets>tools.illink</DefaultToolsSubsets>
|
||||
|
||||
<DefaultHostSubsets>host.native+host.tools+host.pkg</DefaultHostSubsets>
|
||||
<DefaultHostSubsets Condition="'$(DotNetBuildFromSource)' != 'true'">$(DefaultHostSubsets)+host.pretest+host.tests</DefaultHostSubsets>
|
||||
<DefaultHostSubsets Condition="'$(DotNetBuildSourceOnly)' != 'true'">$(DefaultHostSubsets)+host.pretest+host.tests</DefaultHostSubsets>
|
||||
<DefaultHostSubsets Condition="'$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)' or '$(TargetsMobile)' == 'true'"></DefaultHostSubsets>
|
||||
<DefaultHostSubsets Condition="'$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)' and '$(TargetsMobile)' != 'true'">host.native</DefaultHostSubsets>
|
||||
|
||||
<DefaultPacksSubsets>packs.product</DefaultPacksSubsets>
|
||||
<DefaultPacksSubsets Condition="'$(BuildMonoAOTCrossCompilerOnly)' != 'true' and '$(DotNetBuildFromSource)' != 'true'">$(DefaultPacksSubsets)+packs.tests</DefaultPacksSubsets>
|
||||
<DefaultPacksSubsets Condition="'$(DotNetBuildFromSource)' == 'true'">$(DefaultPacksSubsets)+packs.installers</DefaultPacksSubsets>
|
||||
<DefaultPacksSubsets Condition="'$(BuildMonoAOTCrossCompilerOnly)' != 'true' and '$(DotNetBuildSourceOnly)' != 'true'">$(DefaultPacksSubsets)+packs.tests</DefaultPacksSubsets>
|
||||
<DefaultPacksSubsets Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(DefaultPacksSubsets)+packs.installers</DefaultPacksSubsets>
|
||||
<DefaultPacksSubsets Condition="'$(RuntimeFlavor)' != 'Mono' and '$(ForceBuildMobileManifests)' == 'true'">$(DefaultPacksSubsets)+mono.manifests</DefaultPacksSubsets>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -341,7 +341,7 @@
|
|||
$(CoreClrProjectRoot)tools\aot\ILCompiler\repro\repro.csproj;
|
||||
$(CoreClrProjectRoot)tools\r2rtest\R2RTest.csproj;
|
||||
$(CoreClrProjectRoot)tools\PdbChecker\PdbChecker.csproj;
|
||||
$(CoreClrProjectRoot)tools\AssemblyChecker\AssemblyChecker.csproj" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true'"/>
|
||||
$(CoreClrProjectRoot)tools\AssemblyChecker\AssemblyChecker.csproj" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true'"/>
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\crossgen2\crossgen2.csproj" Category="clr" />
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler.Build.Tasks\ILCompiler.Build.Tasks.csproj" Category="clr" Condition="'$(NativeAotSupported)' == 'true'" />
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler\ILCompiler.csproj" Category="clr" Condition="'$(NativeAotSupported)' == 'true'" />
|
||||
|
@ -355,11 +355,11 @@
|
|||
|
||||
<ItemGroup Condition="$(_subset.Contains('+clr.toolstests+'))">
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler.TypeSystem.Tests\ILCompiler.TypeSystem.Tests.csproj"
|
||||
Test="true" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true'"/>
|
||||
Test="true" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true'"/>
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler.Compiler.Tests\ILCompiler.Compiler.Tests.csproj"
|
||||
Test="true" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true' and '$(NativeAotSupported)' == 'true'"/>
|
||||
Test="true" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(NativeAotSupported)' == 'true'"/>
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler.Trimming.Tests\ILCompiler.Trimming.Tests.csproj"
|
||||
Test="true" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true' and '$(NativeAotSupported)' == 'true'"/>
|
||||
Test="true" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(NativeAotSupported)' == 'true'"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(_subset.Contains('+tools.illink+'))">
|
||||
|
@ -393,7 +393,7 @@
|
|||
|
||||
<ItemGroup Condition="$(_subset.Contains('+clr.packages+')) and '$(PgoInstrument)' != 'true'">
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot).nuget\coreclr-packages.proj" Pack="true" Category="clr" />
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\dotnet-pgo\dotnet-pgo-pack.proj" Pack="true" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true' and '$(RuntimeFlavor)' != 'Mono'"/>
|
||||
<ProjectToBuild Include="$(CoreClrProjectRoot)tools\dotnet-pgo\dotnet-pgo-pack.proj" Pack="true" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(RuntimeFlavor)' != 'Mono'"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(_subset.Contains('+clr.nativeaotlibs+')) and '$(NativeAotSupported)' == 'true'">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<!-- excluded from source build -->
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
|
||||
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<PackageReference Include="Microsoft.DotNet.VersionTools.Tasks" Version="$(MicrosoftDotNetVersionToolsTasksVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
<FlagNetStandard1XDependencies Condition="'$(FlagNetStandard1XDependencies)' == ''">true</FlagNetStandard1XDependencies>
|
||||
<!-- Runtime controls its dependency graph via Traversal projects and doesn't want or need Arcade's ExcludeFrom infrastructure. -->
|
||||
<DisableArcadeExcludeFromBuildSupport>true</DisableArcadeExcludeFromBuildSupport>
|
||||
<!-- Use SDK compilers in full source-build. -->
|
||||
<UsingToolMicrosoftNetCompilers Condition="'$(DotNetBuildFromSourceFlavor)' != 'Product'">true</UsingToolMicrosoftNetCompilers>
|
||||
<!-- Use SDK compilers in full VMR builds. -->
|
||||
<UsingToolMicrosoftNetCompilers Condition="'$(DotNetBuildOrchestrator)' != 'true'">true</UsingToolMicrosoftNetCompilers>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<WorkloadSdkBandVersions Include="$(SdkBandVersion)" SupportsMachineArch="true" />
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<Target Name="AddReadyToRunPgoOptions" DependsOnTargets="ResolveRuntimeFilesFromLocalBuild" BeforeTargets="ResolveReadyToRunCompilers" Condition="'$(PublishReadyToRun)' == 'true'">
|
||||
<PropertyGroup>
|
||||
<!-- Only use mibc files if UsingToolIbcOptimization is false. Allows enabling/disabling using ibc instead of mibc data -->
|
||||
<IncludeMibcFilesInReadyToRun Condition="'$(UsingToolIbcOptimization)' != 'true' and '$(EnableNgenOptimization)' == 'true' and '$(DotNetBuildFromSource)' != 'true'">true</IncludeMibcFilesInReadyToRun>
|
||||
<IncludeMibcFilesInReadyToRun Condition="'$(UsingToolIbcOptimization)' != 'true' and '$(EnableNgenOptimization)' == 'true' and '$(DotNetBuildSourceOnly)' != 'true'">true</IncludeMibcFilesInReadyToRun>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PublishReadyToRunPgoFiles Condition="'$(IncludeMibcFilesInReadyToRun)' == 'true'" Include="$(CoreCLRArtifactsPath)StandardOptimizationData.mibc"/>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<_NativeOptimizationDataPackageTarget Condition="'$(TargetOS)' == 'windows'">windows_nt-$(TargetArchitecture.ToLower())</_NativeOptimizationDataPackageTarget>
|
||||
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(optimizationPGOCoreCLRVersion)'!='' and '$(DotNetBuildFromSource)' != 'true'">
|
||||
<ItemGroup Condition="'$(optimizationPGOCoreCLRVersion)'!='' and '$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<PackageReference Include="optimization.windows_nt-x64.PGO.CoreCLR"
|
||||
Version="$(optimizationPGOCoreCLRVersion)"
|
||||
GeneratePathProperty="true" />
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
<!-- Package Validation isn't helpful when authoring shared framework packages. -->
|
||||
<EnablePackageValidation Condition="'$(EnablePackageValidation)' == '' and
|
||||
'$(UsingMicrosoftDotNetSharedFrameworkSdk)' != 'true' and
|
||||
'$(DotNetBuildFromSource)' != 'true'">true</EnablePackageValidation>
|
||||
'$(DotNetBuildSourceOnly)' != 'true'">true</EnablePackageValidation>
|
||||
<!-- Don't perform baseline validation if we don't have a stable prebuilt version.
|
||||
Don't attempt to restore prebuilts during source-build. -->
|
||||
<DisablePackageBaselineValidation Condition="'$(IsShipping)' == 'false' or
|
||||
'$(SuppressFinalPackageVersion)' == 'true' or
|
||||
'$(DotNetBuildFromSource)' == 'true'">true</DisablePackageBaselineValidation>
|
||||
'$(DotNetBuildSourceOnly)' == 'true'">true</DisablePackageBaselineValidation>
|
||||
<PackageValidationBaselineVersion Condition="'$(PackageValidationBaselineVersion)' == ''">$(ApiCompatNetCoreAppBaselineVersion)</PackageValidationBaselineVersion>
|
||||
|
||||
<BeforePack>$(BeforePack);IncludeAnalyzersInPackage;AddNETStandardCompatErrorFileForPackaging</BeforePack>
|
||||
|
@ -39,7 +39,7 @@
|
|||
<!-- When in source-build we need to generate all packages when building for all configurations even in servicing. -->
|
||||
<GeneratePackageOnBuild Condition="'$(GeneratePackageOnBuild)' != 'true' and
|
||||
'$(BuildAllConfigurations)' == 'true' and
|
||||
'$(DotNetBuildFromSource)' == 'true'">true</GeneratePackageOnBuild>
|
||||
'$(DotNetBuildSourceOnly)' == 'true'">true</GeneratePackageOnBuild>
|
||||
|
||||
<!-- During NoBuild pack invocations, skip project reference build. Necessary for the IncludeProjectReferencesWithPackAttributeInPackage target. -->
|
||||
<BuildProjectReferences Condition="'$(NoBuild)' == 'true'">false</BuildProjectReferences>
|
||||
|
@ -307,7 +307,7 @@
|
|||
<Target Name="ValidateServicingVersionIsProperlySet"
|
||||
Condition="'$(PreReleaseVersionLabel)' == 'servicing' and
|
||||
'$(PackageUseIncrementalServicingVersion)' == 'true' and
|
||||
'$(DotNetBuildFromSource)' != 'true'"
|
||||
'$(DotNetBuildSourceOnly)' != 'true'"
|
||||
AfterTargets="GenerateNuspec">
|
||||
<Error Condition="'$(ServicingVersion)' == '0'" Text="ServicingVersion is set to 0 and it should be an increment of the patch version from the last released package." />
|
||||
</Target>
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
all the inputs available, some suppressions might only apply to one or the other and hence unnecessary
|
||||
suppressions can't be determined.
|
||||
Disable the validation under source build as that might use an out-of-date SDK and not the ApiCompat.Task package. -->
|
||||
<PropertyGroup Condition="('$(IsPackable)' == 'true' and '$(IsRuntimeAndReferenceAssembly)' != 'true') or '$(DotNetBuildFromSource)' == 'true'">
|
||||
<PropertyGroup Condition="('$(IsPackable)' == 'true' and '$(IsRuntimeAndReferenceAssembly)' != 'true') or '$(DotNetBuildSourceOnly)' == 'true'">
|
||||
<ApiCompatPreserveUnnecessarySuppressions>true</ApiCompatPreserveUnnecessarySuppressions>
|
||||
<ApiCompatPermitUnnecessarySuppressions>true</ApiCompatPermitUnnecessarySuppressions>
|
||||
</PropertyGroup>
|
||||
|
@ -137,7 +137,7 @@
|
|||
Version="$(MicrosoftDotNetGenApiVersion)"
|
||||
PrivateAssets="all"
|
||||
IsImplicitlyDefined="true"
|
||||
Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Generate a .txt file with all public types of the project referenced by ProjectForGenAPIDocIdGeneration (e.g. System.Private.CoreLib or System.Private.Uri implementation assembly).
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<Project Sdk="Microsoft.Build.Traversal" DefaultTargets="Pack">
|
||||
<ItemGroup Condition="'$(TargetOS)' == 'windows' or '$(DotNetBuildFromSource)' == 'true'">
|
||||
<ItemGroup Condition="'$(TargetOS)' == 'windows' or '$(DotNetBuildSourceOnly)' == 'true'">
|
||||
<ProjectReference Include="Microsoft.NET.Sdk.IL\Microsoft.NET.Sdk.IL.pkgproj" />
|
||||
<ProjectReference Include="Microsoft.ILVerification\Microsoft.ILVerification.pkgproj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
<ProjectReference Include="dotnet-ilverify\dotnet-ilverify.pkgproj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
<ProjectReference Include="Microsoft.ILVerification\Microsoft.ILVerification.pkgproj" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
<ProjectReference Include="dotnet-ilverify\dotnet-ilverify.pkgproj" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(RuntimeFlavor)' == 'CoreCLR' and '$(DotNetBuildFromSource)' != 'true'">
|
||||
<ItemGroup Condition="'$(RuntimeFlavor)' == 'CoreCLR' and '$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<ProjectReference Include="ILCompiler.Reflection.ReadyToRun.Experimental\ILCompiler.Reflection.ReadyToRun.Experimental.pkgproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="$(CoreClrProjectRoot)/tools/aot/crossgen2/crossgen2_inbuild.csproj" OutputItemType="Crossgen2" />
|
||||
<ProjectReference Include="$(CoreClrProjectRoot)/tools/dotnet-pgo/dotnet-pgo.csproj" OutputItemType="DotNetPgo" Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
<ProjectReference Include="$(CoreClrProjectRoot)/tools/dotnet-pgo/dotnet-pgo.csproj" OutputItemType="DotNetPgo" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
<ProjectReference Include="$([MSBuild]::NormalizePath('$(CoreClrProjectRoot)', 'System.Private.CoreLib', 'System.Private.CoreLib.csproj'))" OutputItemType="CoreLib" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisCSharpVersion)" />
|
||||
<PackageDownload Condition="'$(DotNetBuildFromSource)' != 'true'" Include="runtime.$(JITToolsRid).Microsoft.NETCore.Runtime.JIT.Tools">
|
||||
<PackageDownload Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="runtime.$(JITToolsRid).Microsoft.NETCore.Runtime.JIT.Tools">
|
||||
<Version>[$(JITToolsVersion)]</Version>
|
||||
</PackageDownload>
|
||||
</ItemGroup>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<GenerateDependencyFile>false</GenerateDependencyFile>
|
||||
<Configurations>Debug;Release;Checked</Configurations>
|
||||
|
||||
<NoWarn Condition="'$(DotNetBuildFromSource)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<NoWarn Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<NoWarn>$(NoWarn);CA1859</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
|||
<ProjectReference Include="..\ILCompiler.MetadataTransform\ILCompiler.MetadataTransform.csproj" />
|
||||
<ProjectReference Include="..\ILCompiler.TypeSystem\ILCompiler.TypeSystem.csproj" />
|
||||
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<ExcludeAssets>contentfiles</ExcludeAssets> <!-- We include our own copy of the ClosedAttribute to work in source build -->
|
||||
</PackageReference>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<GenerateDependencyFile>false</GenerateDependencyFile>
|
||||
<Configurations>Debug;Release;Checked</Configurations>
|
||||
<RunAnalyzers>false</RunAnalyzers>
|
||||
<NoWarn Condition="'$(DotNetBuildFromSource)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<NoWarn Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -24,7 +24,7 @@
|
|||
<ProjectReference Include="..\ILCompiler.Diagnostics\ILCompiler.Diagnostics.csproj" />
|
||||
<ProjectReference Include="..\ILCompiler.TypeSystem\ILCompiler.TypeSystem.csproj" />
|
||||
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<ExcludeAssets>contentfiles</ExcludeAssets> <!-- We include our own copy of the ClosedAttribute to work in source build -->
|
||||
</PackageReference>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<Platforms>x64;x86</Platforms>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<EnableDiaSymReaderUse Condition="'$(DotNetBuildFromSource)' != 'true'">true</EnableDiaSymReaderUse>
|
||||
<EnableDiaSymReaderUse Condition="'$(DotNetBuildSourceOnly)' != 'true'">true</EnableDiaSymReaderUse>
|
||||
<DefineConstants Condition="'$(EnableDiaSymReaderUse)' != 'true'">$(DefineConstants);DISABLE_UNMANAGED_PDB_SYMBOLS</DefineConstants>
|
||||
|
||||
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates
|
||||
|
@ -693,7 +693,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(MicrosoftCodeAnalysisBannedApiAnalyzersVersion)" Condition="'$(DotNetBuildFromSource)' != 'true'">
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(MicrosoftCodeAnalysisBannedApiAnalyzersVersion)" Condition="'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
|
||||
<PublishDir>$(RuntimeBinDir)ilc-published/</PublishDir>
|
||||
<!-- Can't use NativeAOT in source build yet https://github.com/dotnet/runtime/issues/66859 -->
|
||||
<NativeAotSupported Condition="'$(DotNetBuildFromSource)' == 'true'">false</NativeAotSupported>
|
||||
<NativeAotSupported Condition="'$(DotNetBuildSourceOnly)' == 'true'">false</NativeAotSupported>
|
||||
<NativeAotSupported Condition="$(OutputRID.StartsWith('tizen')) == 'true'">false</NativeAotSupported>
|
||||
<NativeAotSupported Condition="$(OutputRID.EndsWith('-arm')) == 'true'">false</NativeAotSupported>
|
||||
<!-- Disable native AOT on FreeBSD when cross building from Linux. -->
|
||||
|
|
|
@ -47,10 +47,10 @@
|
|||
<!-- CoreDisTools are used in debugging visualizers. -->
|
||||
<IncludeCoreDisTools Condition="'$(Configuration)' != 'Release' and '$(CrossHostArch)' == ''">true</IncludeCoreDisTools>
|
||||
<!-- source-build doesn't use ObjWriter for the ILCompiler. the end-user will end up pulling Microsoft-built bits for NativeAOT anyway. -->
|
||||
<IncludeObjWriter Condition="'$(DotNetBuildFromSource)' != 'true' and '$(ObjWriterVersion)' != ''">true</IncludeObjWriter>
|
||||
<IncludeObjWriter Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(ObjWriterVersion)' != ''">true</IncludeObjWriter>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)coredistools.targets" Condition="'$(DotNetBuildFromSource)' != 'true' and '$(IncludeCoreDisTools)' == 'true'" />
|
||||
<Import Project="$(RepositoryEngineeringDir)coredistools.targets" Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(IncludeCoreDisTools)' == 'true'" />
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="runtime.$(ObjWriterRid).Microsoft.NETCore.Runtime.ObjWriter" Condition="'$(IncludeObjWriter)' == 'true'">
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<RunAnalyzers>false</RunAnalyzers>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)coredistools.targets" Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
<Import Project="$(RepositoryEngineeringDir)coredistools.targets" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
<Import Project="$(RepositoryEngineeringDir)DiaSymReaderNative.targets" />
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<DisableRarCache>true</DisableRarCache>
|
||||
|
||||
<!-- During a build from source, only current-RID assets are available from upstream repos. -->
|
||||
<RestoreAllBuildRids Condition="'$(RestoreAllBuildRids)' == '' and '$(DotNetBuildFromSource)' == 'true'">false</RestoreAllBuildRids>
|
||||
<RestoreAllBuildRids Condition="'$(RestoreAllBuildRids)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">false</RestoreAllBuildRids>
|
||||
<!--
|
||||
Normally, it is necessary to restore all RIDs so that assets are available to inspect. For
|
||||
example, the platform manifest includes data from all RIDs.
|
||||
|
|
|
@ -280,7 +280,7 @@
|
|||
<ExcludeFromClosure Include="@(NetFxReference)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
|
||||
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<!-- Add a reference to Microsoft.DiaSymReader.Native if one does not already exist. -->
|
||||
<PackageReference Include="Microsoft.DiaSymReader.Native"
|
||||
Exclude="@(PackageReference)"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<ArchiveName>dotnet-crossgen2</ArchiveName>
|
||||
<SharedFrameworkHostFileNameOverride>crossgen2</SharedFrameworkHostFileNameOverride>
|
||||
<!-- Build this pack for any RID if building from source. Otherwise, only build select RIDs. -->
|
||||
<RuntimeIdentifiers Condition="'$(DotNetBuildFromSource)' != 'true'">linux-x64;linux-musl-x64;linux-arm;linux-musl-arm;linux-arm64;linux-musl-arm64;freebsd-x64;freebsd-arm64;osx-x64;osx-arm64;win-x64;win-x86;win-arm64</RuntimeIdentifiers>
|
||||
<RuntimeIdentifiers Condition="'$(DotNetBuildSourceOnly)' != 'true'">linux-x64;linux-musl-x64;linux-arm;linux-musl-arm;linux-arm64;linux-musl-arm64;freebsd-x64;freebsd-arm64;osx-x64;osx-arm64;win-x64;win-x86;win-arm64</RuntimeIdentifiers>
|
||||
<GenerateInstallers>false</GenerateInstallers>
|
||||
<HostJsonTargetPath>tools/</HostJsonTargetPath>
|
||||
<PermitDllAndExeFilesLackingFileVersion>true</PermitDllAndExeFilesLackingFileVersion>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<!-- Publish crossgen2 as a single-file app on native-OS builds. Cross-OS NativeAOT compilation is not supported yet -->
|
||||
<NativeAotSupported Condition="'$(CrossBuild)' == 'true' and '$(TargetOS)' != '$(HostOS)'">false</NativeAotSupported>
|
||||
<!-- Can't use NativeAOT in source build yet https://github.com/dotnet/runtime/issues/66859 -->
|
||||
<NativeAotSupported Condition="'$(DotNetBuildFromSource)' == 'true'">false</NativeAotSupported>
|
||||
<NativeAotSupported Condition="'$(DotNetBuildSourceOnly)' == 'true'">false</NativeAotSupported>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<SkipInstallerBuild Condition="'$(BuildNativeAOTRuntimePack)' == 'true'">true</SkipInstallerBuild>
|
||||
<!-- Skip building any archives except in source-build, where the symbols archive is necessary
|
||||
for distro maintainers. It can generally be removed when https://github.com/dotnet/source-build/issues/3547 is resolved. -->
|
||||
<SkipArchivesBuild Condition="'$(DotNetBuildFromSource)' != 'true' or '$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)' or '$(TargetsMobile)' == 'true' or '$(BuildNativeAOTRuntimePack)' == 'true'">true</SkipArchivesBuild>
|
||||
<SkipArchivesBuild Condition="'$(DotNetBuildSourceOnly)' != 'true' or '$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)' or '$(TargetsMobile)' == 'true' or '$(BuildNativeAOTRuntimePack)' == 'true'">true</SkipArchivesBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -44,7 +44,7 @@ Microsoft.Extensions.Logging.Abstractions.NullLogger</PackageDescription>
|
|||
<ProjectReference Include="..\gen\Microsoft.Extensions.Logging.Generators.Roslyn3.11.csproj"
|
||||
ReferenceOutputAssembly="false"
|
||||
PackAsAnalyzer="true"
|
||||
Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
<ProjectReference Include="..\gen\Microsoft.Extensions.Logging.Generators.Roslyn4.0.csproj"
|
||||
ReferenceOutputAssembly="false"
|
||||
PackAsAnalyzer="true" />
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<ItemGroup>
|
||||
<AdditionalRuntimeIdentifiers Include="$(AdditionalRuntimeIdentifiers)" Imports="$(AdditionalRuntimeIdentifierParent)" />
|
||||
<!-- When building from source, ensure the RID we're building for is part of the RID graph. -->
|
||||
<AdditionalRuntimeIdentifiers Include="$(OutputRID)" Imports="$(AdditionalRuntimeIdentifierParent)" Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
<AdditionalRuntimeIdentifiers Include="$(OutputRID)" Imports="$(AdditionalRuntimeIdentifierParent)" Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -161,7 +161,7 @@
|
|||
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows' and
|
||||
'$(TargetOS)' == 'windows' and
|
||||
('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'arm64') and
|
||||
'$(DotNetBuildFromSource)' != 'true'">
|
||||
'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
|
||||
<!-- Project references -->
|
||||
<PackageReference Include="runtime.win-$(TargetArchitecture).runtime.native.System.Net.MsQuic.Transport"
|
||||
|
@ -191,7 +191,7 @@
|
|||
'$(TargetOS)' == 'osx' and
|
||||
'$(TargetArchitecture)' == 'x64' and
|
||||
'$(Configuration)' == 'Debug' and
|
||||
'$(DotNetBuildFromSource)' != 'true'">
|
||||
'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<!-- MsQuic packages do not have macOS binaries. Our transport package is only one source. -->
|
||||
<PackageReference Include="runtime.osx-$(TargetArchitecture).runtime.native.System.Net.MsQuic.Transport"
|
||||
Version="$(SystemNetMsQuicTransportVersion)"
|
||||
|
|
|
@ -408,7 +408,7 @@ The System.Text.Json library is built-in as part of the shared framework in .NET
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn3.11.csproj" ReferenceOutputAssembly="false" PackAsAnalyzer="true" Condition="'$(DotNetBuildFromSource)' != 'true'" />
|
||||
<ProjectReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn3.11.csproj" ReferenceOutputAssembly="false" PackAsAnalyzer="true" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
|
||||
<ProjectReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn4.0.csproj" ReferenceOutputAssembly="false" PackAsAnalyzer="true" />
|
||||
<ProjectReference Include="..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" ReferenceOutputAssembly="false" PackAsAnalyzer="true" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
<!-- Skip these projects during source-build as they rely on external prebuilts. -->
|
||||
<ProjectReference Remove="Microsoft.Extensions.DependencyInjection.Specification.Tests\src\Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj"
|
||||
Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<!-- Skip these projects during source-build as they rely on external prebuilts. -->
|
||||
<ProjectReference Remove="Microsoft.Extensions.DependencyInjection.Specification.Tests\src\Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj"
|
||||
Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<ProjectReference Include="oob-src.proj" OutputItemType="OOBAssembly" />
|
||||
|
||||
<ProjectReference Include="apicompat\ApiCompat.proj"
|
||||
Condition="'$(DotNetBuildFromSource)' != 'true' and '$(ApiCompatValidateAssemblies)' != 'false'" />
|
||||
Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(ApiCompatValidateAssemblies)' != 'false'" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(BuildTargetFramework)' != '$(NetCoreAppCurrent)' or '$(BuildTargetFramework)' == ''">
|
||||
|
|
|
@ -99,8 +99,8 @@
|
|||
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Transactions.Local\tests\System.Transactions.Local.Tests.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Projects that won't work when DotNetBuildFromSource. -->
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
|
||||
<!-- Projects that won't work when building source-only. -->
|
||||
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
|
||||
<!-- Project targets an older target framework which does not get built. -->
|
||||
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Numerics.Tensors\tests\Net8Tests\System.Numerics.Tensors.Net8.Tests.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<ProjectReference Include="Microsoft.NET.Runtime.LibraryBuilder.Sdk\Microsoft.NET.Runtime.LibraryBuilder.Sdk.pkgproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
|
||||
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<ProjectReference Include="Microsoft.NET.Runtime.MonoTargets.Sdk\Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<PropertyGroup>
|
||||
<TargetFrameworks>$(NetCoreAppToolCurrent)</TargetFrameworks>
|
||||
<!-- net8.0 is only need for the internal nuget produced which isn't required for source builds -->
|
||||
<TargetFrameworks Condition="'$(DotNetBuildFromSource)' != 'true'">$(TargetFrameworks);net8.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(DotNetBuildSourceOnly)' != 'true'">$(TargetFrameworks);net8.0</TargetFrameworks>
|
||||
<Nullable>enable</Nullable>
|
||||
<NoWarn>$(NoWarn),CA1050,CA1850</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<!-- For example, they may take dependencies on pre-built packages that aren't build-from-source. e.g. 'Microsoft.DotNet.CilStrip.Sources' -->
|
||||
<ProjectReference Remove="MonoTargetsTasks\MonoTargetsTasks.csproj;
|
||||
MonoTargetsTasks\ILStrip\AssemblyStripper\AssemblyStripper.csproj"
|
||||
Condition="'$(DotNetBuildFromSource)' == 'true'" />
|
||||
Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<GCStressDependsOnCoreDisTools Condition="'$(TargetOS)' == 'windows' And ('$(TargetArchitecture)' == 'x64' Or '$(TargetArchitecture)' == 'x86')">true</GCStressDependsOnCoreDisTools>
|
||||
<GCStressDependsOnCoreDisTools Condition="'$(TargetOS)' == 'linux' And '$(TargetArchitecture)' == 'x64'">true</GCStressDependsOnCoreDisTools>
|
||||
<CopyCoreDisToolsToCoreRoot>false</CopyCoreDisToolsToCoreRoot>
|
||||
<CopyCoreDisToolsToCoreRoot Condition="$(GCStressDependsOnCoreDisTools) And '$(DotNetBuildFromSource)' != 'true'">true</CopyCoreDisToolsToCoreRoot>
|
||||
<CopyCoreDisToolsToCoreRoot Condition="$(GCStressDependsOnCoreDisTools) And '$(DotNetBuildSourceOnly)' != 'true'">true</CopyCoreDisToolsToCoreRoot>
|
||||
<!-- Non-desktop OS's use a custom dotnet host, instead of corerun -->
|
||||
<IsDesktopOS Condition="'$(TargetsBrowser)' != 'true' and '$(TargetsAndroid)' != 'true' and '$(TargetstvOS)' != 'true' and '$(TargetsiOS)' != 'true' and '$(TargetsMacCatalyst)' != 'true'">true</IsDesktopOS>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' != 'true'" Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion_LatestVS)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' == 'true'" Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion_LatestVS)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' == 'true'" Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<EnableXlfLocalization>false</EnableXlfLocalization>
|
||||
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
|
||||
<AnalysisLevel>Latest</AnalysisLevel>
|
||||
<NoWarn Condition="'$(DotNetBuildFromSource)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<NoWarn Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<AnalyzerLanguage>cs</AnalyzerLanguage>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -16,9 +16,9 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' != 'true'" Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisVersion_LatestVS)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' == 'true'" Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisVersion_LatestVS)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' == 'true'" Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<ExcludeAssets>contentfiles</ExcludeAssets> <!-- We include our own copy of the ClosedAttribute to work in source build -->
|
||||
</PackageReference>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
|
||||
<!-- There are currently no translations, so the satellite assemblies are a waste of space. -->
|
||||
<EnableXlfLocalization>false</EnableXlfLocalization>
|
||||
<NoWarn Condition="'$(DotNetBuildFromSource)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<NoWarn Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NoWarn);CS8524</NoWarn>
|
||||
<ContractProject>$(MSBuildThisFileDirectory)ref\Mono.Linker.csproj</ContractProject>
|
||||
<RollForward>Major</RollForward>
|
||||
<UseAppHost>false</UseAppHost>
|
||||
|
@ -76,7 +76,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Condition="'$(DotNetBuildFromSource)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PackageReference Condition="'$(DotNetBuildSourceOnly)' != 'true'" Include="StaticCs" Version="$(StaticCsVersion)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<ExcludeAssets>contentfiles</ExcludeAssets> <!-- We include our own copy of the ClosedAttribute to work in source build -->
|
||||
</PackageReference>
|
||||
|
@ -84,7 +84,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(MicrosoftCodeAnalysisBannedApiAnalyzersVersion)" Condition="'$(DotNetBuildFromSource)' != 'true'">
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(MicrosoftCodeAnalysisBannedApiAnalyzersVersion)" Condition="'$(DotNetBuildSourceOnly)' != 'true'">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue