How do I fix NU1002: Microsoft.Dnx.Compilation.Abstractions does not support framework DNXCore,Version=v5.0

How do I fix this error?DNX Core 5.0 error NU1002: The dependency Microsoft.Dnx.Compilation.Abstractions 1.0.0-rc1-final in project CSharp.Tests does not support framework DNXCore,Version=v5.0.In projects.json I have"frameworks": { "dnxcore50": { "compilationOptions": { "define": [ "PORTABLE" ] },How is Microsoft.Dnx.Compilation.Abstractions being referenced? I have no idea... oh wait, maybe its this?...Read more

dnx - The type or namespace name 'Web' does not exist in the namespace 'System'

I am building a project in .NET 5 where I need to use the Framework Assembly System.Web.Extension. I install the assembly via Reference -> Add Reference -> System.Web.Extension After it installed it appears under DNX 4.5.1 -> FrameworkAssemblies. Package restoration was successful as well.Following entry is added in project.json file as expected. "frameworkAssemblies": {"System.Web.Extensions": ""}But when I am trying to compile the project using dnu build, following error appears! D:\Projects\ColemanApi\src\ColemanAp...Read more

dnx - Unable to find an entry point named uv_loop_size when launching Kestrel http server

I created a simple ASP.NET 5 web app using yeoman under Ubuntu:yo aspnetcd WebApplication dnu restorednx webAnd I am getting the following error:System.EntryPointNotFoundException: Unable to find an entry point named 'uv_loop_size' in DLL 'libuv'. at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.NativeMethods.uv_loop_size() at Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init(Libuv uv) at Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart(Object parameter)I made sure libuv-dev is installed : sudo apt get install libuv...Read more

Buggy Visual Studio and DNX Issues: The Dnx Runtime package needs to be installed

I am having slew of DNX-related issues in my Visual Studio and dvnm setup related to detecting the version of DNX I have installed and properly referencing my dnx runtime path. To start, I am trying to perform a Publish from my project and only DNX version 1.0.0-rc1-update1 is available in the 'Target DNX Version' dropdown. I attempt to proceed and the error that is being thrown is The Dnx Runtime package needs to be installed. See output window for more detailsIn my global.json file,"sdk": {"version": "1.0.0-rc1-update2"}the version of my DNX ...Read more

dnx - What is the expected behaviour of parent-relative directories in global.json?

(Now raised as DNX issue 3206...)DNX environment: 1.0.0-rc1, Windows 10 x64.Imagine I have three solutions:Application1Application2CommonEach of these solutions has multiple projects in; it wouldn't make sense to have all the projects in a single solution, even though that would simplify this particular issue.Various projects in Application1 and Application2 depend on a project in Common. Their project.json files indicate that dependency in a normal way. While eventually I'd like to publish the artifacts from Common to a NuGet server (internal ...Read more

How to Understand the "DNX SDK" and the "Framework" in the Asp.Net 5 Project

I'm a little confused about some terms in the next version of ASP.Netwe can set the default dnx version in the DNVMwe can specify dnx sdk version in the global.json of the solutionwe can set the frameworks (dnx451, dnxcore50) in the projectwe can specify runtime on the property page of the web app project.How do these settings work on the dev machine (ie have much version of dnx installed) and production machine?ThanksFrank...Read more

dnx - IPrincipal cannot be found in dnxcore50

I try to use IPrincipal in dnxcore50. Although it works fine on Windows, I get the following error when running dotnet restore on OS X: Unable to resolve System.Security.Principal (>= 4.0.1-rc3-23829) for DNXCore,Version=v5.0 (osx.10.11-x64).My project.json looks like this:{ "version": "0.1.3-*", "compilationOptions": { "emitEntryPoint": false }, "compile": "*.cs", "exclude": "Platform/**/*.cs", "frameworks": { "net45": { "include": "Platform/DotNet45/*.cs", "frameworkAssemblies": { "System.Xml": "", ...Read more

Visual Studio Code command "dnx run" not available

I'm hoping some of you out there have tried out visual studio code for OSX and have gotten it to work with a simple C# console application.I tried following this guys tutorial, linked below.Creating and Debugging C# Console Apps with Visual Studio Code on OSXMy problem is that the command "dnx run" is not showing in my command line options in visual studio code. The command "dnx run" works from the terminal, but doesn't show in visual studio code as an available command. All I see from visual studio code for dnx is below.Additionally I noticed ...Read more

dnx - How to Read File in MVC dnx45 11.0.0-beta4 Controller

I am trying to write some pretty basic MVC Controller code to read in a file in a direcory located in a wwwroot sub folder. When I add this code to my controller:String path = HttpContext.Current.Server.MapPath("~/Data/data.html");VS tells me that HttpContext is available in "Microsoft.AspNet.Http.Abstractions": "1.0.0-beta5-11495" so using Visual Studio's quick helper I choose the option to add it to the project.json file. It also adds this using statement to my controller class.using Microsoft.AspNet.Http;Then all heck breaks out because wh...Read more

log4net reference error DNX 451 and 5.0

I am having trouble implementing log4net using DNX in a class library. I have the following in my project.json - ..."dependencies": { "log4net": "2.0.3", "Microsoft.Framework.Logging": "1.0.0-beta4" }, "frameworks": { "dnx451": { }, "dnxcore50": { "dependencies": { "System.Collections": "4.0.10-beta-22816", "System.Linq": "4.0.0-beta-22816", "System.Threading": "4.0.10-beta-22816", "Microsoft.CSharp": "4.0.0-beta-22816" } ...Read more

DNX does not work

I have installed dnvm successfully on windows server 2008. but when I run "dnx", nothing shown. no error message like this:C:\Windows\system32\dnx C:\Windows\system32\someone had the same problem?...Read more

dnx - Aspnet5 Console Application not allowing me non static main

I am developing a console application in ASPNET5. I read that it allows instance based entry point ( However when I create a new project using ASPNet5 Console Application project template, it creates public static void Main(string[] args)Then I thought, okay I might be able to change this to non static and add dependencies in Program constructor. I tried that but it complains and says "Program does not contain a static 'Main' method suitable for an entry point". Now question is if it does...Read more

dnx - How to uninstall a package with dnu?

I can install packages into a dnx project with dnu install whatever, but I haven't been able to figure out how to uninstall a package.I tried just deleting the line from the project.json file and doing a dnu restore, but it appears to not have done the trick. (Some code that should have started failing continued to build correctly.) I also tried dnu commands uninstall, but that appears to be for global commands rather than packages.I'm using dnu version 1.0.0-rc1-16231....Read more

CurrentCulture Not Available in DNX Core 5.0

I am having trouble diagnosing a dependency issue using the latest (5/1/2015) version of Visual Studio 2015 RC 14.0.22823.1 D14REL.The following code is not compiling and throwing this error:Severity Code Description Project File LineError CS1061 'Thread' does not contain a definition for 'CurrentCulture' and no extension method 'CurrentCulture' accepting a first argument of type 'Thread' could be found (are you missing a using directive or an assemblyreference?) ServiceLibrary.DNX Core 5.0 using System;using System.Globalization;us...Read more