今天我在Windows 7 x64上安装了VS 2015.主要是为了测试新的.Net Core功能等.为了测试,我创建了新的C#"控制台应用程序(包)"解决方案并获得了以下消息:
DNX SDK版本'dnx-clr-win-x86.1.0.0-beta5'无法安装.该解决方案将使用DNX SDK版本'dnx-clr-win-x86.1.0.0-beta5'进行此会话.
我无法编译和调试项目.此外,当我在项目属性中打开调试选项卡时,VS崩溃了.
打开解决方案时的DNVM输出:
Invoke-Command : The term 'x86' is not recognized as the name of a cmdlet, func
tion, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:1451 ????:27
+ Invoke-Command <<<< ([ScriptBlock]::Create("dnvm-$cmd $cmdargs")
)
+ CategoryInfo : ObjectNotFound: (x86:String) [Invoke-Command], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Co
mmands.InvokeCommandCommand
Invoke-Command : The term 'x86' …
Run Code Online (Sandbox Code Playgroud) 我正在使用新的Visual Studio代码编辑器,并创建了一个ASP.NET 5模板项目.
为了恢复软件包,我在教程中发现我需要运行dnu restore
命令,它获取了我需要的所有服务器端引用.
在那之后,为了构建它,我必须运行dnx: web or kestrel
命令,一切都按预期进行.
但是,那些工具是什么?在DNVM的Git存储库中,我们没有太多关于它的信息.
是否dnu restore
使用NuGet?
是否有关于新.NET中所有内容的完整文档?
我也想知道是否可以在Windows 8.1上的Visual Studio Code中使用Roslyn编译器.
我收到以下运行时错误:
[InvalidOperationException: The current runtime target framework is not compatible with 'TestDeployProject'.
Current runtime Target Framework: 'DNX,Version=v4.5 (dnx45)'
Type: CLR
Architecture: x86
Version: 1.0.0-beta6-12256
Please make sure the runtime matches a framework specified in project.json]
Run Code Online (Sandbox Code Playgroud)
项目设置DNX SDK版本:
project.json
目标框架:
"frameworks": {
"dnx46": { }
},
Run Code Online (Sandbox Code Playgroud)
DNVM列表:
Active Version Runtime Architecture OperatingSystem Alias
------ ------- ------- ------------ --------------- -----
1.0.0-beta6 clr x64 win
* 1.0.0-beta6 clr x86 win latest
1.0.0-beta6 coreclr x64 win default
Run Code Online (Sandbox Code Playgroud)
可能是什么问题呢?
编辑:
我曾尝试在指定使用dnx451 这个职位.同样的问题.环境变量也没有帮助.
我在包管理器控制台中运行此命令以升级dnx.
"dnvm upgrade -u default"
Run Code Online (Sandbox Code Playgroud)
一旦它得到更新,我可以看到(C:\ Users\Chandrasekar.dnx\runtimes)新的运行时版本,如下所述
"dnx-clr-win-x86.1.0.0-beta8-15530"
Run Code Online (Sandbox Code Playgroud)
我开始在VS2015中创建新项目 - > ASPNET 5 Web应用程序,它最终出现了一些错误.
在输出窗口中,您可以看到错误"无法加载'Microsoft.DNX.PackageManager' ",根据此公告,它已被重命名为"Microsoft.Dnx.Tooling",所以我的问题是为什么新的DNX beta 8版本仍然依赖在这个删除或重命名的DLL'Microsoft.DNX.PackageManager '?
输出窗口错误:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
C:\Users\Chandrasekar\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta8-15530\bin\dnx.exe "C:\Users\Chandrasekar\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta8-15530\bin\lib\Microsoft.DNX.PackageManager\Microsoft.DNX.PackageManager.dll" restore "C:\Users\Chandrasekar\Documents\Visual Studio 2015\Projects\DNX8\src\DNX8" -f "C:\Program Files (x86)\Microsoft Web Tools\DNU"
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DNX.PackageManager' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.DNX.PackageManager'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence …
Run Code Online (Sandbox Code Playgroud) 我在使用dnx/k版本1.0.0-beta3设置的ASP.NET 5项目上工作.最近我干净安装了我的操作系统和VS并丢失了beta3软件包,我只安装了beta4.是否可以安装特定版本的dnx?我已经尝试过了:
dnvm install 1.0.0-beta3
等等
这是关于.net核心的过时预发布版本.
我已经使用visual studio 2015的beta /预览创建了预发布ASP.Net 5(后来改名为asp.net core)的基本项目,我已将项目发布到文件系统并尝试运行它从那里使用命令
dnx . web
Run Code Online (Sandbox Code Playgroud)
结果的错误是"无法解决项目".我已经检查过dnvm正在使用默认框架.我发布的目录包含web,web.cmd,wwwroot和approot文件夹.还有什么我应该检查的吗?
我正在使用:asp.net core 1.0.0-beta4 clr
嘿伙计们,我正在学习本教程,以便在我的OSX中运行.NET Core:
If you choose to install Mono, select the universal installer to make sure you get the x64 version. Edge.js requires Mono x64.
If you choose to install CoreCLR], follow these steps:
brew tap aspnet/dnx
brew update
brew install dnvm
source dnvm.sh
dnvm install latest -r coreclr -alias edge-coreclr
Then install and build Edge.js:
brew install pkg-config
dnvm use edge-coreclr
npm install edge
Run Code Online (Sandbox Code Playgroud)
现在,我想删除所有这些东西,但我找不到路径.
我删除了dnvm
与pkg-config
用brew uninstall
.订单怎么样?
谢谢.
DNVM .dnx
在C:\Users\myUsername\.dnx
(in %USERPROFILE%
)中安装目录.
不幸的是,我的用户配置文件被IT政策限制为30 MB.
如何将此目录移动到其他位置,例如C:\.dnx
?
我试图创建从符号链接C:\Users\myUsername\.dnx
到C:\.dnx
,但它似乎像Visual Studio不遵循构建解决方案的时候符号链接,所以我得到的编译错误,例如这样的:
Could not find a part of the path 'C:\Users\myUsername\.dnx\packages\System.IO\4.0.10-beta-22816\lib\contract\System.IO.dll'.
我在Windows 7 Professional下使用Visual Studio Community 2015 RC和.NET 4.6.
我是OSX的新手.按照https://github.com/aspnet/home中的分步说明进行操作.
brew tap aspnet/dnx
brew update
brew install dnvm
Run Code Online (Sandbox Code Playgroud)
运行dnvm upgrade时出现以下错误:
$ dnvm upgrade
Error:
-bash: dnvm: command not found
Run Code Online (Sandbox Code Playgroud)
我尝试找到dnvm,看起来它已成功安装在\ usr\local目录中.
我缺少一步吗?
我今天早上升级到VS2015 RC,我使用ASP.NET 5模板 - 网站创建了一个新项目.我有一个错误,我无法解决:
处理请求时发生未处理的异常.
MissingMethodException:找不到方法:'System .Collections.Immutable.ImmutableArray`1 Microsoft.CodeAnalysis.Emit.EmitResult.get_Diagnostics()'.
Microsoft.AspNet.Mvc.Razor.RoslynCompilationService.Compile(RelativeFileInfo fileInfo,String compilationContent)
这是完整的错误堆栈:
MissingMethodException:找不到方法:'System.Collections.Immutable.ImmutableArray`1 Microsoft.CodeAnalysis.Emit.EmitResult.get_Diagnostics()'.
Microsoft.AspNet.Mvc.Razor.RoslynCompilationService.Compile(RelativeFileInfo fileInfo,String compilationContent)
Microsoft.AspNet.Mvc.Razor.RazorCompilationService.Compile(RelativeFileInfo文件)
Microsoft.AspNet.Mvc.Razor.CompilerCache.OnCacheMiss(RelativeFileInfo文件,String normalizedPath,Func`2编译)
Microsoft.AspNet.Mvc.Razor.CompilerCache.GetOrAddCore(String relativePath,Func`2 compile)
Microsoft.AspNet.Mvc.Razor.CompilerCache.GetOrAdd(String relativePath,Func`2 compile)
Microsoft.AspNet.Mvc.Razor.VirtualPathRazorPageFactory.CreateInstance(String relativePath)
Microsoft.AspNet.Mvc.Razor.RazorViewEngine.LocatePageFromViewLocations(ActionContext context,String pageName,Boolean isPartial)
Microsoft.AspNet.Mvc.Razor.RazorViewEngine.GetRazorPageResult(ActionContext context,String pageName,Boolean isPartial)
Microsoft.AspNet.Mvc.Razor.RazorViewEngine.FindView(ActionContext context,String viewName)
Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine.FindView(ActionContext context,String viewName,Boolean partial)
Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine.FindView(ActionContext context,String viewName)
Microsoft.AspNet.Mvc.ViewResult.d__20.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__44.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__43.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__42.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__37.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__32.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNet.Mvc.MvcRouteHandler.d__3.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNet.Mvc.MvcRouteHandler.d__2.MoveNext()
---从抛出异常的先前位置开始的堆栈跟踪结束--- …