зеркало из https://github.com/dotnet/aspnetcore.git
87 строки
4.2 KiB
XML
87 строки
4.2 KiB
XML
<!-- Whenever altering this or other Source Build files, please include @dotnet/source-build-internal as a reviewer. -->
|
|
|
|
<Project>
|
|
|
|
<PropertyGroup>
|
|
<GitHubRepositoryName>aspnetcore</GitHubRepositoryName>
|
|
<SourceBuildManagedOnly>true</SourceBuildManagedOnly>
|
|
<SourceBuildTargetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnetcoreapp3.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0%3bnet9.0</SourceBuildTargetFrameworkFilter>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="PrepareGlobalJsonForSourceBuild"
|
|
AfterTargets="PrepareInnerSourceBuildRepoRoot"
|
|
BeforeTargets="RunInnerSourceBuildCommand">
|
|
<Exec
|
|
Command="./eng/scripts/prepare-sourcebuild-globaljson.sh"
|
|
WorkingDirectory="$(InnerSourceBuildRepoRoot)" />
|
|
</Target>
|
|
|
|
<!--
|
|
Remove inner source .globalconfig file as both the inner and outer config files get loaded and cause a conflict.
|
|
Leaving the inner will cause all conflicting settings to be ignored.
|
|
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#general-options
|
|
-->
|
|
<Target Name="RemoveInnerGlobalConfig"
|
|
DependsOnTargets="PrepareInnerSourceBuildRepoRoot"
|
|
BeforeTargets="RunInnerSourceBuildCommand">
|
|
|
|
<Delete Files="$(InnerSourceBuildRepoRoot).globalconfig" />
|
|
</Target>
|
|
|
|
<!--
|
|
Build RepoTasks - this is normally triggered via the build script but the inner ArPow source-build is run via msbuild
|
|
-->
|
|
<Target Name="BuildRepoTasks"
|
|
Condition="'$(ArcadeInnerBuildFromSource)' == 'true'"
|
|
BeforeTargets="Execute">
|
|
|
|
<!-- If the alternative runtime location and key are present, pass those through -->
|
|
<PropertyGroup>
|
|
<_AdditionalRepoTaskBuildArgs />
|
|
<_AdditionalRepoTaskBuildArgs Condition="'$(DotNetRuntimeSourceFeed)' != ''" >$(_AdditionalRepoTaskBuildArgs) --runtimesourcefeed $(DotNetRuntimeSourceFeed)</_AdditionalRepoTaskBuildArgs>
|
|
<_AdditionalRepoTaskBuildArgs Condition="'$(DotNetRuntimeSourceFeedKey)' != ''" >$(_AdditionalRepoTaskBuildArgs) --runtimesourcefeedkey $(DotNetRuntimeSourceFeedKey)</_AdditionalRepoTaskBuildArgs>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- We need to flow FullAssemblySigningSupported even when building repo tasks because they use full signing -->
|
|
<InnerBuildEnv Condition="'$(FullAssemblySigningSupported)' != ''" Include="FullAssemblySigningSupported=$(FullAssemblySigningSupported)" />
|
|
<InnerBuildEnv Include="DotNetBuildFromSource=true" />
|
|
</ItemGroup>
|
|
|
|
<!-- Call the build.sh script to build the repo tasks. Set IgnoreStandardErrorWarningFormat
|
|
to true. This avoids fatal errors, because in internal builds there are usually a few failed installation
|
|
attempts as the install script walks through potential locations for a runtime.
|
|
The overall build script will return a proper exit code, but we don't want to pick up the printed error messages. -->
|
|
<Exec
|
|
Command="./eng/build.sh --only-build-repo-tasks -bl $(_AdditionalRepoTaskBuildArgs)"
|
|
IgnoreStandardErrorWarningFormat="true"
|
|
WorkingDirectory="$(InnerSourceBuildRepoRoot)"
|
|
EnvironmentVariables="@(InnerBuildEnv)" />
|
|
</Target>
|
|
|
|
<Target Name="CustomizeInnerBuildArgs"
|
|
BeforeTargets="GetSourceBuildCommandConfiguration">
|
|
|
|
<PropertyGroup>
|
|
<InnerBuildArgs>$(InnerBuildArgs) /p:SourceBuildRuntimeIdentifier=$(TargetRuntimeIdentifier)</InnerBuildArgs>
|
|
<InnerBuildArgs Condition="'$(SourceBuildUseMonoRuntime)' == 'true'">$(InnerBuildArgs) /p:CrossgenOutput=false</InnerBuildArgs>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="GetAspnetcoreCategorizedIntermediateNupkgContents"
|
|
BeforeTargets="GetCategorizedIntermediateNupkgContents">
|
|
<PropertyGroup>
|
|
<InstallersArtifactsDir>$(CurrentRepoSourceBuildArtifactsDir)\installers\$(Configuration)\</InstallersArtifactsDir>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!--
|
|
Add the internal installers artifacts required by dotnet/installer.
|
|
-->
|
|
<IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.tar.gz" />
|
|
<IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore_base_runtime.version" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|