Questions tagged [.net-4.7.2]

.NET Framework 4.7.2 was released on April 30th, 2018, and includes several improvements.

The .NET Blog announcement can be found here:

https://blogs.msdn.microsoft.com/dotnet/2018/04/30/announcing-the-net-framework-4-7-2/

Some of those improvements include:

  • [ASP.NET] Support for SameSite cookie in ASP.NET
  • [ASP.NET] Support for ASP.NET Dependency Injection
  • [ClickOnce] Per-monitor support for WPF and HDPI-aware VSTO apps deployed via ClickOnce
  • [SQL] Always Encrypted enhancements in SQL Connectivity
  • [Networking & BCL] Enhanced .NET Framework support for .NET Standard 2.0
  • [BCL] Cryptography improvements
  • [WPF] Diagnostic enhancements

The full content of the development notes can be found here:

https://github.com/Microsoft/dotnet/blob/master/releases/net472/README.md

311 questions
23
votes
4 answers

Different results between c++ and c# sin function with large values

I came across such strange behavior of the Math.Sin function in C#, when I use large numbers; for example: C#: .Net 4.7.2: Math.Sin(6.2831853071795856E+45) = 6.2831853071795856E+45 C++: sin(6.2831853071795856E+45) = -0.089650623841643268 Any ideas…
Anatoly B
  • 239
  • 1
  • 5
14
votes
2 answers

NuGet package shows no dependencies?

I try to make a NuGet package from a .NET 4.7.2 class library (VS2017), but the resulting NuGet package surprisingly shows no dependencies (which is an error). My setup is like this: My class library is .NET Framework 4.7.2 My class library uses…
14
votes
1 answer

NullReferenceException inside .NET code of SqlConnection.CacheConnectionStringProperties()

I'm facing really strange issue. Given the code below: static void Main() { var c = new System.Data.SqlClient.SqlConnection(); c.ConnectionString = "Data Source=SOME_NAME;Initial Catalog=SOME_DB;Integrated Security=True"; …
Pavel K
  • 3,541
  • 2
  • 29
  • 44
8
votes
1 answer

C# 8 features in .NET Framework 4.7.2

In a c# project targeting .NET Framework 4.7.2 I made a local function static because Visual Studio (16.3.3) suggested it. Everything compiled and worked fine. But when I pushed this on my CI build server with the Visual Studio Build Tools (16.3.3)…
MarkusParker
  • 1,264
  • 2
  • 17
  • 35
8
votes
3 answers

Path.GetTempPath() method returns UserTempPath with GUID in the end when using Revit 2020

Most of the applications consuming my add-in return "C:\Users\[username]\AppData\Local\Temp\" path. But one application is returning "C:\Users\[username]\AppData\Local\Temp\1affa5dd-2f26-4c96-9965-7a78f5c76321\". The GUID in the end changes every…
Umar
  • 478
  • 3
  • 10
8
votes
5 answers

SqlClient error after updating Windows - "The incoming tabular data stream (TDS) remote procedure call > (RPC) protocol stream is incorrect"

Since updating Windows 10 to 1803, I have begun receiving this error anytime I run an EF query that joins against a table-valued function that takes in a scalar parameter. Message: The incoming tabular data stream (TDS) remote procedure call …
Zach Green
  • 3,421
  • 4
  • 29
  • 32
7
votes
1 answer

Does Windows Azure App Service support .NET Framework 4.7.2?

I have a need for Windows Azure App Service platform to support .NET Framework 4.7.2. This is because the complications with System.Net.Http is cleared up in that version. However, I'm not sure if it's supported yet since I'm able to remove all…
6
votes
2 answers

Binding redirect when importing AngleSharp in .Net 4.7.2 somehow tries to pull in NetStandard 2 as a dll

I have a legacy app running on an old Windows 2008 R2 server. The app has gone through many .Net versions, and is currently on 4.7.2. It has been stable as a rock for years, and while there are migration plans to move away from the old physical…
Rune Jacobsen
  • 9,907
  • 11
  • 58
  • 75
6
votes
2 answers

Listing and removing all cache entries from a given group using IDistributedCache

I'm storing some key generated by users in a IDistributedCache set up. The key are long lived and they can be manually revoked by an user, if the user knows each one of them: public void ConfigureServices(IServiceCollection services) { …
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
5
votes
3 answers

upgrading from .net framework 4.7.2 to net 6 using upgrade-assistant upgrades to .net standard 2.0 instead

I am trying to upgrade projects inside a solution from .net framework 4.7.2 to net6.0 however after the first project (class library) has been upgraded it results in .net standard 2.0 not net 6.0. The Assistant version being used is (version…
UndeadEmo
  • 433
  • 1
  • 6
  • 15
5
votes
1 answer

Why does String.Equals with InvariantCultureIgnoreCase behave different in .net 4.7.2 and .net 5?

I have the following line of code: String.Equals("strasse", "straße", StringComparison.InvariantCultureIgnoreCase) In .net 4.7.2, this returns true. In .net 5 (and .net 6), this returns false. Why? I'm currently learning how comparing strings…
M-JM
  • 93
  • 6
5
votes
1 answer

Directory.EnumerateFiles search pattern does not work on file shares

According to the Microsoft Docs site for Directory.EnumerateFiles, the search pattern parameter will match any extension beginning with the specified pattern when it is exactly 3 characters. However, this is not working on file shares, only local…
Scott Hoffman
  • 370
  • 2
  • 10
5
votes
4 answers

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

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,…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
5
votes
2 answers

MSBuild fails when updating solution to .NET 4.7.2

I'm updating a solution to use .NET 4.7.2 and hit a problem. I can build and run the project on dev machine just fine, but TeamCity won't. In TeamCity build step I added /p:TargetFrameworkVersion:v4.7.2 to MSBuild step. One of the projects target…
chester89
  • 8,328
  • 17
  • 68
  • 113
5
votes
3 answers

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

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…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
1
2 3
20 21