Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BuildToolsVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0-preview1-02431-03
2.1.0-preview2-02621-01
1 change: 1 addition & 0 deletions build-source-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mkdir -p "$TARBALL_ROOT"

cp $SCRIPT_ROOT/build.proj $TARBALL_ROOT/
cp $SCRIPT_ROOT/dir.props $TARBALL_ROOT/
cp $SCRIPT_ROOT/init-tools.msbuild $TARBALL_ROOT/
cp $SCRIPT_ROOT/DotnetCLIVersion.txt $TARBALL_ROOT/
cp -r $SCRIPT_ROOT/keys $TARBALL_ROOT/
cp -r $SCRIPT_ROOT/patches $TARBALL_ROOT/
Expand Down
7 changes: 5 additions & 2 deletions init-tools.msbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)Tools/$(BuildToolsPackageVersion)</BaseIntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.BuildTools" Version="$(BuildToolsPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.BuildTools"
Condition="'$(BuildToolsPackageVersion)' != ''"
Version="$(BuildToolsPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.BuildTools.Coreclr" Version="1.0.4-prerelease" />
<PackageReference Include="ILLink.Tasks" Version="0.1.5-preview-1461378" />
</ItemGroup>
</Project>
</Project>
4 changes: 2 additions & 2 deletions init-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ if [ ! -e "$__BUILD_TOOLS_PATH" ]; then
fi

echo "Initializing BuildTools..."
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> "$__init_tools_log"
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR $__PACKAGES_DIR" >> "$__init_tools_log"

# Executables restored with .NET Core 2.0 do not have executable permission flags. https://github.com/NuGet/Home/issues/4424
chmod +x "$__BUILD_TOOLS_PATH/init-tools.sh"
"$__BUILD_TOOLS_PATH/init-tools.sh" "$__scriptpath" "$__DOTNET_CMD" "$__TOOLRUNTIME_DIR" >> "$__init_tools_log"
"$__BUILD_TOOLS_PATH/init-tools.sh" "$__scriptpath" "$__DOTNET_CMD" "$__TOOLRUNTIME_DIR" "$__PACKAGES_DIR" >> "$__init_tools_log"
if [ "$?" != "0" ]; then
echo "ERROR: An error occured when trying to initialize the tools."1>&2
display_error_message
Expand Down
2 changes: 2 additions & 0 deletions repos/dir.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<EnvironmentVariables Include="LatestCommit=$(LatestCommit)" />
<EnvironmentVariables Include="OfficialBuildId=$(OfficialBuildId)" />
<EnvironmentVariables Include="VersionSeedDate=$(OfficialBuildId)" />
<!-- Work around a dependency on .git that doesn't have a good fallback yet: https://github.com/dotnet/buildtools/issues/1980 -->
<EnvironmentVariables Include="GitBranchName=N/A" />
</ItemGroup>

<UsingTask AssemblyFile="$(TasksBinDir)Microsoft.DotNet.SourceBuild.Tasks.dll" TaskName="AddSourceToNuGetConfig" />
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr
Submodule coreclr updated 2428 files
21 changes: 21 additions & 0 deletions support/tarball/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,26 @@ export NUGET_PACKAGES="$SCRIPT_ROOT/packages/"

MSBUILD_ARGUMENTS=("/p:OfflineBuild=true" "/flp:v=detailed" "/clp:v=detailed")

echo "Expanding BuildTools dependencies into packages directory..."
# init-tools tries to copy from its script directory to Tools, which in this case is a copy to
# itself. This is an error. To avoid the error, use a temp dir that we immediately delete.
TEMP_TOOLS_DIR="$SCRIPT_ROOT/ToolsTemp"
PREBUILT_PACKAGE_SOURCE="$SCRIPT_ROOT/prebuilt/nuget-packages"
(
# Log the commands that run.
set -x

"$CLI_ROOT/dotnet" restore "$SCRIPT_ROOT/init-tools.msbuild" --no-cache --packages "$SCRIPT_ROOT/packages" --source "$PREBUILT_PACKAGE_SOURCE" || exit $?

export __INIT_TOOLS_RESTORE_ARGS="--source $PREBUILT_PACKAGE_SOURCE" || exit $?
"$SCRIPT_ROOT/Tools/init-tools.sh" "$SCRIPT_ROOT" "$SCRIPT_ROOT/Tools/dotnetcli/dotnet" "$TEMP_TOOLS_DIR" "$SCRIPT_ROOT/packages" || exit $?

rm -rf "$TEMP_TOOLS_DIR" || exit $?
) > "$SCRIPT_ROOT/init-tools.log" 2>&1 || (
cat "$SCRIPT_ROOT/init-tools.log"
echo "ERROR: Failed to expand BuildTools dependencies. Detailed log above."
exit 1
)

$CLI_ROOT/dotnet $CLI_ROOT/sdk/$CLI_VERSION/MSBuild.dll $SCRIPT_ROOT/tools-local/init-build.proj /t:WriteDynamicPropsToStaticPropsFiles /p:GeneratingStaticPropertiesFile=true ${MSBUILD_ARGUMENTS[@]} "$@"
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$CLI_VERSION/MSBuild.dll $SCRIPT_ROOT/build.proj ${MSBUILD_ARGUMENTS[@]} "$@"