Questions tagged [dnx]

As an obsolete concept, the .NET Execution Environment contains the code required to bootstrap and run an application. This includes things like the compilation system, SDK tools, and the native CLR hosts.

Note that DNX is no longer an active term used in .NET Core ecosystem, and you should migrate to .NET Core CLI.

The .NET Execution Environment contains the code required to bootstrap and run an application. This includes things like the compilation system, SDK tools, and the native CLR hosts.

Goals

  • Create a new development experience that enables a quick development workflow (change code and run)
  • Have the ability to create a cached version of your application's dependencies ("compilation")
  • Expose metadata about the runtime for others to query

Principles

  • NuGet all the things
  • There is no such thing as "design time" (blur the lines between compilation and loading)
  • Dependencies are always described as what not where (there's no such thing as a project/nuget/assembly reference)
706 questions
134
votes
6 answers

How can I diagnose missing dependencies (or other loader failures) in dnx?

I'm trying to run a modified version of the HelloWeb sample for ASP.NET vNext on DNX using Kestrel. I understand that this is very much on the bleeding edge, but I would hope that the ASP.NET team would at least keep the simplest possible web app…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
104
votes
7 answers

How do I get the kestrel web server to listen to non-localhost requests?

I've deployed my c#, asp.net 5, mvc 6 app to a windows 2008 server. I've fired up dnx web and it is listening to port 5000 and works fine when accessing from local computer. How do I get it to listen to non-localhost requests? P.S. This question…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
72
votes
7 answers

Alternative solution to HostingEnvironment.QueueBackgroundWorkItem in .NET Core

We are working with .NET Core Web Api, and looking for a lightweight solution to log requests with variable intensity into database, but don't want client's to wait for the saving process. Unfortunately there's no…
71
votes
8 answers

How to watch for file changes "dotnet watch" with Visual Studio ASP.NET Core

I am using Visual Studio with ASP.NET Core and run the website using just F5 or Ctrl+F5 (not using the command line directly). I would like to use the "dotnet watch" functionality to make sure all changes are picked up on the fly to avoid starting…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
65
votes
5 answers

Where to find 'dnu' command in Windows

I have recently installed Visual Studio 2015 RC. I'm trying to figure out the new .NET Core thing... Now I want to package my application and launch it. I wanted to play with DNX Utility but can not figure out how to run it. My command prompt still…
Yves
  • 3,752
  • 4
  • 29
  • 43
59
votes
5 answers

How to get the "dnu" command working on OS X?

Just downloaded and installed Visual Studio Code on OS X 10.10.3. I've managed to partially follow the installation instructions for ASP.NET 5. What I fail with is when the instruction tells me to call dnu restore When doing this in my terminal, it…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
58
votes
8 answers

How to fix DNX/DNVM in Visual Studio 2015?

Today I installed VS 2015 on Windows 7 x64. Mainly to test new .Net Core features and etc. And for test I created new C# "Console Application (Package)" solution and got this message: DNX SDK version 'dnx-clr-win-x86.1.0.0-beta5' failed to install.…
user4861194
57
votes
2 answers

Project.json definition dnx451 vs .dotnet ( 4.51)

I've some In asp vnext I can define 3 Types of runtime dnxCore dnx451 dotnet In Project.json it looks like this: "frameworks": { "dotnet": { }, "dnx451": { }, "dnxcore50": { } }^ and the ui shors this I assume the…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
56
votes
3 answers

Unable to resolve assembly reference issue without frameworkAssemblies

I'm trying to validate that Protocol Buffers is going to work with the new portable runtimes from the ASP.NET team and ideally most other modern environments. The 3.0.0-alpha4 build was created a while ago using profile259, so I would expect some…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
48
votes
3 answers

RealProxy in dotnet core?

I'm working with the namespaces System.Runtime.Remoting.Proxies and System.Runtime.Remoting.Messaging for AOP in C#. I'm trying to port my application from .Net Framework 4.6 to dnxcore/dotnet core. Intellisense says, that these two namespaces are…
Matthias Burger
  • 5,549
  • 7
  • 49
  • 94
46
votes
1 answer

What are my options for sharing code between DNX / ASP.NET 5 projects (project.json / xproj) and other C# projects (csproj) within a single solution?

Scenario I'm experimenting with Visual Studio 2015 RC, specifically looking at switching to the new ASP.NET 5 framework, project structure and the new DNX that runs ASP.NET 5 applications. My employer has many existing solutions targeting .NET…
Matt Brooks
  • 1,584
  • 1
  • 14
  • 27
40
votes
7 answers

xUnit doesn't write message to the output pane

In Visual Studio 2015 Community I have a sample ASP.NET 5 (vNext) project and a project with unit tests (xUnit.net). The version of DNX is 1.0.0-beta5. My goal is to add messages during the test run to the output pane. Here I took a way to do this,…
Farfi
  • 473
  • 1
  • 4
  • 8
31
votes
3 answers

Is .NET Execution Environment (DNX) similar to Mono?

Here is the description of DNX: The .NET Execution Environment (DNX) is a software development kit (SDK) and runtime environment that has everything you need to build and run .NET applications for Windows, Mac and Linux. It provide a host…
Vano Maisuradze
  • 5,829
  • 6
  • 45
  • 73
28
votes
2 answers

Building a .NET Core app via command line, so that it works on a machine without .NET Core installed

My end goal is to create a cross-platform (non-web) console application, so I'm exploring .NET Core right now. In my previous .NET projects, I did all the development inside Visual Studio, but I also created a batch/MSBuild file so I could build the…
Christian Specht
  • 35,843
  • 15
  • 128
  • 182
28
votes
1 answer

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: Application1 Application2 Common Each of these solutions has multiple projects in; it wouldn't make sense to have all the projects in a…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
1
2 3
47 48