-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add pre-built detection #86151
add pre-built detection #86151
Conversation
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue Detailsnull
|
We have been relying on NuGet APIs underneath the Microsoft.DotNet.Build.Tasks.TargetFramework package for years. What's the reason for this showing up now? |
I added SRBP for Nuget as part of this work, which was fine at first, but after my change in Arcade the build started failing as it was loading the ref pack in |
Yes, please silence the check. I'm not exactly happy about that validation tbh. We have other shipping projects with "Tests" in its name which currently are excluded from source build as they rely on external prebuilds, i.e. Microsoft.Extensions.DependencyInjection.Specifications.Tests. While those currently don't cause a problem, we might have other such cases in the future which we want to include during source build. |
I think I figured out what happened, but will talk it out with Michael to be sure -> In this case, it seems that during Arcade build the SBRP version of Nuget got included in the |
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Runtime.linux-x64/*8.*" /> | ||
<UsagePattern IdentityGlob="*Microsoft.DotNet.ILCompiler/*8.*" /> | ||
|
||
<UsagePattern IdentityGlob="Microsoft.CodeAnalysis.Analyzers/*" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmitche I followed your reasoning for baselining Analyzers
in roslyn
here as well, since it follows the same pattern of product build utilizing latest version while for repo build we cannot use intermediates (for now) or SBRP. Pinging just to verify if you think this train of thought is correct here as well. Thanks!
be3a415
to
d8487f8
Compare
in the future please make sure to update the shas too when updating VersionDetails.xml |
My bad, normally I update dependencies via the darc client, which handles this for me, but this time I did it manually. Will make sure to not forget this in the future |
Resolves #81468
Existing issues:
Microsoft.CodeAnalysis 4.5.0
- add microsoft.codeanalysis 4.5.0 source-build-reference-packages#669DotNet.Build.Tasks
issue - add pre-built detection #86151 (comment), solved by remove nuget 6.2.2 source-build-reference-packages#673runtime/src/libraries/pretest.proj
- source-build logic has a check for test projects & the check complains aboutsrc/libraries/pretest.proj
. Silenced it for the repo as requested in add pre-built detection #86151 (comment). Additionally, created Remove IsTestUsageByHeuristic logic in Source Build source-build#3453 to get rid of the check completelyCC: @MichaelSimons @ViktorHofer