Questions tagged [.net-4.7]

.NET 4.7 was originally released by Microsoft in June of 2017. It is a followup to .NET-4.6 and was included in the Windows 10 Creators Update.

109 questions
103
votes
5 answers

Can't choose .NET 4.7

I am trying to start a new project using .NET 4.7. I have Creators Update installed as well as the latest version of Visual Studio 2017. When I start a project and device to choose a .NET version, the latest .NET framework version I have is 4.6.2.…
Michael Puckett II
  • 6,586
  • 5
  • 26
  • 46
21
votes
1 answer

.NET 4.7 returning Tuples and nullable values

Ok lets say I have this simple program in .NET 4.6: using System; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static async void Main() { var data = await Task.Run(() => { …
Kelly
  • 6,992
  • 12
  • 59
  • 76
17
votes
2 answers

WPF COMException Crashes Application At Startup (Started Today)

I have just today started seeing this Exception out in the wild on application launch with an app that has been in production for 3 years. System.TypeInitializationException: The type initializer for 'MS.Win32.Penimc.UnsafeNativeMethods' threw an…
NimbusHex
  • 315
  • 2
  • 9
16
votes
2 answers

How to use the ServiceBus EventData Offset Value

I have some code that uses the Service Bus Event Data, and I suspect that I need to use the offset property as, currently, my program is (or seems to be) re-running the same Event Hub data over and over again. My code is as follows: public class…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
15
votes
1 answer

Call async method on UI thread

I'm trying to create WPF client with IdentityServer authentication. I'm using their OidcClient to get logged in. It's whole async while my app is sync and can't be refactored without huge effort. Calling var result = await…
Jan Zahradník
  • 2,417
  • 2
  • 33
  • 44
15
votes
3 answers

DirectoryNotFoundException when using long paths in .NET 4.7

I have set Enable Win32 Long Paths in the Local Group Policy Editor to Enabled and restarted the computer. And here's the code: string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); for (int i = 0; i < 10; i++) path += "\\"…
ispiro
  • 26,556
  • 38
  • 136
  • 291
9
votes
1 answer

Unexpected performance results when comparing dictionary lookup vs multiple is operators in .NET 4.7

I have the problem where I need to do dynamic dispatch based on an object type. The types based on which I need to dispatch are known at compile time - in my example they are 17. My initial guess was to use a Dictionary> for the…
Ivan Zlatanov
  • 5,146
  • 3
  • 29
  • 45
9
votes
2 answers

Can't find .NET Framework 4.7 targeting pack in Visual Studio Installer on Windows Server 2016

We have a Windows Server 2016, with a build agent for TFS 2017 update 1, which is using Visual Studio Entreprise 2017. All windows updates are done I installed the .NET 4.7 Runtime and the .NET 4.7 Targeting Pack (I tried online and offline) the…
Guillaume R
  • 105
  • 1
  • 1
  • 7
9
votes
3 answers

System.MissingMethodException Unit Test

Having what appears to be runtime issues with Project References in Visual Studio 2017 Test Runner. The Unit Test CSPROJ builds just fine with TargetFramework=net47, but at execution time we get the following message from MSTEST or XUNIT. Using…
SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
8
votes
3 answers

Is it possible to Install .net 4.7 version on my machine when .net 4.8 is already installed?

I have the following .net versions on my machine. I started working on a .net project which's targetframework is 4.7. When I tried to install .net 4.7, I got this error ".NET Framework 4.7 or a later update is already installed on this computer." Is…
marvelTracker
  • 4,691
  • 3
  • 37
  • 49
8
votes
1 answer

e.IsInertial almost always false WPF

I have the following XAML for my WPF app, which I am converting from UWP:
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
7
votes
2 answers

KB4344167 security update breaks TLS Code

Hopefully someone can help with this problem. Recently our machines were updated with KB4344167 which includes security updates for .NET 4.7.1. Unfortunately this update has broken our code for a Webrequest. When we run the code below we get this…
DennisC
  • 133
  • 1
  • 4
7
votes
3 answers

AutoMapper in ASP.Net Core 2.0

Does someone know if there's any way to use AutoMapper with ASP.Net Core 2.0? There's no extension for IServiceCollection. And optional question, does anyone tryed to work with AutoMapper with .Net Framework 4.7 or .Net Standard 2.0?
user7100073
7
votes
3 answers

WPF touch application (partially) freezes on .NET Framework 4.7

Update Microsoft acknowledged the issue: Gepost door Microsoft op 13/10/2017 om 11:38 Thank you for reporting this. We are aware of this issue and are fixing it in a future version of .NET. There is also a related issue that is being released in a…
Bruno V
  • 1,721
  • 1
  • 14
  • 32
6
votes
1 answer

Using an ASP.Net Core 2 Web App to call Full a library using EF6

I'm trying a call a .Net 4.7 data access library (which uses Entity Framework 6) from a new Asp Net Core 2.0 Web Application. The issue is that EF6 can't seem to get hold of a DbProviderFactory. My working theory is that this is something that…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
1
2 3 4 5 6 7 8