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
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,089
  • 11
  • 21
12
votes
3 answers

Is it possible to run CoreCLR on Windows XP?

Now we have a free open-source implementation of the .NET core: CoreCLR. It supports Windows and Linux operation system, Mac OS support is planned. Is it possible to run CoreCLR on Windows XP?
AndreyAkinshin
  • 17,047
  • 25
  • 91
  • 148
11
votes
1 answer

How can Decimal.Round() throw OverflowException

I'm using Decimal.Round(decimal d) MSDN says it can throw OverflowException https://msdn.microsoft.com/en-us/library/k4e2bye2(v=vs.110).aspx I'm not sure how that can happen. I tried looking over the implementation using ilSpy And got until the…
Amir Katz
  • 937
  • 1
  • 9
  • 22
10
votes
1 answer

C# .NET Core How to debug System.IO.FileNotFoundException in System.Private.CoreLib.dll?

When I run .NET Core Web API Application on VS 2017, In Output's Debug panel, keep showing me Exception throw: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll However, application runs well without stoping or malfunctioning. I know…
ibocon
  • 955
  • 3
  • 11
  • 31
10
votes
1 answer

How to check if a type is abstract in .NET Core?

This code works fine in .NET (4.6 and prior) var types = typeof(SomeType).GetTypeInfo().Assembly.GetTypes() from type in types where !type.IsAbstract but in .NET Core (DNX Core 5.0) it is producing a compile error: Error CS1061 'Type' does not…
Nikolay Kostov
  • 14,580
  • 20
  • 75
  • 115
9
votes
1 answer

How exclude certain appsettings files from publishing

I have asp.net core 2 application. Based on documentation i have created .pubxml file for my development environment. I am using web deployment (remote agent) to deploy the web package to target web server. On our build server where, jenkins is…
LP13
  • 20,711
  • 38
  • 136
  • 286
9
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
  • 5,800
  • 6
  • 38
  • 73
8
votes
2 answers

What is the use of IClaimsTransformer?

In ASP.Net core lets you use an implementation of IClaimsTransformer. You register it like this: app.UseClaimsTransformation(o => o.Transformer = new MyClaimsTransformer()); Implementation public class MyClaimsTransformer : IClaimsTransformer { …
LP13
  • 20,711
  • 38
  • 136
  • 286
8
votes
1 answer

Performance comparison of dnxcore50 vs dnx451? (CoreClr vs .net Framework)

I have tried to find some data on performance of these two targets compared, but did not succeed. I am interested in a asp.net5 web application that runs on Windows (Or azure web app e.g.). Is there any significant difference in performance or from…
Ilya Chernomordik
  • 20,693
  • 15
  • 84
  • 144
8
votes
1 answer

Running F# in CoreCLR

I compiled CoreCLR and CoreFX as described here. Basically that works and I can compile and run C# code targeting CoreCLR. The next step was to try compiling and running F# code. So I added FSharp.Core 3.1.2.1 to the project and compiled a sample…
Johannes Egger
  • 3,604
  • 21
  • 32
7
votes
1 answer

Why is my break point not triggered using !bpmd in Windbg with SOS and .Net Core 3.1?

I recently learned about the process for debugging managed code in Windbg with sos. I've looked through numerous examples and from what I've seen, this should work. But it doesn't. This is a .net core 3.1 app. I'm simply trying to break inside of…
Baruch
  • 77
  • 6
7
votes
1 answer

IConfigureOptions is not creating scoped options

Typically Options are singleton. However i am building options from the database, and one of the Options property is password which keep changing every month. So i wanted to create Scoped instance of Options. I am using IConfigureOptions like…
LP13
  • 20,711
  • 38
  • 136
  • 286
7
votes
1 answer

Content Security Policy does not work in Internet Explorer 11

In my asp.net core application for each response i'm adding content security policy header. I understand that for IE, the header name is X-Content-Security-Policy and for other browsers like chrome its Content-Security-Policy The header value looks…
7
votes
2 answers

Embed dotnet core (.NET Core) into native applications on Windows/Linux

Are there possibilities to embed dotnet core (.NET Core) environments into native processes? My use-case would be an existing game-server where I want to offer the possibility to extend the game using C# on .NET Core on both Windows and Linux. Bonus…
The Wavelength
  • 2,586
  • 2
  • 18
  • 38
7
votes
0 answers

How to communicate with hosted CoreCLR?

.NET Framework presents several methods of hosting managed runtime. One can use mscoree.dll's CorBindToRuntime (https://msdn.microsoft.com/library/ms231419(v=vs.110).aspx) to get handle of AppDomain via GetDefaultDomain/CreateDomain, and then load…
1 2
3
20 21