-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,46 @@ | ||
# NetCoreBeauty | ||
|
||
## What is it? | ||
Move a .NET Core app runtime components and dependencies into a sub-directory and make it beauty. | ||
|
||
## Before Beauty | ||
![before_beauty](before_beauty.png) | ||
|
||
## After Beauty | ||
![after_beauty](after_beauty.png) | ||
|
||
## How to use? | ||
1. Add Nuget reference into you .NET Core project. | ||
``` | ||
dotnet add package nulastudio.NetCoreBeauty | ||
``` | ||
you `*.csproj` should be similar like this | ||
``` | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp2.2</TargetFramework> | ||
<!-- beauty into sub-directory, default is libs, quote with "" if contains space --> | ||
<BeautyLibsDir>libraries</BeautyLibsDir> | ||
<!-- set to True if you want to disable --> | ||
<DisableBeauty>False</DisableBeauty> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.0.1" /> | ||
</ItemGroup> | ||
</Project> | ||
``` | ||
when you run `dotnet publish` , everything is done automatically. | ||
|
||
2. Use the binary application if you project has already be published. | ||
``` | ||
Usage: | ||
ncbeauty <beautyDir> [<LibsDir>] | ||
``` | ||
for example | ||
``` | ||
ncbeauty /path/to/publishDir | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters