gpt4 book ai didi

c# - 如何在混淆后从 DLL 创建 nuget 包

转载 作者:行者123 更新时间:2023-12-05 06:07:26 25 4
gpt4 key购买 nike

您好,我有一个类库项目,我构建了它DLL,然后我使用软件对DLL应用混淆,之后我得到了新混淆的 DLL

所以现在我的问题是如何仅从混淆的DLL 创建nuget 包?

提前致谢。

最佳答案

我找到了解决方案,一个是使用 post-build event 自动创建 nukpkg。

部分代码:

//Add your obfucate code     

//--no-build is needed
dotnet pack --no-build

//upload to nuget
nuget setapikey xxx -source xxxxxx
nuget push xx.nupkg -source xxxxxx

或者您可以使用 NuGetPackageExplorer手动创建 nupkg 并手动上传到 nuget。

关于c# - 如何在混淆后从 DLL 创建 nuget 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65436864/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com