Use this tag for questions specifically related to version 7.0 of the .NET platform. For questions on .NET Framework generally, use the .net tag.
Questions tagged [.net-7.0]
1169 questions
-1
votes
1 answer
No idea how to convert a signing proivder to .NET 7
I am converting to .NET 7 and have a signing provider that I didnt write
using System;
using System.Threading.Tasks;
using Microsoft.Azure.KeyVault;
using Microsoft.Azure.KeyVault.Models;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
…

Paul
- 2,773
- 7
- 41
- 96
-1
votes
1 answer
Resolve service in Program.cs .net 7 Asp.net Core
In .net 6 Asp.net Core Startup.cs I have this:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, DbSeeder dataSeeder)
{
dataSeeder.Seed();
here the DbSeeder is resolved because I've added it as a parameter to the Configure…

buga
- 852
- 9
- 21
-2
votes
1 answer
ASP.NET Core 7 Web API - SlowCheetah
Solution
That one line in .csproj file solved the problem.

GrinGenius
- 13
- 2
-2
votes
1 answer
How to resolve inheritance in WPF windows?
I cant quite think of a good way to achieve the following:
I have a base window class SlimWindow which inherits from some 3rd party window (Devexpress)
I have a base dialog window SlimDialogWindow which inherits from SlimWindow
I have a base window…

Boppity Bop
- 9,613
- 13
- 72
- 151
-2
votes
0 answers
How to verify digital signature in C# using .NET7
Sample code java below is working success .
Sample code to verify a CAdES Signature using DSS-CAdES is give below
I want same code but for C# language.
public boolean validateCADESignature(String inputSignature, String inputData) throws…

Abood Dagash
- 1
- 3
-2
votes
1 answer
angular return not found for the product photoes
i have this problem for several weeks now, the product photos return not found and other property return fine,
i have test the api with postman and work fine , there is something wrong iam missing,
'iam using abgular 15 and .NET7,
the products and…
-2
votes
2 answers
How to use XAML-less window subclass in a normal window with XAML?
I have a class EmptyWindow which inherits from WPF Window. It has no XAML and is only used to set WindowStyle = None to remove Windows OS header.
I have bunch of windows that inherits from EmptyWindow. I want to emulate header without copy/pasting…

Boppity Bop
- 9,613
- 13
- 72
- 151
-2
votes
2 answers
How to write a generic dialog window in WPF?
I have a base class which is custom control without default template SlimWindow. It has little function - it removes Window header and some other stuff.
I have multiple windows inheriting from it which has similar behaviour - eg dialog windows. they…

Boppity Bop
- 9,613
- 13
- 72
- 151
-2
votes
1 answer
C# references and setting them to null
I have this code.
public class Application
{
HybridObject obj;
public Application()
{
obj = new HybridObject().Core;
obj.Delete();
while (true)
{
…

LJH
- 82
- 6
-2
votes
1 answer
How To Bind Dynamic Model?
Can you please guide me, how to bind dynamic model when received from Swagger with this JSON data:
{
"RequestItems":[
{
"eventDate":"2023-02-27",
"eventName":"string Update",
"eventType":1601,
"address":{
…

Amresh
- 7
- 5
-2
votes
3 answers
"Object reference not set to an instance of an object" when exposing an expression-bodied method .NET 7
I have wrote the code snippet on dotnetfiddle.net with compiler settings set to .NET 7
using System;
public class Person
{
private string fname;
private string lname;
private int ide = 30;
public Person(string…

jfar41
- 59
- 8
-2
votes
1 answer
How to add WPF UserControl onto a Form next to already existing form controls in a form designer?
I am interested in reusing old forms with form controls on it, not just any solution to add WPF control to a form. Why? Because this solution spares me from redesigning hundred forms that also have a WPF control on…

Hrvoje Batrnek
- 535
- 1
- 5
- 15
-3
votes
1 answer
How to customize System.Text.Json serialization of certain fields?
I need to (de)serialize objects which reference 3rd party API objects which arent serializable. However I dont need their content to be serialized. I just want to serialize Id of these objects and then retrieve them on deserailization.
Short…

Boppity Bop
- 9,613
- 13
- 72
- 151
-3
votes
1 answer
Disable Windows taskbar menu for a WPF window
I need to disable Windows taskbar system menu (when you hover over a window on taskbar):
I want it either to be not visible or all the items grayed out or click on any item (most important - minimize and restore) to be neutralized
IMPORTANT - the…

Boppity Bop
- 9,613
- 13
- 72
- 151
-3
votes
1 answer
How to display WPF elements in one or more horizontal lines dependent on number of controls?
My use case - I have horizontal layout for buttons (currently is StackPanel) with fixed height (lets say 40px). The buttons are laying in one row with each button height of 40. Buttons can be of different widths (dependent on the content - text).…

Boppity Bop
- 9,613
- 13
- 72
- 151