-
hi, I currently have a .Net FW solution that has some 9 projects each generating a console app. I am migrating the app to .Net Core. On a trial basis, I want to package the .Net Core apps and deploy on the same server, without installing .Net 6 as we will eventually run these apps on separate set of servers. Now, if I try to have self contained single file deployment, each project is generating large files (~90MB with compression, trimming enabled) which will blow up my installer size. So using NetBeauty will I be able to publish this with overall smaller size, where the apps can shared the common libraries. If so, can you please guide me on how to achieve this? FYI, we are using MSBuild 17 and doing the build using the solution file via Jenkins pipeline and then use wix to package the required files into a MSI and publish the resulting MSI artifact. Also, does Nbeauty CLI has to be installed on the build server as well or is having package reference sufficient? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you can have a look at this example, https://github.com/nulastudio/NetBeauty2/tree/master/NetBeautyTest/SharedRuntimeTest the key configs are <BeautySharedRuntimeMode>True</BeautySharedRuntimeMode>
<BeautyLibsDir Condition="$(BeautySharedRuntimeMode) == 'True'">../runtimes</BeautyLibsDir> so the final structure will be something likes this
and all you need to do is referencing the NetBeauty nuget package and some config, currently, NetBeauty doesn't support tidying up multiple apps into one folder, so the following structure is impossible for now
|
Beta Was this translation helpful? Give feedback.
you can have a look at this example, https://github.com/nulastudio/NetBeauty2/tree/master/NetBeautyTest/SharedRuntimeTest
the key configs are
so the final structure will be something likes this