Fix test errors
authorAmy Yu <amycmyu@gmail.com>
Tue, 3 Jul 2018 19:59:22 +0000 (12:59 -0700)
committerAmy Yu <amycmyu@gmail.com>
Mon, 9 Jul 2018 18:50:19 +0000 (11:50 -0700)
src/build.proj
src/tools/r2rdump/R2RDump.csproj

index 0f60058..42f157c 100644 (file)
@@ -5,7 +5,6 @@
   <ItemGroup>
     <Project Condition="$(SkipSOS) != 'true'" Include="ToolBox\SOS\NETCore\SOS.NETCore.csproj" />
     <Project Include="System.Private.CoreLib\System.Private.CoreLib.csproj" />
-    <Project Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" Include="tools/r2rdump/R2RDump.csproj" />
   </ItemGroup>
 
   <Import Project="..\dir.targets" />
     <CoreLibPDBPath>$(BinDir)System.Private.CoreLib.pdb</CoreLibPDBPath>
   </PropertyGroup>
 
-  <Target Name="RestoreR2RDumpPackages" Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" BeforeTargets="Build">
+  <Target Name="RestoreAndBuildR2RDumpPackages" Condition="'$(DotNetBuildFromSource)' != 'true' AND '$(BuildManagedTools)' == 'true'" BeforeTargets="Build">
     <Exec Command="$(DotnetRestoreCommand) tools/r2rdump/R2RDump.csproj"
           StandardOutputImportance="Low" />
+    <Exec Command="$(DotnetToolCommand) build tools/r2rdump/R2RDump.csproj"
+          StandardOutputImportance="Low" />
   </Target>
 
   <Target Name="CopyCoreLib" AfterTargets="Build">
index 5344edd..47625f4 100644 (file)
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
 
   <PropertyGroup>
@@ -9,17 +9,20 @@
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <AssemblyKey>Open</AssemblyKey>
        <IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
-  </PropertyGroup>
-
-  <PropertyGroup>
-    <TargetFramework>netcoreapp2.0</TargetFramework>
+       <TargetFramework>netcoreapp2.0</TargetFramework>
     <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="Microsoft.NETCore.CoreDisTools" Version="1.0.1-prerelease-00003" />
-    <PackageReference Include="System.CommandLine" Version="0.1.0-e160119-1" />
-    <PackageReference Include="System.Reflection.Metadata" Version="1.6.0" />
+    <PackageReference Include="Microsoft.NETCore.CoreDisTools">
+      <Version>1.0.1-prerelease-00003</Version>
+    </PackageReference>
+    <PackageReference Include="System.CommandLine">
+      <Version>0.1.0-e160119-1</Version>
+    </PackageReference>
+    <PackageReference Include="System.Reflection.Metadata">
+      <Version>1.6.0</Version>
+    </PackageReference>
   </ItemGroup>
 
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />