gpt4 book ai didi

c# - ASP.NET VNext 调试 MVC 源代码

转载 作者:太空狗 更新时间:2023-10-29 20:07:24 25 4
gpt4 key购买 nike

我关注了 blog post of Imran Baloch他在其中展示了如何调试到 ASP.Net MVC VNext。

我在 Azure 中使用了一个安装了 Vs 2014 的虚拟机。 enter image description here

我创建了全局解决方案文件夹并在其中放置了一个 global.json 文件,我在其中指定了包含从 https://github.com/aspnet/Mvc/tree/dev/src 克隆的当前 MVC 源的文件夹。 .当我尝试编译解决方案时,由于缺少引用,我遇到了很多错误。

enter image description here

有人尝试过博文中提出的方法吗?我做错了什么?

最佳答案

我在这里盲目射击,因为将源添加到 global.json 对我来说效果很好。

尝试使用以下内容将 NuGet.config 文件添加到您的解决方案:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/" />
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
</packageSources>
</configuration>

此外,尝试运行 kpm restore在解决方案文件夹的根目录下。

如果这没有帮助,请添加更多信息,例如 KRE 版本,<user profile>\.kre 中的内容或 <user profile>\.kpm文件夹

关于c# - ASP.NET VNext 调试 MVC 源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24984866/

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