问题标签 [dnvm]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
unity3d - 如何使用单声道和 dnx/dnvm 在 OSX 上定位 .NET35?
在使用 Visual Studio 2015 的 Windows 上,我可以使用dnu build
. 该project.json
文件如下所示:
安装后,mono
在Mac 上,按照本教程,我实际上可以在 OSX 上编译相同的项目!这本身就已经非常棒了!dnvm
dnx
现在,我将以下框架添加到我的project.json
文件中:
这仍然可以在 Windows 上编译,并按预期生成三组 dll。
但是,在 OSX 上,它不会构建 dnx20 目标。尽管据我了解,单声道编译器mcs
可以.net35
通过传入sdk
参数来设置为目标。
所以我的问题是:我可以在 OSX 上使用单声道来定位 .NET35 和 dnx 吗?
编辑
这个问题的目标是编译一组可以导入 Unity3d 的 dll。而且因为 Unity3d 使用 mono 作为运行时,我希望能够通过使用来做到这一点dnu build
,以便能够在任何平台上开发这些 dll。
c# - 更新 dnvm 到 1.0.0-rc1-final 后出错
将 dnvm 从更新beta8
到后,1.0.0-rc1-final
我的错误Startup.cs
:
我的项目.json:
我做错了什么?谢谢。如果我只是评论行:
我有这个错误:http ://clip2net.com/clip/m446898/72b2d-clip-21kb.png?nocache=1
dnx - 启动 Kestrel http 服务器时找不到名为 uv_loop_size 的入口点
我在 Ubuntu 下使用 yeoman 创建了一个简单的 ASP.NET 5 Web 应用程序:
- 哟阿斯网
- cd Web应用程序
- dnu 恢复
- dnx网站
我收到以下错误:
我确保已安装 libuv-dev: sudo apt get install libuv-dev
dnvm 列表:coreclr x64 1.0.0-rc1-final
我的 project.json 是:
asp.net-mvc - 运行 web 应用程序时出现 DNX 错误,想法?
我刚刚安装了一个新的空 ASP.NET 5 WebApplication,并在通过 IISExpress 运行应用程序时出现此错误。知道问题是什么吗?
无法加载文件或程序集“dnx.clr.managed”或其依赖项之一。该系统找不到指定的文件。说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。异常详细信息:System.IO.FileNotFoundException:无法加载文件或程序集“dnx.clr.managed”或其依赖项之一。该系统找不到指定的文件。源错误:在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。程序集加载跟踪:以下信息有助于确定程序集“dnx.clr”的原因。管理的'无法加载。=== 预绑定状态信息 === LOG:DisplayName = dnx.clr.managed(部分) WRN:为程序集提供了部分绑定信息:WRN:程序集名称:dnx.clr.managed | 域 ID:3 警告:仅提供部分程序集显示名称时会发生部分绑定。警告:这可能会导致活页夹加载不正确的程序集。WRN:建议为程序集提供完全指定的文本标识,WRN:由简单名称、版本、文化和公钥标记组成。警告:请参阅白皮书 当仅提供部分程序集显示名称时,会发生部分绑定。警告:这可能会导致活页夹加载不正确的程序集。WRN:建议为程序集提供完全指定的文本标识,WRN:由简单名称、版本、文化和公钥标记组成。警告:请参阅白皮书 当仅提供部分程序集显示名称时,会发生部分绑定。警告:这可能会导致活页夹加载不正确的程序集。WRN:建议为程序集提供完全指定的文本标识,WRN:由简单名称、版本、文化和公钥标记组成。警告:请参阅白皮书 http://go.microsoft.com/fwlink/?LinkId=109270有关此问题的更多信息和常见解决方案。日志:Appbase = file:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin 日志:初始 PrivatePath = NULL 调用程序集:(未知)。=== LOG:此绑定在默认加载上下文中开始。日志:配置文件 C:\Program Files (x86)\IIS Express\iisexpress.exe.config 不存在。LOG:未找到应用程序配置文件。LOG:使用主机配置文件:C:\Users\Admin\Documents\IISExpress\config\aspnet.config LOG:使用来自 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config 的机器配置文件. LOG:此时未将策略应用于引用(私有、自定义、部分或基于位置的程序集绑定)。日志:正在尝试下载新的 URL 文件:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr。托管.DLL。日志:正在尝试下载新的 URL 文件:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed/dnx.clr。托管.DLL。日志:正在尝试下载新的 URL 文件:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed.EXE。日志:正在尝试下载新的 URL 文件:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed/dnx.clr。托管.EXE。
这是我的 project.json
已安装 Dnx 版本
mono - dnvm 升级权限被拒绝
我尝试在我的 Mac (El Capitán) 中更新 dnvm,但我总是遇到这个错误:
有任何想法吗?谢谢
mono - 尝试执行时 dnx web 错误 500
我正在尝试在 Mac (El Capitán) 中执行,这是官方存储库中 ASP.NET 中的 MusicStore 示例。
我已经使用单声道和核心对其进行了测试,在 dnvm 中切换,但没有结果。dnu 构建与单声道一起工作正常,核心,构建失败。
当我执行 dnx web 时,一切正常,但是当我执行项目(首次加载)时,出现 500 错误,出现以下错误:
发生未处理的异常:尝试激活“Microsoft.AspNet.Mvc.Razor.Compilation.RoslynCompilationService”时,无法解析“Microsoft.Extensions.CompilationAbstractions.ILibraryExporter”类型的服务。
我已经改变了所有的可能性(单声道和核心),但我不知道问题出在哪里......我读过这个问题没有结果
项目 JSON 添加
}
谢谢!!
dnvm list(命令结果)我用 Mono 和 Core 测试过...
visual-studio-2015 - The dependency >= 1.0.0-rc1-update1 could not be resolved
I want to update my C# web application to the next asp.net version.
I ran
and dnvm list shows that the active version has been set to rc1-update1
Now I want to update my VS2015 solution to use rc1-update1
I edited project.json to update the version from rc1-final to rc1-update1
however VS now indicates "package restore failed". and I have error messages like this.
Hovering my mouse over the edited dependencies in project.json shows
I must be missing a step. How do I upgrade my project to use the Active Version of the framework?
[Update] When I create a new web application from the template I notice that it is still using rc1-final.
There is also a message in the Solution Explorer window "Package restore failed" The Output shows the following
from this I see it is trying to run the x86 version of dnx. Why would that be?
[Update] I am wondering why it would be using nuget.org/api/v2 so I reinstalled nuget using extension manager. It shows version 3.3.0.167 in Extension Manager, yet the output window for Package Manager still metions V2.
I am running Windows 7
[Update] project.json is
Here is my NuGet.Config file
Here is my package sources
The SBD one is just a few we developed in house. I don't think it should affect things.