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
13
votes
4 answers

'prebuild' scripts in project.json doesn't run

I have a .NET 5 web application using the DNX framework, and I want to run 'npm install', 'bower install' and others, whenever I build the project. Right now I'm able to do so on publish, using 'prepublish', but it doesn't seem to work with…
user265732
  • 585
  • 4
  • 14
12
votes
4 answers

Copy content files to output directory of DNX Console app via project.json

I've just started working with DNX 1.0.0-rc1-update1 in VS2015. My first app is a 'Console Application (package)' project. Everything works, except NLog logging. I suspect it's because the NLog.config doesn't get copied to the output folder. How can…
Alex G.
  • 2,113
  • 6
  • 25
  • 33
12
votes
1 answer

How to consistently get application base path for ASP.NET 5 DNX project on both production and development environment?

I have deployed a ASP.NET MVC 6 website to Azure from Git. Details of the deployment can be found in this blog post but basically I use DNU to publish it and then kudu to push it to an Azure website. Using IHostingEnvironment I get the…
Devon Burriss
  • 2,497
  • 1
  • 19
  • 21
12
votes
2 answers

ASP.NET 5 Environment Name in Azure Web App

Where is it best to set the environment name for each deployment of a ASP.NET 5 web application when publishing to Azure Web Apps? I understand that the ASPNET_DEV environment variable needs to be set. Is this possible on publish? This is our…
Dave New
  • 38,496
  • 59
  • 215
  • 394
12
votes
2 answers

Is there any difference/reason to create dnx50 build target in addition to dnx451?

Usually we see the following targets in project.json: "frameworks": { "net45": {}, "dnx451": {}, "dnxcore50": { } } dnxcore50 will be the only portable version of the project code and dnx451 actually targets .Net 4.5.1 mscorlib…
MichaC
  • 13,104
  • 2
  • 44
  • 56
12
votes
1 answer

Get available types in CoreCLR

This is easy to get all available types (for some interface for example) in the old .NET, but I can't find the way how to do that in the new CoreCLR. What I want to do is to have function like GetRepository, that should look for existing…
Dmitry Sikorsky
  • 1,374
  • 14
  • 23
11
votes
1 answer

UWP application and .NET Core RC2: cannot reference netstandard1.4 packages

I have a scenario where I run a UWP client application, a UWP IOT application and a .NET Core application using a shared code base. In .NET Core RC1 I built a Class Library (Package) and used "dotnet5.4" as the base framework for that library. Using…
Simon Mattes
  • 4,866
  • 2
  • 33
  • 53
11
votes
1 answer

ServicePointManager.DefaultConnectionLimit in .net core?

I am porting a web api 2 service to .net core and I found this line in my old web api service. ServicePointManager.DefaultConnectionLimit = int.MaxValue; This line of code increases the connection limit. I don't know if it's for the computer or the…
Bilal Fazlani
  • 6,727
  • 9
  • 44
  • 90
11
votes
7 answers

dnx project start up error - dnx design time process. No connection could be made

When I open a (dnx46) project in my visual studio I (most of the times) get the following error: The following error occurred attempting to run the DNX design time process (dnx-clr-win-x86.1.0.0-rc1-final) No connection could be made because the…
Pieter
  • 420
  • 4
  • 11
11
votes
1 answer

'TimeZoneInfo' does not contain a definition for 'ConvertTimeFromUtc' (DNX Core 5.0)

The code below used to work fine before upgrading to asp5. The method ConvertTimeFromUtc is not supported by DNX Core 5.0. Is there another proper way of achieving this? public DateTime GmtNow() { return…
Toonsylvania
  • 453
  • 6
  • 21
11
votes
3 answers

How to call a RESTful API with ASP.NET 5

Working with ASP.NET 5 on my Mac in Visual Studio Code. I have a RESTful API I need to call and not sure exactly how to do it. I've seen many examples using WebClient, HttpClient, WebRequest and HttpWebRequest. I think my pain point is the dnxcore50…
Richard.Davenport
  • 1,453
  • 3
  • 16
  • 31
11
votes
4 answers

Target framework dnx451 or net451 in class library projects

From what I understand, the target frameworks dnx451 and net451 both use the desktop .NET Framework 4.5.1. dnx451 is especially intended for DNX runtime application and supports ASP.NET 5. If we have a solution with a ASP.NET 5 project and multiple…
Dave New
  • 38,496
  • 59
  • 215
  • 394
11
votes
2 answers

DNX Web command throwing 'unable to resolve project' error after publishing from VS2015

This is about an obsolete pre-release version of .net core. I have created a basic project in pre-release ASP.Net 5 (later on was renamed to asp.net core) using a beta/preview of visual studio 2015, I have published the project to a file system and…
Stradosphere
  • 1,285
  • 3
  • 14
  • 40
11
votes
1 answer

Entity Framework 7 Migration Scaffolding in Class Library with Configuration

Trying to add migrations to an EF7 Model that lives in an ASP.NET 5 class library. When running dnx . ef migration add mymigration fails with different results depending on which project I run it on. If I run it in the folder of the main project,…
11
votes
1 answer

Install specific version of dnx

I work on an ASP.NET 5 project which was set up using dnx/k version 1.0.0-beta3. Recently I did a clean install of my OS and VS and lost beta3 packages, I have only beta4 installed. Is it possible to install specific version of dnx? I have already…
Zacateras
  • 295
  • 5
  • 19