Skip to content

Commit e811599

Browse files
LakshanFagockejkotas
authored
Error out when NativeLib has EventPipe enabled (#90811)
* Error out when NativeLib has EventPipe enabled * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets Co-authored-by: Andy Gocke <[email protected]> * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets Co-authored-by: Jan Kotas <[email protected]> --------- Co-authored-by: Andy Gocke <[email protected]> Co-authored-by: Jan Kotas <[email protected]>
1 parent 7f47037 commit e811599

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
Text="RuntimeIdentifier is required for native compilation. Try running dotnet publish with the -r option value specified." />
5151
<Error Condition="'$(GeneratePackageOnBuild)' == 'true'" Text="GeneratePackageOnBuild is not supported for native compilation." />
5252
<Error Condition="'$(OutputType)' != 'Library' and '$(NativeLib)' != '' and '$(CustomNativeMain)' != 'true'" Text="NativeLib requires OutputType=Library." />
53+
<!-- See https://github.com/dotnet/runtime/issues/89346 for details -->
54+
<Error Condition="'$(NativeLib)' != '' and '$(EventSourceSupport)' == 'true'" Text="EventSource is not supported when compiling to a native library. Set EventSourceSupport to false." />
5355

5456
<Error Condition="'$(PublishTrimmed)' == 'false'" Text="PublishTrimmed is implied by native compilation and cannot be disabled." />
5557

0 commit comments

Comments
 (0)