Questions tagged [coreclr]

CoreCLR is new .NET Core runtime. It is an execution engine for .NET apps, performing functions such as IL byte code loading, compilation to machine code and garbage collection.

Source repo: https://github.com/dotnet/coreclr

301 questions
0
votes
1 answer

System.InvalidOperationException: The current runtime target framework is not compatible with 'HelloWorld'

I am trying to run a first helloword app with .net 5 and visual studio code. If I enter dnvm list I have this: Active Version Runtime Architecture OperatingSystem Alias ------ ------- ------- ------------ --------------- ----- …
Luis Valencia
  • 27,032
  • 76
  • 237
  • 423
0
votes
0 answers

Unable to load 'System.ComponentModel.DataAnnotations' from dnx using RC1 of the coreclr runtime

Not sure if I should expect this to work or not, but I'm trying to use a .net library (https://github.com/ewoutkramer/fhir-net-api) from a simple console application using coreclr RC1 on my mac and I'm hitting the following runtime…
lmsurprenant
  • 1,236
  • 1
  • 9
  • 20
0
votes
1 answer

Why are there multiple levels of dependecies in aspnet5 project.json?

Why in the project.json is there a “dependencies” element outside of any of the target “frameworks”? When do dependencies go there versus under \frameworks\net451\frameworkAssemblies or \frameworks\dnxcore50\dependencies "frameworks": { …
Dave Stucki
  • 121
  • 3
0
votes
2 answers

ASP.Net DNX Core CLR issue with StructureMap.Dnx: The type 'Object' is defined in an assembly that is not referenced

I'm trying out the new Core CLR type ASP.Net on my Mac and running in to no end of problems. I've managed to get StructureMap referenced and installed via dnu and dnu restore, but now I'm getting errors in VS Code stating that: The type 'Object' is…
James Woodley
  • 451
  • 1
  • 4
  • 16
0
votes
1 answer

How can we run ASP.net 5 apps on full .NET Framework(4.5 >)

I want to try and run the MusicStore app located at https://github.com/aspnet/musicstore on the full .net Framework. Is this possible? If yes, how?
user336058
  • 85
  • 2
  • 10
0
votes
1 answer

Cannot use FileSystemWatcher with coreclr on ubuntu

I'm trying to use FileSystemWatcher class in coreclr project on Ubuntu but I'm getting following exception: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem.Watcher, Version=4.0.0.0,…
krlm
  • 747
  • 7
  • 18
0
votes
1 answer

Could not load assembly error when running dnx web

I have created a asp.net web API project using the template from the Yeoman asp.net generator. I can successfully get to build it using the dnu build command, but when I run dnx web, it gives me this error: System.IO.FileLoadException: Could not…
AlexandruC
  • 3,354
  • 5
  • 43
  • 76
0
votes
1 answer

Can't find Microsoft.AspNet.Server.WebListener sources

I'm experimenting with the new vnext thingy, and I like that I can find source code of every module in github, since it is opensourced. For every module except one: Microsoft.AspNet.Server.WebListener. I looked through the contents of aspnet user…
kosmakoff
  • 228
  • 2
  • 12
0
votes
1 answer

System.Management.ManagementClass Replacement Core Clr

I have some code that resides in a asp.net application, which uses System.Management.ManagementClass to query various details about the hardware that is currently present. We look at cpu, base board and bios details and use these for various…
Louis Lewis
  • 1,298
  • 9
  • 24
0
votes
2 answers

how do i build coreclr applications with dnx

i have installed dnvm, coreclr, as instructed on my mac: http://docs.asp.net/en/latest/getting-started/installing-on-mac.html and if i call list peteisace$: dnvm list Active Version Runtime Arch OperatingSystem Alias ------ ------- …
peteisace
  • 2,652
  • 1
  • 16
  • 15
0
votes
1 answer

Reading assembly version information and custom attributes in CoreCLR

I wonder how to read assembly version information in the new CoreClR either with a name of the assembly where code is currently executing or explicitly giviging the name of the assembly or preferably a type in some assembly (can be statically…
Veksi
  • 2,868
  • 1
  • 20
  • 52
0
votes
1 answer

Asp.net 5 compilation process using dnvm

Can anyone please explain me how the compilation and execution of Asp.net5 application works in detail. I'm Completely new to .net environment Couple of questions when you build application using VS 2015 (press F5), steps involved that i know…
user336058
  • 85
  • 2
  • 10
-1
votes
1 answer

vscode debug c# application

I created a simple "hello world" .net application using the following command: dotnet new console -n testApplication When i launch the application using the command: dotnet run everything is fine; if i try to debug the application using the .NET…
-1
votes
1 answer

printf-like function for C#

I want to write function for C#, which will be similar to sprintf(3) and vsnprintf(3) functions in C (or similar to "format" command in Tcl). Currently I have some success with it, but still have a few questions. Below is the source code. Class…
fk0
  • 345
  • 1
  • 9
-1
votes
1 answer

How to use CancellationToken in XDocument.LoadAsync()

I am have the following code to load XDocument from Stream in .NET Core 2 CancellationTokenSource source = new CancellationTokenSource(); CancellationToken token = source.Token; XDocument xdocument = await XDocument.LoadAsync(xmlStream, new…
LP13
  • 20,711
  • 38
  • 136
  • 286
1 2 3
20
21