.net-4.7.2

Why casting big double value in sbyte returns 0 in C#?

久未见 提交于 2020-07-22 07:58:27
问题 I actually test the casting behavior in C# in unchecked context. Like the documentation said, in unchecked context, the cast always succeed. But sometimes, in particular cases, the cast from one specific type to another type give unexpected result. For example, i tested three "double to sbyte" casts : var firstCast = (sbyte) -129.83297462979882752; // Result : 127. var secondCast = (sbyte) -65324678217.74282742874973267; // Result : 0. var thirdCast = (sbyte) -65324678216.74282742874973267; /

Could not load file or assembly 'Microsoft.Data.SqlClient

╄→гoц情女王★ 提交于 2020-05-07 08:18:59
问题 I am calling a .net standard 2.0 library from a framework 4.7.2 test project sucessfully. If I take my .net standard 2.0 dll (SBD.Standard) and create a new winforms project that references it then I get asked to add Microsoft.EntityFrameworkCore, then Microsoft.EntityFrameworkCore.SqlServer, then Microsoft.Data.SqlClient and then my project runs successfully. (Although it would be ideal if the extra packages were added automatically) However trouble occurs if I try to distribute my library

Could not load file or assembly 'Microsoft.Data.SqlClient

孤街醉人 提交于 2020-05-07 08:17:53
问题 I am calling a .net standard 2.0 library from a framework 4.7.2 test project sucessfully. If I take my .net standard 2.0 dll (SBD.Standard) and create a new winforms project that references it then I get asked to add Microsoft.EntityFrameworkCore, then Microsoft.EntityFrameworkCore.SqlServer, then Microsoft.Data.SqlClient and then my project runs successfully. (Although it would be ideal if the extra packages were added automatically) However trouble occurs if I try to distribute my library

Could not load file or assembly 'Microsoft.Data.SqlClient

Deadly 提交于 2020-05-07 08:17:23
问题 I am calling a .net standard 2.0 library from a framework 4.7.2 test project sucessfully. If I take my .net standard 2.0 dll (SBD.Standard) and create a new winforms project that references it then I get asked to add Microsoft.EntityFrameworkCore, then Microsoft.EntityFrameworkCore.SqlServer, then Microsoft.Data.SqlClient and then my project runs successfully. (Although it would be ideal if the extra packages were added automatically) However trouble occurs if I try to distribute my library

Unable to step into PresentationFramework

无人久伴 提交于 2019-12-24 19:06:27
问题 I am trying to step into PresentationFramework, but the debugger just skips ahead to the next line. I have loaded the symbols using the Modules window. I have enabled .NET Framework source stepping I have disabled Just My Code I have used resharper to generate pdb and decompile the source, but stepping through those is really difficult. Partly because many variables have generic names (num1, num2 etc), but mostly because the debugger seemingly just around somewhat randomly - sometimes

How do I get accounts from Azure AD?

99封情书 提交于 2019-12-24 07:39:11
问题 I have a nice Azure Active Directory set up with a dozen users. (All me!) So I have a Tenant ID, client ID and Client Secret. I am also working on a simple console application that will function as a public client for this directory. This client also holds a list of usernames and passwords as this is just meant as a simple experiment. Not secure, I know. But I first need to understand how it works ... I do this: IConfidentialClientApplication client = ConfidentialClientApplicationBuilder

Why is .Net Framework 4.7.2 “not supported on this operating system”? (Windows 10)

不羁的心 提交于 2019-12-10 19:51:03
问题 I was trying to install the .NET 472 developer pack on a Windows 10 machine, and got this error. I have been able to install this on other Win10 PCs, and also on Win7. So it doesn't make any obvious sense why it claims to be "not supported". In the log there are some version checks: Bundle condition evaluated to false: ((VersionNT = v6.1 AND ServicePackLevel >= 1) OR (VersionNT = v6.2 AND NOT (OSInstallationType = "Client")) OR (VersionNT = v6.3) OR (VersionNT = v10.0 AND OSBuildNumber >=