本文介绍了安装 KVM 破坏了当前的 asp.net vnext Web 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用命令行安装了 KVM,并且我在 VS2015 预览版中的 Web 项目无法编译,但是如果添加一个新的 Web 项目一切正常,如何卸载 KVM 以便我可以让我的旧项目正常工作.在这个视频中 Scott 提到了这个问题但没有解决方案,请看链接,视频在 8:00 分钟提到了这个问题视频

I installed the KVM using command line and my web project in VS2015 preview broke not compiling, but if add a new web project all works fine, how do uninstall the KVM so I can get my old project working. In this video Scott mention the issue but no solution, please see link, the video mention the issue at the 8:00 minutevideo

1:http://channel9.msdn.com/Series/Whats-New-with-ASPNET-5/05我将其更改为使用默认别名,但这不起作用

1: http://channel9.msdn.com/Series/Whats-New-with-ASPNET-5/05 I change the to use the default alias but that did not work

NuGet 设置

推荐答案

我认为您的版本不同步.检查您的 project.json 并确保您没有使用不同的版本.我发现当我有 1 个使用 3.0.0-* 的依赖项时,它从 beta1 升级到 beta2.我的所有其他依赖项实际上都定义了 beta1.(例如:1.0.0-beta1).如果 beta2 程序集与使用 beta1 的程序集共享相同的依赖项,它将覆盖正在使用的共享程序集的旧版本并导致旧版本失败.

I believe your versions are out of sync. Check your project.json and make sure you are not using different versions. I found that when I had 1 dependency that used 3.0.0-* it upgraded to beta2 from beta1. All of my other dependencies had beta1 actually defined. (Ex: 1.0.0-beta1). If the beta2 assembly shares the same dependency as one of your assemblies using beta1 it will override the older version of the shared assembly that is being used and causes your older version to fail.

这篇关于安装 KVM 破坏了当前的 asp.net vnext Web 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 11:17