如何在 .net 核心应用程序中使用自定义 corefx 构建 [英] How to use a custom corefx build in .net core application

查看:18
本文介绍了如何在 .net 核心应用程序中使用自定义 corefx 构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更改了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?

推荐答案

官方文档(可能已经过时)在这里:https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md#more-advanced-scenario---using-your-local-corefx-build.

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.

总结:

  1. 设置一个非零的内部版本号
  2. 构建 CoreFx
  3. 将构建的 CoreFx 包添加到您的 NuGet 提要
  4. 更改您的依赖项以要求您刚构建的软件包的版本
  5. 重建你的项目

根据您尝试执行的操作,更简单的替代方法可能是构建整个 .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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆