Fix ILVerify dependencies (#54112)
authorJan Kotas <jkotas@microsoft.com>
Mon, 14 Jun 2021 05:37:21 +0000 (22:37 -0700)
committerGitHub <noreply@github.com>
Mon, 14 Jun 2021 05:37:21 +0000 (22:37 -0700)
- Update ILVerify to build for NetCoreAppToolCurrent

src/coreclr/.nuget/dotnet-ilverify/dotnet-ilverify.pkgproj
src/coreclr/tools/ILVerify/ILVerify.csproj

index 3fcc2d5..5b808c6 100644 (file)
 
   <ItemGroup>
     <PackageFile Include="DotnetToolSettings.xml">
-       <TargetPath>tools\netcoreapp3.1\any\DotnetToolSettings.xml</TargetPath>
+       <TargetPath>tools\$(NetCoreAppToolCurrent)\any\DotnetToolSettings.xml</TargetPath>
     </PackageFile>
     <PackageFile Include="$(ArtifactsDir)bin\ILVerify\$(TargetArchitecture)\$(Configuration)\ILVerify.dll">
-       <TargetPath>tools\netcoreapp3.1\any\ILVerify.dll</TargetPath>
+       <TargetPath>tools\$(NetCoreAppToolCurrent)\any\ILVerify.dll</TargetPath>
     </PackageFile>
     <PackageFile Include="$(ArtifactsDir)bin\ILVerify\$(TargetArchitecture)\$(Configuration)\System.CommandLine.dll">
-       <TargetPath>tools\netcoreapp3.1\any\System.CommandLine.dll</TargetPath>
+       <TargetPath>tools\$(NetCoreAppToolCurrent)\any\System.CommandLine.dll</TargetPath>
     </PackageFile>
     <PackageFile Include="$(ArtifactsDir)bin\ILVerify\$(TargetArchitecture)\$(Configuration)\ILVerify.deps.json">
-       <TargetPath>tools\netcoreapp3.1\any\ILVerify.deps.json</TargetPath>
+       <TargetPath>tools\$(NetCoreAppToolCurrent)\any\ILVerify.deps.json</TargetPath>
     </PackageFile>
     <PackageFile Include="$(ArtifactsDir)bin\ILVerify\$(TargetArchitecture)\$(Configuration)\ILVerify.runtimeconfig.json">
-       <TargetPath>tools\netcoreapp3.1\any\ILVerify.runtimeconfig.json</TargetPath>
+       <TargetPath>tools\$(NetCoreAppToolCurrent)\any\ILVerify.runtimeconfig.json</TargetPath>
     </PackageFile>
   </ItemGroup>
 
index 606b4ea..28f18b5 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>netcoreapp3.1</TargetFramework>
+    <TargetFramework>$(NetCoreAppToolCurrent)</TargetFramework>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <UseAppHost>false</UseAppHost>
     <RollForward>Major</RollForward>