Skip to content

用于编译 .NET Core 程序的模块,可以将生成的可执行文件与DLL文件分离,将DLL文件单独放到程序目录中的文件夹中。

License

Notifications You must be signed in to change notification settings

withsalt/NetCoreDllPather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetCoreDllPather

用于编译 .NET Core 程序的模块,可以将生成的可执行文件与DLL文件分离,将DLL文件单独放到程序目录中的文件夹中。
Fork from https://github.com/HMBSbige/DotNetDllPathPatcher

How to use

1)复制src文件夹中的Build文件夹和build.ps1脚本到解决方案目录。

2)执行build.ps1
在解决方案目录下执行build.ps1,默认要编译的项目在当前解决方案更目录下,且项目的.csproj文件名称与指定的项目名称相同。

build.ps1 {发布架构} {项目名称} [可选]"{忽略的文件或文件夹}"

exp:

.\build.ps1 win-x64 Sample.Mvc "wwwroot,cert"   #不要忘了引号

架构可选参数:all,platform,win-x86,win-x64,win-arm,linux-x64,linux-arm

参数 说明
all 生成以下全部架构
platform 生成当前平台框架依赖
win-x86 win-x86
win-x64 win-x64
win-arm win-arm 32位
linux-x64 linux-x64
linux-arm linux-arm 32位

Demo

1.编译命令
demo

2.编译结果
demo

About

用于编译 .NET Core 程序的模块,可以将生成的可执行文件与DLL文件分离,将DLL文件单独放到程序目录中的文件夹中。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published