如何在.net核心应用程序中使用自定义corefx构建 [英] How to use a custom corefx build in .net core application
问题描述
我在'corefx'源代码中更改了几个类,构建并运行了单元测试.一切进展顺利,现在我有了自定义的"corefx"构建.
I changed few classes in the 'corefx' source code, build and run unit tests. Everything went well and now I have my custom 'corefx' build.
现在,我需要尝试在测试.net核心应用程序中使用自定义的"corefx"构建.我应该怎么办?有什么指导目的吗?
Now I need to try to use the customized 'corefx' build in my test .net core application. What should I do? Is there any guidelines for my purposes?
推荐答案
The official docs (which may be out of date) are here: https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md#more-advanced-scenario---using-your-local-corefx-build.
总结:
- 设置一个非零的内部版本号
- 构建CoreFx
- 将内置的CoreFx软件包添加到您的NuGet提要中
- 更改依赖项以要求您刚构建的软件包的版本
- 重建项目
根据您要执行的操作,一个更简单的替代方法可能是构建整个.NET核心项目,其中将包括您对corefx所做的任何修改.
Depending on what you are trying to do, an easier alternative may be to build the entire .NET Core project, which will include any of your modifications to corefx.
这篇关于如何在.net核心应用程序中使用自定义corefx构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!