未验证 提交 5661a200 编写于 作者: G github-actions[bot] 提交者: GitHub

[release/8.0] Error out when NativeLib has EventPipe enabled (#90934)

* Error out when NativeLib has EventPipe enabled

* Update src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets
Co-authored-by: NAndy Gocke <andy@commentout.net>

* Update src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets
Co-authored-by: NJan Kotas <jkotas@microsoft.com>

---------
Co-authored-by: NLakshan Fernando <lakshanf@hotmail.com>
Co-authored-by: NAndy Gocke <andy@commentout.net>
Co-authored-by: NJan Kotas <jkotas@microsoft.com>
上级 12d9907a
......@@ -50,6 +50,8 @@
Text="RuntimeIdentifier is required for native compilation. Try running dotnet publish with the -r option value specified." />
<Error Condition="'$(GeneratePackageOnBuild)' == 'true'" Text="GeneratePackageOnBuild is not supported for native compilation." />
<Error Condition="'$(OutputType)' != 'Library' and '$(NativeLib)' != '' and '$(CustomNativeMain)' != 'true'" Text="NativeLib requires OutputType=Library." />
<!-- See https://github.com/dotnet/runtime/issues/89346 for details -->
<Error Condition="'$(NativeLib)' != '' and '$(EventSourceSupport)' == 'true'" Text="EventSource is not supported when compiling to a native library. Set EventSourceSupport to false." />
<Error Condition="'$(PublishTrimmed)' == 'false'" Text="PublishTrimmed is implied by native compilation and cannot be disabled." />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册