Open Wedgetable opened 11 months ago
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries See info in area-owners.md if you want to be subscribed.
Author: | Wedgetable |
---|---|
Assignees: | - |
Labels: | `area-Infrastructure-libraries` |
Milestone: | - |
I found that I can successfully build libraries again if I turn off ApiCompat: .\build.cmd libs -rc Release /p:RunApiCompat=false
. Why did this start happening?
Description
I'm trying to build the dotnet/runtime repo from the
v6.0.24
release tag. I'm using PowerShell and running.\build.cmd libs -c release -a x64
. It always fails with the following error:C:\Users\<user>\.nuget\packages\microsoft.dotnet.apicompat\6.0.0-beta.23408.5\build\Microsoft.DotNet.ApiCompat.targets(96,5): error : ApiCompat failed for 'C:\dev\dotnet-runtime\artifacts\bin\System.Net.WebClient\net6.0-Release\System.Net.WebClient.dll' [C:\dev\dotnet-runtime\src\libraries\System.Net.WebClient\src\System.Net.WebClient.csproj]
in the following place:
When I try to build
main
, I have no issues. But if I checkout any of the following tags:v6.0.22
,v6.0.23
, andv6.0.24
, the build fails with the error above (I haven't tried earlierv6.0.x
tags).Additionally, when I try to run
.\build.cmd clr -c release -a x64
, I get a failure about jitinterface_x64:I've tried
git clean -fxd
, I've trieddotnet nuget locals all --clear
. I've tried completely uninstalling/reinstalling .NET versions on my local machine. Nothing seems to help. I'm seeing this exact same problem on a Azure build agent where running the build command worked when we initally upgraded tov6.0.22
, but now no longer does.Reproduction Steps
Expected behavior
Actual behavior
Regression?
Building from the
v6.0.22
tag used to work. I only noticed it was broken when I tried to update a local fork of the dotnet-runtime repository fromv6.0.22
tov6.0.24
, and realized it fails to build for the last 3 tags.Known Workarounds
No response
Configuration
Which version of .NET is the code running on? For
v6.0.22
, the build is showing "SDK Version: 6.0.121", though I think it installed the corresponding SDK for 6.0.24 when I tried to build that runtime.What OS and version, and what distro if applicable? Windows 10 Enterprise
What is the architecture (x64, x86, ARM, ARM64)? x64
Do you know whether it is specific to that configuration? No
If you're using Blazor, which web browser(s) do you see this issue in? n/a
Other information
No response