loyldg / mytelegram

MyTelegram is Telegram server side api implementation written in c#
Apache License 2.0
73 stars 28 forks source link

Building with MacOS #12

Closed exescript closed 1 year ago

exescript commented 1 year ago

Hello. Did you try to build it with MacOS .NET SDK implementation?

I got this error and maybe I need some help as I am new to .NET SDK:

/usr/local/share/dotnet/sdk/7.0.100/Sdks/Microsoft.NET.ILLink.Tasks/build/Microsoft.NET.ILLink.targets(196,5): error NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app. [MyTelegram.MessengerServer.Abp/MyTelegram.MessengerServer.Abp.csproj]
exescript commented 1 year ago

Fixed For those who will match the same issue:

$ dotnet publish -c Release --self-contained true