summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2017-10-23 14:17:21 -0700
committerwtgodbe <wigodbe@microsoft.com>2017-10-24 12:27:47 -0700
commitb813321f918b91142e95bc6b74d524664ea703ba (patch)
tree587184af0ef552d035d5d9bf918c73ef06a7f184
parent15e1472aab7ed42dafde0331ed6cece465a0763d (diff)
downloadcoreclr-b813321f918b91142e95bc6b74d524664ea703ba.tar.gz
coreclr-b813321f918b91142e95bc6b74d524664ea703ba.tar.bz2
coreclr-b813321f918b91142e95bc6b74d524664ea703ba.zip
Use new feed tasks package & auto-update version
-rw-r--r--dependencies.props11
-rw-r--r--init-tools.cmd4
-rw-r--r--init-tools.msbuild15
-rwxr-xr-xinit-tools.sh4
-rw-r--r--src/publish.proj7
5 files changed, 18 insertions, 23 deletions
diff --git a/dependencies.props b/dependencies.props
index 345d39bc61..dbbac0450c 100644
--- a/dependencies.props
+++ b/dependencies.props
@@ -36,6 +36,12 @@
<VCRuntimeVersion>1.2.0</VCRuntimeVersion>
</PropertyGroup>
+ <!-- Package versions used as toolsets -->
+ <PropertyGroup>
+ <FeedTasksPackage>Microsoft.DotNet.Build.Tasks.Feed</FeedTasksPackage>
+ <FeedTasksPackageVersion>1.0.0-prerelease-02121-01</FeedTasksPackageVersion>
+ </PropertyGroup>
+
<!-- Package dependency verification/auto-upgrade configuration. -->
<PropertyGroup>
<BaseDotNetBuildInfo>build-info/dotnet/</BaseDotNetBuildInfo>
@@ -85,6 +91,11 @@
<Path>$(MSBuildThisFileDirectory)BuildToolsVersion.txt</Path>
<PackageId>Microsoft.DotNet.BuildTools</PackageId>
</UpdateStep>
+ <XmlUpdateStep Include="BuildTools">
+ <Path>$(MSBuildThisFileFullPath)</Path>
+ <ElementName>FeedTasksPackageVersion</ElementName>
+ <PackageId>$(FeedTasksPackage)</PackageId>
+ </XmlUpdateStep>
<XmlUpdateStep Include="PgoData">
<Path>$(MSBuildThisFileFullPath)</Path>
<ElementName>PgoDataPackageVersion</ElementName>
diff --git a/init-tools.cmd b/init-tools.cmd
index 235f64532e..39209820b6 100644
--- a/init-tools.cmd
+++ b/init-tools.cmd
@@ -54,8 +54,8 @@ if NOT exist "%DOTNET_LOCAL_PATH%" (
if exist "%BUILD_TOOLS_PATH%" goto :afterbuildtoolsrestore
echo Restoring BuildTools version %BUILDTOOLS_VERSION%...
-echo Running: "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> "%INIT_TOOLS_LOG%"
-call "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> "%INIT_TOOLS_LOG%"
+echo Running: "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% >> "%INIT_TOOLS_LOG%"
+call "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% >> "%INIT_TOOLS_LOG%"
if NOT exist "%BUILD_TOOLS_PATH%init-tools.cmd" (
echo ERROR: Could not restore build tools correctly. 1>&2
goto :error
diff --git a/init-tools.msbuild b/init-tools.msbuild
index c8eaf702c7..3bc1f3c8b7 100644
--- a/init-tools.msbuild
+++ b/init-tools.msbuild
@@ -4,10 +4,9 @@
<EnableDefaultItems>false</EnableDefaultItems>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<BaseIntermediateOutputPath>$(ToolsDir)/$(BuildToolsPackageVersion)</BaseIntermediateOutputPath>
- <FeedTasksVersion>1.0.0-prerelease-02111-01</FeedTasksVersion>
- <FeedTasksPackage>microsoft.dotnet.build.tasks.feed</FeedTasksPackage>
<PackageTargetFallback>$(PackageTargetFallback);netframework</PackageTargetFallback>
</PropertyGroup>
+ <Import Project="dependencies.props" />
<ItemGroup>
<PackageReference Include="microsoft.dotnet.buildtools">
<Version>$(BuildToolsPackageVersion)</Version>
@@ -16,17 +15,7 @@
<Version>1.0.4-prerelease</Version>
</PackageReference>
<PackageReference Include="$(FeedTasksPackage)">
- <Version>$(FeedTasksVersion)</Version>
+ <Version>$(FeedTasksPackageVersion)</Version>
</PackageReference>
</ItemGroup>
-
- <Target Name="CopyFeedTasks" AfterTargets="Restore" >
- <ItemGroup>
- <FilesToCopy Include="$(MSBuildThisFileDirectory)\packages\$(FeedTasksPackage)\$(FeedTasksVersion)\lib\**\*.*"/>
- </ItemGroup>
-
- <Copy SourceFiles="@(FilesToCopy)"
- DestinationFiles="@(FilesToCopy->'$(ToolsDir)\$(FeedTasksPackage)\%(RecursiveDir)%(Filename)%(Extension)')"
- />
- </Target>
</Project> \ No newline at end of file
diff --git a/init-tools.sh b/init-tools.sh
index 00b096199e..f712514262 100755
--- a/init-tools.sh
+++ b/init-tools.sh
@@ -119,8 +119,8 @@ if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
else
if [ ! -e $__BUILD_TOOLS_PATH ]; then
echo "Restoring BuildTools version $__BUILD_TOOLS_PACKAGE_VERSION..."
- echo "Running: $__DOTNET_CMD restore \"$__INIT_TOOLS_RESTORE_PROJECT\" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION /p:ToolsDir=$__TOOLRUNTIME_DIR" >> $__init_tools_log
- $__DOTNET_CMD restore "$__INIT_TOOLS_RESTORE_PROJECT" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION /p:ToolsDir=$__TOOLRUNTIME_DIR >> $__init_tools_log
+ echo "Running: $__DOTNET_CMD restore \"$__INIT_TOOLS_RESTORE_PROJECT\" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION" >> $__init_tools_log
+ $__DOTNET_CMD restore "$__INIT_TOOLS_RESTORE_PROJECT" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION >> $__init_tools_log
if [ ! -e "$__BUILD_TOOLS_PATH/init-tools.sh" ]; then
echo "ERROR: Could not restore build tools correctly." 1>&2
display_error_message
diff --git a/src/publish.proj b/src/publish.proj
index 9def32ab0c..81ac12df7c 100644
--- a/src/publish.proj
+++ b/src/publish.proj
@@ -2,12 +2,7 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <FeedsDir Condition="'$(RunningOnCore)' != 'true'">$(ToolsDir)Microsoft.Dotnet.Build.Tasks.Feed/net46/</FeedsDir>
- <FeedsDir Condition="'$(RunningOnCore)' == 'true'">$(ToolsDir)microsoft.dotnet.build.tasks.feed/netstandard1.5/</FeedsDir>
- </PropertyGroup>
-
- <UsingTask TaskName="PushToBlobFeed" AssemblyFile="$(FeedsDir)Microsoft.DotNet.Build.Tasks.Feed.dll"/>
+ <Import Project="$(PackagesDir)/$(FeedTasksPackage.ToLower())/$(FeedTasksPackageVersion)/build/$(FeedTasksPackage).targets" />
<PropertyGroup>
<PackagesPattern Condition="'$(PackagesPattern)' == ''">$(PackagesBinDir)pkg\*.nupkg</PackagesPattern>