Skip to content

Commit 26c12ee

Browse files
authored
Allow for runtimelab to build Microsoft.Diagnostics.NETCore.Client (#3139)
1 parent 2be7a34 commit 26c12ee

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
<RepositoryType>git</RepositoryType>
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1818
<EnableSourceControlManagerQueries>true</EnableSourceControlManagerQueries>
19+
<GitHubRepositoryName>diagnostics</GitHubRepositoryName>
1920
</PropertyGroup>
2021
</Project>

src/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1212
<IncludeSymbols>true</IncludeSymbols>
1313
<IsShipping>true</IsShipping>
14+
<BuildingOutsideDiagnostics>false</BuildingOutsideDiagnostics>
15+
<BuildingOutsideDiagnostics Condition="'$(GitHubRepositoryName)' != 'diagnostics'">true</BuildingOutsideDiagnostics>
1416
</PropertyGroup>
1517

16-
<PropertyGroup Condition="'$(GitHubRepositoryName)' == 'runtime'">
18+
<PropertyGroup Condition="$(BuildingOutsideDiagnostics)">
1719
<DefineConstants>$(DefineConstants);DIAGNOSTICS_RUNTIME</DefineConstants>
1820
<NoWarn>CS1591,CS8073,CS0162</NoWarn>
1921
</PropertyGroup>
@@ -36,6 +38,6 @@
3638
</ItemGroup>
3739

3840
<ItemGroup>
39-
<Compile Condition="'$(GitHubRepositoryName)' == 'runtime'" Include="**/*.cs" />
41+
<Compile Condition="$(BuildingOutsideDiagnostics)" Include="**/*.cs" />
4042
</ItemGroup>
4143
</Project>

0 commit comments

Comments
 (0)