Skip to content

Commit 92cfbb2

Browse files
authored
First pass at source build pre-built detection (#31341)
Enables prebuilt detection, with a number of exclusions still remaining.
1 parent 1bfea5a commit 92cfbb2

File tree

3 files changed

+84
-2
lines changed

3 files changed

+84
-2
lines changed

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
<!-- Disable implict package target fallback, and disable warning for when we explicitly add it (currently needed for
2424
Microsoft.ApplicationInsights) -->
2525
<NoWarn>$(NoWarn);NU1701</NoWarn>
26+
<!-- Temporarily NoWarn to avoid regression in preview 1.
27+
https://github.com/dotnet/roslyn-analyzers/pull/6236/files -->
28+
<NoWarn>$(NoWarn);CA2009</NoWarn>
2629
<!-- do not enable analyzers on source build-->
2730
<EnforceCodeStyleInBuild Condition="'$(DotNetBuildFromSource)' != 'true'">true</EnforceCodeStyleInBuild>
2831
<DisableImplicitPackageTargetFallback>true</DisableImplicitPackageTargetFallback>
Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
<UsageData>
22
<IgnorePatterns>
3-
<UsagePattern IdentityGlob="*/*" />
3+
<UsagePattern IdentityGlob="Microsoft.SourceBuild.Intermediate.*/*" />
4+
5+
<!-- TODO: Ignore needed until https://github.com/NuGet/Home/issues/11059 is addressed. -->
6+
<UsagePattern IdentityGlob="Nuget.*/*" />
7+
<UsagePattern IdentityGlob="Microsoft.Build.NuGetSdkResolver/*" />
8+
9+
<!-- TODO: Ignore needed until vstest gets a source build leg that publishes outputs
10+
https://github.com/microsoft/vstest/pull/4332. -->
11+
<UsagePattern IdentityGlob="Microsoft.TestPlatform.*/*" />
12+
13+
<!-- TODO: Ignore needed until razor merges main into the 17.6 branch.
14+
https://github.com/dotnet/sdk/pull/31508. -->
15+
<UsagePattern IdentityGlob="Microsoft*Razor.*/*" />
16+
17+
<!-- TODO: Figure out what to do about the netcoreapp ref packages (these are probably being pulled
18+
in via implicit versions and net6 targeting projects (e.g. tests)
19+
https://github.com/dotnet/source-build/issues/3356 -->
20+
<UsagePattern IdentityGlob="Microsoft.*.App.Ref/*6.0*" />
21+
22+
<!-- TODO: SBRPs or updates
23+
https://github.com/dotnet/source-build/issues/3357 -->
24+
<UsagePattern IdentityGlob="Microsoft.ApplicationInsights/*2.19.0*" />
25+
<UsagePattern IdentityGlob="Microsoft.Bcl.AsyncInterfaces/*6.0.0*" />
26+
<UsagePattern IdentityGlob="Microsoft.Build*/*16.11.0*" />
27+
<UsagePattern IdentityGlob="Microsoft.Build.Locator/*1.5.3*" />
28+
<UsagePattern IdentityGlob="Microsoft.CodeAnalysis.AnalyzerUtilities/*3.3.0*" />\
29+
<UsagePattern IdentityGlob="Microsoft.Css.Parser/*1.0.0-20200708.1*" />
30+
<UsagePattern IdentityGlob="Microsoft.DiaSymReader/*1.4.0*" />
31+
<UsagePattern IdentityGlob="Microsoft.Extensions.*/*6.0.0*" />
32+
<UsagePattern IdentityGlob="Microsoft.NET.StringTools/*1.0.0*" />
33+
<UsagePattern IdentityGlob="Microsoft.Win32.SystemEvents/*7.0.0*" />
34+
<UsagePattern IdentityGlob="System.CodeDom/*7.0.0*" />
35+
<UsagePattern IdentityGlob="System.Collections.Immutable/*7.0.0*" />
36+
<UsagePattern IdentityGlob="System.Composition*/*6.0.0*" />
37+
<UsagePattern IdentityGlob="System.Collections.Immutable.*/*7.0.0*" />
38+
<UsagePattern IdentityGlob="System.Configuration.ConfigurationManager/*4.7.0*" />
39+
<UsagePattern IdentityGlob="System.Configuration.ConfigurationManager/*7.0.0*" />
40+
<UsagePattern IdentityGlob="System.Diagnostics.DiagnosticSource/*6.0.0*" />
41+
<UsagePattern IdentityGlob="System.Diagnostics.EventLog/*7.0.0*" />
42+
<UsagePattern IdentityGlob="System.Drawing.Common/*7.0.0*" />
43+
<UsagePattern IdentityGlob="System.Formats.Asn1/*7.0.0*" />
44+
<UsagePattern IdentityGlob="System.IO.Pipelines/*6.0.3*" />
45+
<UsagePattern IdentityGlob="System.Reflection.Metadata*/*7.0.0*" />
46+
<UsagePattern IdentityGlob="System.Resources.Extensions/*7.0.0*" />
47+
<UsagePattern IdentityGlob="System.Security.Cryptography.Pkcs/*7.0.0*" />
48+
<UsagePattern IdentityGlob="System.Security.Cryptography.ProtectedData/*4.7.0*" />
49+
<UsagePattern IdentityGlob="System.Security.Cryptography.ProtectedData/*7.0.0*" />
50+
<UsagePattern IdentityGlob="System.Security.Cryptography.Xml/*4.7.0*" />
51+
<UsagePattern IdentityGlob="System.Security.Cryptography.Xml/*7.0.1*" />
52+
<UsagePattern IdentityGlob="System.Security.Permissions/*7.0.0*" />
53+
<UsagePattern IdentityGlob="System.ServiceProcess.ServiceController/*7.0.0*" />
54+
<UsagePattern IdentityGlob="System.Text.Encoding.CodePages/*6.0.0*" />
55+
<UsagePattern IdentityGlob="System.Text.Encoding.CodePages/*7.0.0*" />
56+
<UsagePattern IdentityGlob="System.Text.Encodings.Web/*6.0.0*" />
57+
<UsagePattern IdentityGlob="System.Text.Encodings.Web/*7.0.0*" />
58+
<UsagePattern IdentityGlob="System.Text.Json/*6.0.0*" />
59+
<UsagePattern IdentityGlob="System.Text.Json/*7.0.0*" />
60+
<UsagePattern IdentityGlob="System.Text.Json/*7.0.1*" />
61+
<UsagePattern IdentityGlob="System.Text.Json/*7.0.2*" />
62+
<UsagePattern IdentityGlob="System.Security.Permissions/*7.0.0*" />
63+
<UsagePattern IdentityGlob="System.Threading.Channels/*6.0.0*" />
64+
<UsagePattern IdentityGlob="System.Threading.Tasks.Dataflow/*7.0.0*" />
65+
<UsagePattern IdentityGlob="System.Windows.Extensions/*7.0.0*" />
66+
67+
<!-- This may be coming in transitively from aspnetcore. Needs evaluation.
68+
https://github.com/dotnet/source-build/issues/3358. -->
69+
<UsagePattern IdentityGlob="System.Text.Json/*8.0.0*" />
70+
<UsagePattern IdentityGlob="System.Text.Encodings.Web/*8.0.0*" />
471
</IgnorePatterns>
572
</UsageData>

eng/Version.Details.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.8.0" Version="8.0.0-preview.4.23181.2">
1414
<Uri>https://github.com/dotnet/runtime</Uri>
1515
<Sha>958b1e046cbfff5c0bc647f531b4fcf9eb197a6c</Sha>
16+
<SourceBuild RepoName="runtime" ManagedOnly="false" />
1617
</Dependency>
1718
<Dependency Name="VS.Redist.Common.NetCore.TargetingPack.x64.8.0" Version="8.0.0-preview.4.23181.2">
1819
<Uri>https://github.com/dotnet/runtime</Uri>
@@ -45,6 +46,7 @@
4546
<Dependency Name="Microsoft.Build" Version="17.6.0-preview-23174-01">
4647
<Uri>https://github.com/dotnet/msbuild</Uri>
4748
<Sha>e7de1330724224a542668e1ef82c997613c7080c</Sha>
49+
<SourceBuild RepoName="msbuild" ManagedOnly="true" />
4850
</Dependency>
4951
<Dependency Name="Microsoft.Build.Localization" Version="17.6.0-preview-23174-01">
5052
<Uri>https://github.com/dotnet/msbuild</Uri>
@@ -62,7 +64,7 @@
6264
<Dependency Name="dotnet-format" Version="8.0.416301">
6365
<Uri>https://github.com/dotnet/format</Uri>
6466
<Sha>0b968051beac5d7c1a62a52aee7fbbbb47dc1f47</Sha>
65-
<SourceBuildTarball RepoName="format" ManagedOnly="true" />
67+
<SourceBuild RepoName="format" ManagedOnly="true" />
6668
</Dependency>
6769
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-2.23177.13">
6870
<Uri>https://github.com/dotnet/roslyn</Uri>
@@ -255,6 +257,11 @@
255257
<Sha>cbd9d61c5a92d7e4a0548a2c8ff4d1a28aaf6379</Sha>
256258
<SourceBuild RepoName="source-build-externals" ManagedOnly="true" />
257259
</Dependency>
260+
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="8.0.0-alpha.1.23156.5">
261+
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
262+
<Sha>e2279a0388f89a1f771ff7e4ded01f0e657bcafb</Sha>
263+
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
264+
</Dependency>
258265
<Dependency Name="Microsoft.Deployment.DotNet.Releases" Version="1.0.0-preview6.1.23159.4">
259266
<Uri>https://github.com/dotnet/deployment-tools</Uri>
260267
<Sha>b60c95e1ce736630d17e16626c59e3dd85ebae2b</Sha>
@@ -273,6 +280,11 @@
273280
<Sha>747f53d751983dd062f39f4654bff074536e0012</Sha>
274281
<SourceBuild RepoName="arcade" ManagedOnly="true" />
275282
</Dependency>
283+
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.2.0-beta-23175-02" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
284+
<Uri>https://github.com/dotnet/sourcelink</Uri>
285+
<Sha>ccfca8dce5f7525433756281c2c275386348a9ad</Sha>
286+
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
287+
</Dependency>
276288
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.23177.4">
277289
<Uri>https://github.com/dotnet/arcade</Uri>
278290
<Sha>747f53d751983dd062f39f4654bff074536e0012</Sha>

0 commit comments

Comments
 (0)