Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [.net-6.0]

For questions about Microsoft's .NET application development framework that are specific to version 6.0+ of the framework. Use only If your question are version-specific

280 votes
16 answers
253k views

Non-nullable property must contain a non-null value when exiting constructor. Consider declaring the property as nullable

I have a simple class like this. public class Greeting { public string From { get; set; } public string To { get; set; } public string Message { get; set; } } Strangely I get the ...
VivekDev's user avatar
  • 24.2k
3 votes
1 answer
953 views

.NET: How to set "extended file attributes" in a cross-platform way?

I need to read and modify extended file attributes in a .NET 5 console application that must work on Windows and Linux (assuming that the files system supports those attributes). This question has ...
Heinrich Ulbricht's user avatar
1 vote
1 answer
2k views

Why do I get an EntryPointNotFoundException error when using .NET 6.0, but not when using 4.7.1?

I am creating a DLL using C++ and importing it using C#. I have no problem compiling the DLL, and it works fine when calling it from .NET 4.7.1. However, when I try to call it from .NET 6.0, I get an ...
user avatar
1 vote
1 answer
248 views

.NET Core: Edm.Date usage in parameters list generates wrong Swagger document

Assuming this controller [HttpGet("byDate")] public IActionResult Send([Required] [FromQuery] Date date) { return Ok(date); } I was hoping to get usual bindind for ...
Lonli-Lokli's user avatar
  • 3,669
105 votes
8 answers
41k views

Equivalent to UserSettings / ApplicationSettings in WPF for newer .NET versions

What is the prefered way for persisting user settings for WPF applications with .net-5 , .net-6.0, .net-7.0 or .net-core>=3.0? Where are the .NET user settings gone? Created WPF .Net Core 3.0 ...
MarkusEgle's user avatar
  • 2,985
81 votes
15 answers
129k views

Throwing ArgumentNullException

Suppose I have a method that takes an object of some kind as an argument. Now say that if this method is passed a null argument, it's a fatal error and an exception should be thrown. Is it worth it ...
Jason Baker's user avatar

15 30 50 per page
1
391 392 393 394
395