ArPow stage 1: local source-build infrastructure (#2024)
authorMichael Simons <msimons@microsoft.com>
Thu, 25 Feb 2021 20:43:32 +0000 (14:43 -0600)
committerGitHub <noreply@github.com>
Thu, 25 Feb 2021 20:43:32 +0000 (20:43 +0000)
* ArPow stage 1: local source-build infrastructure

* Updates per code review

* Updates per code review

* Refactor how Analyzers are excluded from source-build builds

eng/SourceBuild.props [new file with mode: 0644]
eng/SourceBuildPrebuiltBaseline.xml [new file with mode: 0644]
eng/Version.Details.xml
src/Directory.Build.props

diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
new file mode 100644 (file)
index 0000000..4d4b4b3
--- /dev/null
@@ -0,0 +1,12 @@
+<Project>
+
+  <PropertyGroup>
+    <GitHubRepositoryName>diagnostics</GitHubRepositoryName>
+    <SourceBuildManagedOnly>true</SourceBuildManagedOnly>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectToBuild Include="$(RepoRoot)src/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj" />
+  </ItemGroup>
+
+</Project>
diff --git a/eng/SourceBuildPrebuiltBaseline.xml b/eng/SourceBuildPrebuiltBaseline.xml
new file mode 100644 (file)
index 0000000..c1b6dfb
--- /dev/null
@@ -0,0 +1,5 @@
+<UsageData>
+  <IgnorePatterns>
+    <UsagePattern IdentityGlob="*/*" />
+  </IgnorePatterns>
+</UsageData>
index 44744b061b93b5dc7862b63d09b38bb4d3cc43c0..139a819cf7578de45ed2ad81f302fc43a370b089 100644 (file)
       <Uri>https://github.com/dotnet/installer</Uri>
       <Sha>53e0c8c7f9c65a13c17f58135557665a5a0c15b1</Sha>
     </Dependency>
+    <Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="5.0.0-alpha.1.20473.1">
+      <Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
+      <Sha>def2e2c6dc5064319250e2868a041a3dc07f9579</Sha>
+      <SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
+    </Dependency>
   </ProductDependencies>
   <ToolsetDependencies>
     <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21105.12">
       <Uri>https://github.com/dotnet/arcade</Uri>
       <Sha>938b3e8b4edcd96ca0f0cbbae63c87b3f51f7afe</Sha>
+      <SourceBuild RepoName="arcade" ManagedOnly="true"/>
     </Dependency>
     <Dependency Name="Microsoft.AspNetCore.App.Ref.Internal" Version="6.0.0-preview.2.21120.2">
       <Uri>https://github.com/dotnet/aspnetcore</Uri>
index 4e18a553122dbca15bc7ca4d802eeac3883417a8..7dfea314a2bdbcb00f0873ac50b2d7536b50e794 100644 (file)
@@ -27,5 +27,6 @@
     <DebugType>portable</DebugType>
   </PropertyGroup>
 
-  <Import Project="$(RepositoryEngineeringDir)Analyzers.props" />
+  <Import Condition="'$(DotNetBuildFromSource)' != 'true'"
+          Project="$(RepositoryEngineeringDir)Analyzers.props" />
 </Project>