当前位置:网站首页>Optimize with netcorebeauty Net core independent deployment directory structure
Optimize with netcorebeauty Net core independent deployment directory structure
2022-06-30 18:09:00 【Dotnet cross platform】
I'm putting a .NET CORE \ .NET 5.0 \ .NET 6.0 When the program is deployed and released independently , Many system class libraries will be generated in the release directory , As a result, the directory is not very concise . This makes it difficult to find entry programs , Especially Luyao toolbox, a green software , Not in the start menu 、 System desktop creation shortcuts , So many files will directly persuade Xiaobai users to retreat .

Use NetCoreBeauty Optimize directory structure
NetCoreBeauty moves .NET Core app runtime components and dependencies into a sub-directory to make it beautiful.
NetCoreBeauty Will .NET Core The runtime components and dependencies of the software are moved to a subdirectory , Make the release file look more concise and beautiful .

NetCoreBeauty The open source address of :https://github.com/nulastudio/NetCoreBeauty
How to use NetCoreBeauty
NetCoreBeauty It is only applicable to programs that deploy the release mode independently .
Add... To the project Nuget quote :
dotnet add package nulastudio.NetCoreBeautyEdit project profile (*.csproj) It should be similar to the following code :
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<!-- beauty into sub-directory, default is libs, quote with "" if contains space -->
<!-- To move to alphabetic name , The default is libs Catalog , If you need to include spaces , Please enclose it in double quotation marks -->
<BeautyLibsDir>libraries</BeautyLibsDir>
<!-- Set some file names that you do not want to be moved or cannot be moved to subdirectories , Support matching .-->
<!-- dlls that you don't want to be moved or can not be moved -->
<!-- <BeautyExcludes>dll1.dll;lib*;...</BeautyExcludes> -->
<!-- Files that end users will not use , You can configure hide here .-->
<!-- dlls that end users never needed, so hide them -->
<!-- <BeautyHiddens>hostfxr;hostpolicy;*.deps.json;*.runtimeconfig*.json</BeautyHiddens> -->
<!-- If you do not want to perform the move operation , It can be set to True -->
<!-- set to True if you want to disable -->
<DisableBeauty>False</DisableBeauty>
<!-- set to True if you don't want to generate NetCoreBeauty flag file -->
<!-- do not beauty twice since there is no flag file to determine if beauty already -->
<NoBeautyFlag>False</NoBeautyFlag>
<ForceBeauty>False</ForceBeauty>
<!-- <BeautyAfterTasks></BeautyAfterTasks> -->
<!-- set to True if you want to disable -->
<DisablePatch>False</DisablePatch>
<!-- valid values: Error|Detail|Info -->
<BeautyLogLevel>Error</BeautyLogLevel>
<!-- Set warehouse image , If you can't link to GitHub You can use this setting . It is recommended that mainland users open this configuration .-->
<!-- set to a repo mirror if you have troble in connecting github -->
<!-- <GitCDN>https://gitee.com/liesauer/HostFXRPatcher</GitCDN> -->
<!-- <GitTree>master</GitTree> -->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.2.9.3" />
</ItemGroup>
</Project>The above Chinese translation is provided by the following official account
In your use dotnet publish Order or Visual Studio When it was released , The movement will be done automatically .
An official test program is provided , You can see the source code here :
https://github.com/nulastudio/NetCoreBeauty/tree/master/NetCoreBeautyNugetTest
Luyao toolbox
Lu Yao's toolbox is what the author is learning WPF A small tool made by practicing hands , It is mainly used to solve some common functional requirements in the development process , And automate it . Up to now , This tool has more than ten functions .
For the convenience of end users , Not long ago, the author set up Luyao toolkit to be deployed and released independently , This article is the author's record of the solutions to the problems encountered in the process .
If you are interested in Luyao's toolbox , Download here :
https://www.coderbusy.com/luyao-toolkit
边栏推荐
- . Net ORM framework hisql practice - Chapter 1 - integrating hisql
- 流批一体在京东的探索与实践
- Three methods of modifying time zone in MySQL
- Elastic 8.0: opening a new era of speed, scale, relevance and simplicity
- 【二叉树】前序遍历构造二叉搜索树
- Redis (VIII) - enterprise level solution (I)
- Babbitt | yuanuniverse daily must read: minors ask for a refund after a reward. The virtual anchor says he is a big wrongdoer. How do you think of this regulatory loophole
- Add code block in word (Reprint)
- vue3 响应式数据库—— reactive
- Redis (III) - transaction
猜你喜欢

构建基本buildroot文件系统

vue3 响应式数据库—— reactive

Rainbow Brackets 插件的快捷键

ABAP-发布Restful服务

DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
![[零基础学IoT Pwn] 环境搭建](/img/3b/a0689a1570fcc40bb9a5a4e9cdc63c.png)
[零基础学IoT Pwn] 环境搭建

IEEE TBD SCI impact factor increased to 4.271, ranking Q1!

What did Tongji and Ali study in the CVPR 2022 best student thesis award? This is an interpretation of yizuo

4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?

Alexnet of CNN classic network (Theory)
随机推荐
Post office - post office issues (dynamic planning)
Map collection
清华只能排第3?2022软科中国大学AI专业排名发布
Deep understanding of JVM (VI) -- garbage collection (III)
Deep understanding of JVM (II) - memory structure (II)
Only black-and-white box test is required for test opening post? No, but also learn performance test
基于SSH的通讯网络电子计费系统
MSF后渗透总结
Design of online shopping mall based on SSH
. Net ORM framework hisql practice - Chapter 1 - integrating hisql
Rainbow Brackets 插件的快捷键
ABAP publish restful service
5g has been in business for three years. Where will innovation go in the future?
联想“双平台”运维解决方案 助力智慧医疗行业智慧管理能力全面提升
Customer relationship CRM management system based on SSH
ASP. Net authentication code login
Thinking on large file processing (upload, download)
[sword finger offer] 53 - I. find the number I in the sorted array
【剑指Offer】剑指 Offer 53 - II. 0~n-1中缺失的数字
New research of HKUST & MsrA: about image to image conversion, finishing is all you need