coreclr Questions
1
I have Amount stored in the database as decimal. I want to show that value on UI with thousand separator. I can add [DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)] attrib...
Ephesian asked 12/4, 2017 at 20:5
1
Solved
I am creating an application framework that can be shared between .Net Core 1.2, .Net Core 2.0 and .NET Framework 4.6+. So I choose the target framework of my project as .NET Standard. In my framew...
Pen asked 21/3, 2018 at 16:17
1
Solved
In ASP.NET Core 2 i have the following class that takes IOptions<T>
public class MyOptions
{
public string Option1 { get; set; }
public string Option2 { get; set; }
}
public class MyServ...
Manumission asked 13/3, 2018 at 18:1
2
Solved
I have NET Core 2 Web API application. During the process i have to invoke Client A's API to get some data. So i am using HttpClient to invoke it. Client A also requires me to pass userid and passw...
Drawshave asked 5/3, 2018 at 22:45
1
Solved
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 ...
Sacerdotalism asked 21/2, 2018 at 20:4
1
Solved
I understand that CLR in its current state is bound to windows OS and provides various services by using Win32 APIs internally.
Since .NET Core is platform independent, this basically implies the...
1
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 o...
Enucleate asked 20/2, 2017 at 15:41
2
Solved
Consider the following code:
private static void Main(string[] args)
{
var ar = new double[]
{
100
};
FillTo(ref ar, 5);
Console.WriteLine(string.Join(",", ar.Select(a => a.ToString()).T...
1
Solved
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 produc...
Putrescine asked 16/2, 2016 at 17:55
1
I have a SQL Table with TimeStamp Column. The corresponding EF entity is below
public partial class Request : IEntityBase
{
public Request()
{
}
public int RequestID { get; set; }
public N...
Treasonable asked 22/8, 2017 at 19:49
2
Solved
I am using some unsafe code in my .NET Core app.
For that, I had made this change in the project.json file:
"compilationOptions": {
"allowUnsafe": true,
}
However, I still get...
3
Solved
I test .net core on different OSs and I'd like to know if it's possible to install dotnet/cli (.net Core) on Windows 10 iot over my Raspberry PI3. My objective would be ro run simple GPIO tests.
W...
Scrambler asked 13/10, 2016 at 6:38
2
Solved
According to the latest comments in this thread, .tt templates will now after all be supported in ASP.NET 5 starting with Visual Studio Update 1.
Which IMHO would be great because after using T4M...
Endurant asked 21/12, 2015 at 16:13
1
I have an application targeting .NET Framework, and now I need to develop a library in .NET Core.
I plan to put both projects in the same solution and add the .NET Core library as a reference in th...
Dostie asked 10/10, 2016 at 13:29
1
Solved
I have ASP.NET Core API. I have already gone through documentation here that shows how to do integration testing in asp.net core. The example sets up a test server and then invoke controller method...
Partain asked 17/4, 2017 at 17:23
1
Solved
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...
Terchie asked 21/3, 2017 at 20:6
2
Solved
I'm trying to dynamically invoke a member on a specific type using CoreCLR, but the method Type.InvokeMember is not available when compiling against DNXCORE50. However, if I compile against DNX451 ...
Cordon asked 18/11, 2015 at 15:20
2
I have asp.net core application. The implementation of configure method redirects the user to "Error" page when there is an exception ( in non Development environment)
However it only works if th...
Alvord asked 15/11, 2016 at 15:51
2
In ASP.Net core lets you use an implementation of IClaimsTransformer.
You register it like this:
app.UseClaimsTransformation(o => o.Transformer = new MyClaimsTransformer());
Implementation ...
Islek asked 3/11, 2016 at 19:57
2
When i was working with classic ASP.NET or even with old web forms the HttpContext.Current.Session was User specific. So when user makes the request he receives the session cookie and then onward t...
Duala asked 27/10, 2016 at 20:11
0
.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 AppDomai...
4
Solved
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.P...
Shwa asked 19/9, 2016 at 17:18
1
Solved
I have WCF service that I need to access from ASP.NET Core. I have installed WCF Connected Preview and created proxy successfully.
It created interface & client something like below
[System....
Danutadanya asked 27/9, 2016 at 18:55
1
Solved
I have this code in .Net 4.6.2 and now trying to convert into .Net core however I am getting error
Error CS1061 'Type' does not contain a definition for 'IsGenericType'
and no extension method ...
Stephanotis asked 26/8, 2016 at 14:57
2
Solved
I am migrating my web app from ASP.NET Core RC1 to RC2. I'm trying to load my referenced class libraries.
This code snippet doesn't work with RC2 any more:
public class Startup
{
public void Co...
© 2022 - 2024 — McMap. All rights reserved.