Only include DotNETRuntimeEventSource.cs if it exists. (dotnet/coreclr#18074)
authorBrian Robbins <brianrob@microsoft.com>
Mon, 21 May 2018 21:51:43 +0000 (14:51 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 21 May 2018 21:51:43 +0000 (14:51 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/821317f109635cc591c976e6921429fc7f673b68

src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj

index cbb81f6..2beebdd 100644 (file)
     <Compile Include="$(BclSourcesRoot)\System\Diagnostics\Eventing\EventPipe.cs" />
     <Compile Include="$(BclSourcesRoot)\System\Diagnostics\Eventing\EventPipeEventProvider.cs" />
     <Compile Include="$(BclSourcesRoot)\System\Diagnostics\Eventing\EventPipeMetadataGenerator.cs" />
-    <Compile Include="$(IntermediateOutputPath)..\eventing\DotNETRuntimeEventSource.cs" />
+    <Compile Condition="Exists('$(IntermediateOutputPath)..\eventing\DotNETRuntimeEventSource.cs')" Include="$(IntermediateOutputPath)..\eventing\DotNETRuntimeEventSource.cs" />
   </ItemGroup>
   <ItemGroup>
     <Compile Include="$(BclSourcesRoot)\System\Diagnostics\Contracts\Contracts.cs" />