You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@
50
50
Text="RuntimeIdentifier is required for native compilation. Try running dotnet publish with the -r option value specified." />
51
51
<ErrorCondition="'$(GeneratePackageOnBuild)' == 'true'"Text="GeneratePackageOnBuild is not supported for native compilation." />
52
52
<ErrorCondition="'$(OutputType)' != 'Library' and '$(NativeLib)' != '' and '$(CustomNativeMain)' != 'true'"Text="NativeLib requires OutputType=Library." />
53
+
<!-- See https://github.com/dotnet/runtime/issues/89346 for details -->
54
+
<ErrorCondition="'$(NativeLib)' != '' and '$(EventSourceSupport)' == 'true'"Text="EventSource is not supported when compiling to a native library. Set EventSourceSupport to false." />
53
55
54
56
<ErrorCondition="'$(PublishTrimmed)' == 'false'"Text="PublishTrimmed is implied by native compilation and cannot be disabled." />
0 commit comments