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

问题描述

我使用命令行安装了KVM,并且在VS2015预览版中我的Web项目无法编译,但是如果添加一个新的Web项目都能正常工作,如何卸载KVM,这样我就可以使我的旧项目正常工作了.在此视频中,斯科特提到了问题,但没有解决方案,请查看链接,视频在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 Broke Current asp.net vnext Web项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 20:47