coreclr

Get current MethodBase in ASP.NET vNext

谁说胖子不能爱 提交于 2020-01-11 09:55:55
问题 I'm porting an open source library from the regular .NET 4 Client Profile to DNX Core 5.0. There are quite a few library changes, with properties or methods being moved around or altogether removed. I have looked at this answer but it doesn't work in my case because the method was removed. One of the issue I have a piece of code where MethodBase.GetCurrentMethod() is called. This method no longer exists in the API. The only methods left that are similar are: public static MethodBase

How do you set gcAllowVeryLargeObjects in coreCLR?

不打扰是莪最后的温柔 提交于 2020-01-03 20:29:34
问题 Now that there isn't a app.config , how do you set gcAllowVeryLargeObjects to true so that you can allocate big arrays? 回答1: You can use the corresponding environment variable; just remember to use the COMPlus_ prefix (e.g. COMPlus_gcAllowVeryLargeObjects=1 ). You can either set this up from the command line before running dotnet run, or add it on the environment variables section of the project's properties within Visual Studio (or probably add a registry entry). 来源: https://stackoverflow

.NET Core SDK Installer failed to install on windows 2012 R2 Standard

北城余情 提交于 2020-01-03 10:22:30
问题 I setting up my build server for CI using Jenkins. I am trying to install .NET Core SDK from https://www.microsoft.com/net/download However i tried executing downloaded DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe i get unspecified error and here is complete log [07E8:0FE4][2016-09-19T12:09:36]i001: Burn v3.10.2.2516, Windows v6.3 (Build 9600: Service Pack 0), path: C:\Users\CODESC~1\AppData\Local\Temp\3\{0D7DA4AD-993A-4038-A544-14369A3FAF40}\.cr\DotNetCore.1.0.1-SDK.1.0.0.Preview2

Where can I get SOS for Windows 10 IoT?

南楼画角 提交于 2019-12-30 09:00:26
问题 I have a dump of a .NET Universal App running on Raspberry Pi 2, Windows 10 IoT: 0:000> vertarget Windows 10 Version 10240 MP (4 procs) Free ARM (NT) Thumb-2 Product: WinNt, suite: SingleUserTS Built by: 10.0.10240.16384 (th1.150709-1700) I see it uses coreclr like Silverlight did before. 0:000> lm vm coreclr start end module name 6e430000 6e7fd000 coreclr (export symbols) coreclr.dll Loaded symbol image file: coreclr.dll ... Timestamp: Thu Jul 16 21:37:39 2015 (55A88693) ... File version: 4

Get available types in CoreCLR

∥☆過路亽.° 提交于 2019-12-30 02:01:07
问题 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 implementation of IRepository and return new instance of that type. Implementation will be located in the different project. So, in .NET I can use something like this: AppDomain.CurrentDomain.GetAssemblies().SelectMany(a => a.GetTypes()) The only solution I

How to prove there is IO pending behind the thread pool worker thread?

北慕城南 提交于 2019-12-25 08:59:20
问题 One of application have hundreds of thread pool threads pending with the call stack below after a network down; BTW, before the network down, there is only dozens of threads, however after the network down, the number of threads increased to around 400 hundreds in very short time, and keeping that number unchanged for a very long time until we reboot the server. 00000020`a864fc58 00007fff`d4ea1118 ntdll!NtWaitForSingleObject+0xa 00000020`a864fc60 00007fff`ce50ce66 KERNELBASE

Hanfire not logging custom exception with metadata

元气小坏坏 提交于 2019-12-23 02:42:20
问题 I have asp.net core 2.1 application along with HangFire 1.6.17 . HangFire is configured to execute a background job at certain interval. The background job calls external API using HttpClient. If the http call fails, then the method throws custom exception with metadata. Idea is hangfire will log the exception with metadata. I followed best-practices-for-exceptions to create exception public class MyHttpRequestException : Exception { public string Content { get; private set; } public string

CoreCLR and project Mono relationship after Microsoft open-sourced the .NET

最后都变了- 提交于 2019-12-21 07:48:08
问题 Could someone explain to me what is the current relationship between Mono and the open source/Linux portable .NET stack (CoreCLR, CoreFX, Roslyn, ASP.NET) recently made available by Microsoft? It's rather clear these projects overlap so I'm curious what's the roadmap for both of them - will Mono somehow replace their own component with the new ones from Microsoft, or are they going to coexist somehow? 回答1: From a Mono contributor on reddit: I think people have the wrong mindset about this

How to change default dnx version is Visual Studio Code?

耗尽温柔 提交于 2019-12-18 19:11:28
问题 I am not sure if it is possible but I want to change dnx version when dnx . run from Visual Studio Code. Even if my current dnx version is 1.0.0-beta5-11682 coreclr Visual Studio Code runs with 1.0.0-beta4 mono Is it possible to change default dnx version of Visual Studio Code? 回答1: dnvm use VERSION -p where -p is persistent, you can use without it to set version just for the current session. example dnvm use 1.0.0-beta4 or dnvm use 1.0.0-beta4 -p 回答2: dnvm use <runtime_version> -r <runtime>

How to change default dnx version is Visual Studio Code?

ぃ、小莉子 提交于 2019-12-18 19:11:23
问题 I am not sure if it is possible but I want to change dnx version when dnx . run from Visual Studio Code. Even if my current dnx version is 1.0.0-beta5-11682 coreclr Visual Studio Code runs with 1.0.0-beta4 mono Is it possible to change default dnx version of Visual Studio Code? 回答1: dnvm use VERSION -p where -p is persistent, you can use without it to set version just for the current session. example dnvm use 1.0.0-beta4 or dnvm use 1.0.0-beta4 -p 回答2: dnvm use <runtime_version> -r <runtime>