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

Questions tagged [.net]

Do NOT use for questions about .NET Core - use [.net-core] instead. The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CLI.

0 votes
0 answers
26 views

Strategy for handling multiple EF Migrations

I need help formulating a strategy for handling situations where two or more team members create an EF migration independently and for different reasons. Every single time we've had this scenario so ...
Captain Kenpachi's user avatar
0 votes
0 answers
19 views

Why am I receiveing this collation error in .NET Framework 4.5?

Currently I am analyzing old solutions in my company and it we get following error message randomly: A .NET Framework error occurred during execution of user-defined routine or aggregate "...
Paglo's user avatar
  • 1
-1 votes
1 answer
33 views

How does the `CalculateButton_Click` method validate and update `HourlyEmployee` and `CommissionEmployee` properties, and handle input errors? [closed]

I need to understand how the CalculateButton_Click method in my WPF application handles input validation and updates for HourlyEmployee and CommissionEmployee objects. Specifically, how does it check ...
Shivank Panchhi's user avatar
0 votes
0 answers
37 views

How to completely hide the title bar in a .NET MAUI application on Windows while retaining resizability?

I am developing a .NET MAUI Blazor Hybrid App for Windows, and I want to hide the default title bar completely while keeping the window resizable. I've tried modifying the MauiProgram.cs file to ...
VQH DEV's user avatar
  • 63
0 votes
0 answers
18 views

Sort results of DataView are different in different versions of .Net Framework

The GoodsNo column of the DataView has two pieces of data, HB3-T017 and HB-T015, which are now sorted by GoodsNo, with different results in .Net2.0 and 8.0. The order under .Net2.0 is HB3-T017, HB-...
Tian戊辰's user avatar
0 votes
1 answer
38 views

Problem installing .NET SDK in Visual Studio Code

I'm trying to use C# in VS Code which requires me to install the .NET SDK. I'm following the steps provided by VS Code to install it, but it doesn't work, even after reinstalling it does not work. ...
Ahmad Adief's user avatar
0 votes
1 answer
24 views

How to embed Python to .Net?

I tried to embed Python to .Net using pythonnet based on the docs here and here. Here are my code Runtime.PythonDLL = @"D:\Dev\Console\.conda\python311.dll"; PythonEngine.Initialize(); ...
Syaiful Nizam Yahya's user avatar
0 votes
1 answer
40 views

Refactoring command pattern

I have implemented a command pattern for an SDK that I am building in C# but I want to prevent it from being misused. What I currently have (1) is this. Notice how the request's Execute method can be ...
mulllhausen's user avatar
  • 4,345
0 votes
0 answers
25 views

.NET MAUI XAML Binding TemplateSelector ViewModel Command

I'm new to .NET MAUI and XAML so I apologize in advance for any written/conceived "heresies". I have a "Detail" XAML ContentPage to which I have associated a specific viewModel as ...
Steru's user avatar
  • 1
0 votes
0 answers
7 views

How do I definitively close ODBC connections when Pooling=false appears broken

So, I haven't seen a thread that talks about this from this direction. I'm trying to write some code to track the average amount of time it takes to open an odbc connection to a database. I figured it'...
adrianstovall's user avatar
0 votes
1 answer
37 views

Why installation of dotnet-ef fails even if --ignore-failed-sources is specified

I'm building a .NET 6 project via Azure DevOps Pipelines. One of the step is to install the Entity Framework tools so a later step can generate a SQL migration script. However, the installation step ...
alik's user avatar
  • 2,324
0 votes
0 answers
12 views

Difference between using "dotnet pack" and "GeneratePackageOnBuild"?

I understand that using dotnet pack is intended for creating NuGet packages, and dotnet publish is intended for creating deployable DLLs/EXEs. However, using the GeneratePackageOnBuild property in the ...
JMekker's user avatar
  • 169
0 votes
0 answers
27 views

Issues with File Upload in ASP.NET Core using Blazor

I'm working on a project with separate backend and frontend folders. On the frontend side, I have the following service for uploading files: public async Task<IEnumerable<FileMetaDataDto>>...
Mr Dot's user avatar
  • 267
0 votes
0 answers
15 views

Umbraco: An item with the same key has already been added. Key: title error

I upgraded my website to Umbraco 14 and when I try to add new items I the following error message: An item with the same key has already been added. Key: title Then I run the following command on the ...
Menahem Gil's user avatar
1 vote
0 answers
9 views

How to integrate Clerk Authentication with ASP.NET Core 6.0 Web API (SQL Server as database)

Whenever a user is registered / updated in my frontend app (which uses REACT) by clerk authentication, I want to store this details in my database too. For example if a user is created with certain ...
Kousik Raj's user avatar

15 30 50 per page