I'm trying to run the latest Asp.Net 5 samples (currently 1.0.0-rc1-update1) on my Ubuntu 14.04 VM guest using VirtualBox on Windows 10. The sample code is being run via shared host directory.
我正在尝试使用Windows 10上的VirtualBox在我的Ubuntu 14.04 VM guest虚拟机上运行最新的Asp.Net 5示例(当前为1.0.0-rc1-update1)。示例代码通过共享主机目录运行。
I have the active and default DNX set as the CoreCLR x64.
我将活动和默认DNX设置为CoreCLR x64。
When I have run the dnu restore
command against either of the 2 web projects, the restore completes but with an error message. For example, for the HelloWeb project:
当我针对2个Web项目中的任何一个运行dnu restore命令时,还原完成但出现错误消息。例如,对于HelloWeb项目:
Unable to locate Dependency helloweb >= 1.0.0
无法找到Dependency helloweb> = 1.0.0
If I run then command dnx web
for the web projects I get the error message:
如果我运行命令dnx web for web projects我收到错误消息:
Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web.
错误:无法加载应用程序或执行命令'Microsoft.AspNet.Server.Kestrel'。可用命令:web。
I have a related question here as I am also trying to also get the same samples running on my Windows machine. As they are basic and also unmodified, so I can't understand why they are not working. To make things worse, I actually had them running on this VM yesterday in the same manner I am trying here and as far as I'm aware, nothing has changed other than I have restarted the VM in the meantime.
我在这里有一个相关的问题,因为我也试图在我的Windows机器上运行相同的样本。因为它们是基本的而且未经修改,所以我无法理解为什么它们不起作用。更糟糕的是,我实际上让它们昨天在这个VM上运行,就像我在这里尝试一样,据我所知,除了我在此期间重新启动VM之外没有任何改变。
Can anyone suggest why the projects are referencing themselves in this way and how I can resolve it?
任何人都可以建议为什么项目以这种方式引用自己以及我如何解决它?
1 个解决方案
#1
0
The issue was being caused because the source code was being shared and the project.lock.json file had been created by the dnu restore
process on Windows. I created a separate set of code samples and the code restored then ran fine.
问题是由于源代码正在共享而且project.lock.json文件是由Windows上的dnu还原进程创建的。我创建了一组单独的代码示例,然后恢复的代码运行正常。
This doesn't explain why the message was appearing but I assume the message Unable to locate Dependency helloweb >= 1.0.0
is actually a red herring and possibly refers to the fact that it can't replace the lock file.
这并不能解释消息出现的原因,但我认为消息无法找到Dependency helloweb> = 1.0.0实际上是一个红色的鲱鱼,可能是指它无法替换锁定文件。
#1
0
The issue was being caused because the source code was being shared and the project.lock.json file had been created by the dnu restore
process on Windows. I created a separate set of code samples and the code restored then ran fine.
问题是由于源代码正在共享而且project.lock.json文件是由Windows上的dnu还原进程创建的。我创建了一组单独的代码示例,然后恢复的代码运行正常。
This doesn't explain why the message was appearing but I assume the message Unable to locate Dependency helloweb >= 1.0.0
is actually a red herring and possibly refers to the fact that it can't replace the lock file.
这并不能解释消息出现的原因,但我认为消息无法找到Dependency helloweb> = 1.0.0实际上是一个红色的鲱鱼,可能是指它无法替换锁定文件。