2021-06-24 16:36:04 -05:00
|
|
|
<Project>
|
|
|
|
<PropertyGroup>
|
|
|
|
<SourceDirectory>installer</SourceDirectory>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2021-08-23 17:05:58 -05:00
|
|
|
<OverrideTargetRid>$(TargetRid)</OverrideTargetRid>
|
|
|
|
<OverrideTargetRid Condition="'$(TargetOS)' == 'OSX'">osx-x64</OverrideTargetRid>
|
|
|
|
<OSNameOverride>$(OverrideTargetRid.Substring(0, $(OverrideTargetRid.IndexOf("-"))))</OSNameOverride>
|
|
|
|
|
|
|
|
<RuntimeArg>--runtime-id $(OverrideTargetRid)</RuntimeArg>
|
|
|
|
<RuntimeArg Condition="'$(TargetOS)' == 'Linux'">--runtime-id $(TargetRid)</RuntimeArg>
|
|
|
|
|
|
|
|
<BuildCommandArgs>$(StandardSourceBuildArgs)</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) $(RuntimeArg)</BuildCommandArgs>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Setting NETCoreAppMaximumVersion to a high version so that the sdk doesn't complain if we're restoring/publishing for a higher version than the sdk.
|
|
|
|
See https://github.com/dotnet/sdk/issues/1512#issuecomment-377082883
|
|
|
|
-->
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) /p:NETCoreAppMaximumVersion=99.9</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) /p:OSName=$(OSNameOverride)</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:Rid=$(TargetRid)</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) /p:DOTNET_INSTALL_DIR=$(DotNetCliToolDir)</BuildCommandArgs>
|
|
|
|
|
|
|
|
<BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:AspNetCoreSharedFxInstallerRid=linux-$(Platform)</BuildCommandArgs>
|
|
|
|
<!-- core-sdk always wants to build portable on OSX and FreeBSD -->
|
|
|
|
<BuildCommandArgs Condition="'$(TargetOS)' == 'FreeBSD'">$(BuildCommandArgs) /p:CoreSetupRid=freebsd-x64 /p:PortableBuild=true</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs Condition="'$(TargetOS)' == 'OSX'">$(BuildCommandArgs) /p:CoreSetupRid=osx-x64</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs Condition="'$(TargetOS)' == 'Linux'">$(BuildCommandArgs) /p:CoreSetupRid=$(TargetRid)</BuildCommandArgs>
|
|
|
|
|
2021-10-14 12:13:40 -07:00
|
|
|
<!-- Consume the source-built Core-Setup and toolset. This line must be removed to source-build CLI without source-building Core-Setup first. -->
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) /p:PublicBaseURL=file:%2F%2F$(SourceBuiltAssetsDir)</BuildCommandArgs>
|
2021-08-23 17:05:58 -05:00
|
|
|
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) /p:UsePortableLinuxSharedFramework=false</BuildCommandArgs>
|
|
|
|
|
|
|
|
<BuildCommand>$(StandardSourceBuildCommand) $(BuildCommandArgs)</BuildCommand>
|
|
|
|
|
2021-06-24 16:36:04 -05:00
|
|
|
<RepoApiImplemented>false</RepoApiImplemented>
|
|
|
|
<SourceOverrideRepoApiImplemented>true</SourceOverrideRepoApiImplemented>
|
|
|
|
<DependencyVersionInputRepoApiImplemented>true</DependencyVersionInputRepoApiImplemented>
|
|
|
|
|
2021-06-30 11:21:05 -05:00
|
|
|
<NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile>
|
2021-06-24 16:36:04 -05:00
|
|
|
|
|
|
|
<!-- This repo uses text-only template packages from the internal transport feed. -->
|
|
|
|
<SetUpInternalTransportFeed>true</SetUpInternalTransportFeed>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<RepositoryReference Include="arcade" />
|
|
|
|
<RepositoryReference Include="aspnetcore" />
|
|
|
|
<RepositoryReference Include="fsharp" />
|
|
|
|
<RepositoryReference Include="msbuild" />
|
2021-08-23 17:05:58 -05:00
|
|
|
<RepositoryReference Include="source-build" />
|
2021-08-24 15:01:06 -05:00
|
|
|
<RepositoryReference Include="nuget-client" />
|
2021-06-24 16:36:04 -05:00
|
|
|
<RepositoryReference Include="roslyn" />
|
|
|
|
<RepositoryReference Include="runtime" />
|
|
|
|
<RepositoryReference Include="sdk" />
|
|
|
|
<RepositoryReference Include="templating" />
|
|
|
|
<RepositoryReference Include="test-templates" />
|
|
|
|
<RepositoryReference Include="vstest" />
|
|
|
|
<RepositoryReference Include="xliff-tasks" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
If we have authentication, keep the templating internal feed (if one exists) to acquire the
|
|
|
|
text-only prebuilt. The source-build repo as a whole should depend on the same internal feed as
|
|
|
|
this repo does, so authentication should already be set up in the global endpoints json.
|
|
|
|
-->
|
|
|
|
<ItemGroup Condition="'$(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS)' != ''">
|
|
|
|
<KeepFeedPrefixes Include="darc-int-dotnet-aspnetcore-" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<EnvironmentVariables Include="CLIBUILD_SKIP_TESTS=true" />
|
|
|
|
|
|
|
|
<!-- Disable bundled tools until we can figure out:
|
|
|
|
Unable to find package dotnet-dev-certs.
|
|
|
|
Unable to find package dotnet-ef.
|
|
|
|
Unable to find package dotnet-sql-cache.
|
|
|
|
Unable to find package dotnet-user-secrets.
|
|
|
|
Unable to find package dotnet-watch. -->
|
|
|
|
<EnvironmentVariables Include="CLIBUILD_SKIP_BUNDLEDDOTNETTOOLS=true" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<Target Name="CopyTarBall"
|
2021-08-23 17:05:58 -05:00
|
|
|
AfterTargets="ExtractIntermediatePackages"
|
2021-06-24 16:36:04 -05:00
|
|
|
Inputs="$(MSBuildProjectFullPath)"
|
|
|
|
Outputs="$(RepoCompletedSemaphorePath)CopyTarBall.complete">
|
2021-08-26 11:30:50 -05:00
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<TarBallPath>$(SourceBuiltAssetsDir)dotnet-sdk-*$(TarBallExtension)</TarBallPath>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2021-06-24 16:36:04 -05:00
|
|
|
<ItemGroup>
|
2021-08-26 11:30:50 -05:00
|
|
|
<TarBall Include="$(TarBallPath)" />
|
2021-06-24 16:36:04 -05:00
|
|
|
</ItemGroup>
|
|
|
|
|
2021-08-26 11:30:50 -05:00
|
|
|
<Error Condition="'@(TarBall)' == ''" Text="'$(TarBallPath)' does not exist." />
|
2021-08-23 17:05:58 -05:00
|
|
|
|
2021-08-26 11:30:50 -05:00
|
|
|
<Copy SourceFiles="@(TarBall)"
|
|
|
|
DestinationFolder="$(SourceBuiltTarBallPath)" />
|
2021-06-24 16:36:04 -05:00
|
|
|
|
|
|
|
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)CopyTarBall.complete" Overwrite="true" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
|
|
|
</Project>
|