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
1
vote
0 answers

DB2 via OLEDB in VB

I've researched google and stackoverflow, but we are drawing blanks....we have a team using the same code to use IBMDADB2 driver with an olebconnection to connect to the companies DB2 database. Half the team can connect fine, other half gets an…
1
vote
1 answer

XML Reading returning an empty object. (XML Localization File)

C# (CSharp/.cs) 7.0 .NET Framework 4.7.2 I'm making a Localization system for a mod (based on the game's language), so I used an XML file to store translations, which look like this :
V E L Δ
  • 17
  • 4
1
vote
1 answer

.Net 4.7.2 app does not honor SCHANNEL protocol settings

I disabled TLS 1.0 and 1.1 like so: [HKEY_LOCAL_MACHINE\SYSTEM...\SCHANNEL\Protocols\TLS 1.0\Client] "DisabledByDefault"=dword:00000001 "Enabled"=dword:00000000 [HKEY_LOCAL_MACHINE\SYSTEM...\SCHANNEL\Protocols\TLS…
cdonner
  • 37,019
  • 22
  • 105
  • 153
1
vote
0 answers

Include assemblyBinding app.config additions in NuGet package

I'm trying to create a NuGet package from a WPF .Net Framework app and having trouble including the app.config file. I have this in my csproj file:
Trygve
  • 591
  • 1
  • 7
  • 22
1
vote
1 answer

How to troubleshoot window painting issues after migrating WinForms app from .net 3.5 to 4.7.2

We've just migrated our VS2019 dev environments for a large (~700 kloc) legacy Windows Forms application, from .NET 3.5 to .NET 4.7.2, and tripped over a problem with one windows form only, on which two very odd issues have emerged: A…
ChrisA
  • 4,163
  • 5
  • 28
  • 44
1
vote
1 answer

Can't work on my project after updating to Visual Studio 2022

I recently updated from Visual Studio 2019 to Visual Studio 2022. Thing is, I can't load previously created projects. IDE pops up a message asking for me to either install .NET Framework 4.7.2 compatibility pack or update the project to .NET…
Aleen
  • 15
  • 8
1
vote
0 answers

Unknown Build Error After Switching to .NET framework 4.7.2

Since switching a C# project from .NET framework 4.6.1 to 4.7.2 I get the following build error: Unknown build error, 'Could not load type 'System.Runtime.CompilerServices.DependencyAttribute' from assembly 'System.Runtime, Version=4.1.2.0,…
1
vote
1 answer

C# wpf adding children to Layout asynchronously

I have a WPF application where I am running a powershell script that returns a sequence of strings. I want to be able to update my UI asynchronously, but the UI will only update once the method is complete. How do I update the UI asynchronously? I…
iamcootis
  • 2,203
  • 3
  • 18
  • 22
1
vote
0 answers

Announcing a new window has opened in WPF with Screenreader

Upon opening a window, another window opens up unfocused with some relevant information about data protection. Now I want the windows 10 screen reader to announce that new window. I tried getting the screen reader to work using this post, all worked…
Chrᴉz remembers Monica
  • 1,829
  • 1
  • 10
  • 24
1
vote
0 answers

dotnet build doesn't work with 1 WPF project but all others do

I'm having an issue with dotnet-cli. and WPF, when I right-click the solution and choose build it works every time. No issues, but when I open Developer Powershell and type dotnet build it doesn't compile. It gives me error: the name…
3xGuy
  • 2,235
  • 2
  • 29
  • 51
1
vote
0 answers

How do I trigger the WinForms DpiChanged event?

(No, I can't upgrade this codebase to .NET Core or newer yet.) I have an app that's primarily Windows Forms, and partially WPF. When font size changes at runtime, WPF reacts correctly. Windows Forms, instead, doesn't even seem to realize anything…
Sören Kuklau
  • 19,454
  • 7
  • 52
  • 86
1
vote
0 answers

nuget restore is not creating xml files in AWS CodeBuild windows default image

In AWS CodeBuild windows image aws/codebuild/windows-base:2019-1.0 when I used nuget restore in powershell for ASP.NET MVC project(target framework version 4.7.2) that only create .dll and .pdb but not create .xml file. And I have also try nuget.exe…
Deep
  • 525
  • 3
  • 8
1
vote
0 answers

Assembly's manifest definition does not match the reference, despire all refs being updated to match

JsonSubTypes is giving me a huge headache. I had to update that and Newtonsoft.Json in a large solution with many projects. One of those projects has a related unit-test project. Both projects rely on JSON objects and both projects have references…
Val
  • 1,548
  • 1
  • 20
  • 36
1
vote
1 answer

Xml inline valdiation in .Net5.0 does not find xsd

I want to validate some XML file agianst an XSD file. I was forced to change the framework from .Net4.7.2 to .Net5.0. This is the code to write and validate the XML file: namespace XmlValidation { class Programm { static void Main() …
HarryKane
  • 129
  • 3
  • 13
1
vote
1 answer

.NET multi target frameworks copies System.* DLLs to .NET Framework output directory

I've got a .NET project that targets multiple frameworks, i.e., netstandard2.1;net472 The project contains NuGet packages that bring in System.* dependencies like System.Memory and System.Buffers. When I build…
Kakalokia
  • 3,191
  • 3
  • 24
  • 42