简体   繁体   English

如何在.net核心应用程序中使用自定义corefx构建

[英]How to use a custom corefx build in .net core application

I changed few classes in the 'corefx' source code, build and run unit tests. 我更改了“ corefx”源代码中的几个类,构建并运行了单元测试。 Everything went well and now I have my custom 'corefx' build. 一切进展顺利,现在我有了自定义的“ corefx”版本。

Now I need to try to use the customized 'corefx' build in my test .net core application. 现在,我需要尝试在测试.net核心应用程序中使用自定义的“ corefx”构建。 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 . 官方文档(可能已过期)在此处: https : //github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md#more-advanced-scenario---using- your-local-corefx-build

To summarize: 总结一下:

  1. Set a non-zero build number 设置一个非零的内部版本号
  2. Build CoreFx 构建CoreFx
  3. Add the built CoreFx packages to your NuGet feed 将内置的CoreFx软件包添加到您的NuGet提要中
  4. Change your dependencies to require the version of the packages you just built 更改您的依赖项以要求您刚刚构建的软件包的版本
  5. Rebuild your project 重建项目

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 Core项目 ,该项目将包括对corefx的任何修改。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker如何构建.Net核心应用? - How to build .Net core application in Docker? 如何在CoreCLR和CoreFX中使用System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod? - How to use System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod with CoreCLR and CoreFX? 如何在.Net Core中使用自定义预处理程序指令 - How to use custom preprocessor directives in .Net Core dotnet core/corefx 中是否有与 HtmlTextWriter 等效的类? - Is there an equivalent class to HtmlTextWriter in dotnet core/corefx? 如何在 .Net core 控制台应用程序中使用依赖注入 - How to use Dependency Injection in .Net core Console Application 如何使用正确的连接字符串 .net 核心控制台应用程序 - How to use proper connection string .net core console application 如何在自定义类构造函数中注入单例并使用它 | .NET 核心 2 - How to inject a singleton in a custom class constructor and use it | .NET Core 2 如何在 ASP.Net Core - CKEDITOR 5 上使用自定义上传适配器? - How to use custom upload adapter on ASP.Net Core - CKEDITOR 5? 如何在.NET核心应用程序中使用.NET核心类库? - How do I use a .NET core class library in a .NET core application? 如何使用托管在 .Net framework 4.6 应用程序中的登录页面对 .Net Core 3.1 上的 IdentityServer4 应用程序进行身份验证? - How to use login page hosted in .Net framework 4.6 application to authenticate for IdentityServer4 application on .Net Core 3.1?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM