Questions tagged [.net-standard-2.0]

766 questions
0
votes
0 answers

Need to create an image using HTML using c# for netstandard2.0?

I need to use simple HTML templates to generate images in a C# console app, but it must support .netstandard 2.0
0
votes
2 answers

.net standard library with HttpCient for xamarin forms

I was trying to create a common library for using HttpClient to consume an API. I was planning to make it in .net standard so as to share it with my xamarin.forms project right now and any future ones. However the highest version of .net standard I…
0
votes
2 answers

detect IsEncryptedString?

How can we find the given string is encrypted or plain string? to be honest thats all the question. For instance when I'm using dataprotection using DPAPI encryption, when the given string is already a encrypted string or may be before decrypt call,…
Jay
  • 1,869
  • 3
  • 25
  • 44
0
votes
0 answers

Vast Increase in build time after Upgrading from VS2015 to VS2017

Short Version: Build times for a .NET solution have gone from an average of 12 minutes to 34 minutes. Long Version: I had a Visual Studio 2015 solution with three projects in it: MVC web application targeting .NET 4.5 c# class library for models…
0
votes
0 answers

How to start a .NET Framework (4.6.2) Debuggee from a .NET Core 2.0 Project in Visual Studio IDE (Enterprise)?

I have a self-written .NET Framework 4.6.2 application (call it Player) dynamically loading self-written .NET Core 2.0 DLLs (call them Game-DLLs). Now I would like to enable creators of .NET Core 2.0 Game DLLs to debug into their code. To do this,…
0
votes
0 answers

System.Net.Http missed from project after installation of .net standard 2 nuget package

I created .net framework 4.6.1. project, it has GAC refernce System.Net.Http which uses C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.1\System.Net.Http.dll. Then I installed .net standard 2 nuget package and after…
mtkachenko
  • 5,389
  • 9
  • 38
  • 68
0
votes
0 answers

Visualstudio 2017 show "property pages" instead of Properties

When I use "Properties" from the context menu (or hit alt+enter) in a dotnetstandard project VS2017 shows the "Property Pages dialog" instead of the properties window. In other project this works as expected. Is there a way (setting) to change this…
ManniAT
  • 1,989
  • 2
  • 19
  • 25
0
votes
0 answers

How to use use NLog in .Net core console application?

The built-in logging cannot log to file/database. I found the following link however it's for Asp>net core. https://github.com/NLog/NLog.Web/wiki/Getting-started-with-ASP.NET-Core-(csproj---vs2017) How to use NLog in the .Net core console…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
0
votes
0 answers

InvalidCastException on DateTime using Entity Framework/Xamarin Android (reads date as string)

trying out Xamarin for the first time and can't really figure this one out. I am working on a solution that contains 3 projects. One .NET standard 2 class library with Entity Framework, that I use as a service layer, which the other projects…
0
votes
0 answers

.NET Core 2.0 DLL loaded on server with just .NET 4.6 installed

Imagine Jane is on Ubuntu and uses VSCode with .NET Core 2.0 SDK to create and push a NuGet package targeting netstandard2.0 to a repo. Imagine I have a .NET 4.6.1 full framework project - its a Windows Service executable. Since .NET Standard 2.0 is…
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266
0
votes
1 answer

Is there any way to derive parameters of a stored procedure in .net core?

SqlCommandBuilder.DeriveParameters is not available in .net core (even in .NETCoreApp 2.0), so is there any way to retrieve the parameter list of a stored procedure in .net core?
Nhat Hong Ly
  • 618
  • 4
  • 15
-1
votes
1 answer

Add a reference to assembly netstandard error with .NET Framework 4.6.1 project

A .NET Framework 4.6.1 project which has a reference to a nuget package built with .netstandard2.0 is no more building. The following is the error. It is around the time when the IT Department uninstalled .net core 2.0 SDK from the build machine. I…
-1
votes
1 answer

BC30002 Error Unable to reference .net standard 2.0 components from .net framework 4.8

I have a .net standard 2.0 C# project which simply has the following content in one of the C# files: namespace person.contact { public class contactDetail { public long contactNumber { get; set; } public decimal contactAmount…
Aiden
  • 179
  • 2
  • 13
-1
votes
1 answer

How to use System.Windows.Forms.SendKeys in .NET Standard 2.0

I am developing a class library in .NET Standard 2.0 that should control some other application using Keystrokes. I need to write the library in .NET Standard 2.0 since I have two client applications that will be using the library, one in .NET…
fwinterl
  • 85
  • 1
  • 7
-1
votes
1 answer

typecast on only one operand vs typecast on both operands

Function CarbonEquivalentFactor below contained a bug where the result was rounded to the nearest integer, instead of a decimal value of double type. public double CarbonEquivalentFactor(int fromNoCarbonAtoms, int toNoCarbonAtoms) { return…
Johan Ahlqvist
  • 336
  • 2
  • 14