.NET 7 Maui发布Android错误IL1023和NETSDK1144

huangapple go评论93阅读模式
英文:

.NET 7 Maui Publish Android Error IL1023 and NETSDK1144

问题

以下是已翻译的内容:

错误 IL1023:为“--custom-step”指定的程序集路径 'MarkStep:Microsoft.Android.Sdk.ILLink.SetupStep,C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.68\targets..\tools\Microsoft.Android.Sdk.ILLink.dll' 必须是完全限定的。项目路径\ILLink 1

错误 NETSDK1144:优化程序集大小失败。可以通过将 PublishTrimmed 属性设置为 false 来禁用优化。项目 C:\Program Files\dotnet\sdk\7.0.304\Sdks\Microsoft.NET.ILLink.Tasks\build\Microsoft.NET.ILLink.targets 86

错误图像

英文:

I'm publish android found error below

Error IL1023 The path to the assembly 'MarkStep:Microsoft.Android.Sdk.ILLink.SetupStep,C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.68\targets..\tools\Microsoft.Android.Sdk.ILLink.dll' specified for '--custom-step' must be fully qualified. Project ProjectPath\ILLink 1

Error NETSDK1144 Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. Project C:\Program Files\dotnet\sdk\7.0.304\Sdks\Microsoft.NET.ILLink.Tasks\build\Microsoft.NET.ILLink.targets 86

Error Image

答案1

得分: 0

错误 NETSDK1144 优化程序集大小失败。可以通过将 PublishTrimmed 属性设置为 false 来禁用优化...

对于这个错误,您可以尝试以下步骤:

右键单击项目,然后选择 "属性"。

找到 "AOT" 并取消选中它:.NET 7 Maui发布Android错误IL1023和NETSDK1144

找到 "启用修剪" 也取消选中它:.NET 7 Maui发布Android错误IL1023和NETSDK1144

英文:

> Error NETSDK1144 Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false...

For this error, you can try to do the following steps:

Right click the project and select "Properties"

Find "AOT" and uncheck it:.NET 7 Maui发布Android错误IL1023和NETSDK1144

Find "Enable trimming" and also uncheck it:.NET 7 Maui发布Android错误IL1023和NETSDK1144

huangapple
  • 本文由 发表于 2023年7月3日 16:35:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76603100.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定