إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
Error Message
The error NETSDK1144 is reported when an error occurs in the trimming process. The full error message is similar to the following example:
Optimizing assemblies for size failed. Optimization can be disabled by setting the
PublishTrimmedproperty to false.
To disable trimming, set the PublishTrimmed property to false in the project file or the command line:
<PropertyGroup>
<PublishTrimmed>false</PublishTrimmed>
</PropertyGroup>
dotnet publish /p:PublishTrimmed=false
Here's an example of a .csproj file with trimming disabled:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
<PublishTrimmed>false</PublishTrimmed>
</PropertyGroup>
</Project>
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.