Skip to main content
Best practices
0 votes
0 replies
22 views

How to implement self-update and restart for Unpackaged WinUI 3 app

I have Windows App SDK Unpackaged desktop app and busy with (re)implementing self-update. Doing the investigation of avaliable ways to implement. I'm aware of Restart API but have no idea how to ...
aepot's user avatar
  • 4,864
0 votes
0 answers
42 views

ASP.NET Core 8 Code Generator error: "Minimal hosting scenario! InvalidOperationException"

I'm working on an ASP.NET Core 8 MVC project with a layered architecture: Main project: FarazFactoryManagement (contains Program.cs) Data layer: DataLayer (contains my AppDbContext and model classes) ...
ali parsa's user avatar
1 vote
1 answer
90 views

Add data for many to many by reusing the same data from table

Goal: apply data in the tables [Movies], [GenreMovie] and [Genres] in an efficent approach (high performance). Problem: when you need to reuse the data that is already existing in the database by ...
HelloWorld1's user avatar
  • 14.2k
0 votes
1 answer
70 views

.NET 8 Blazor - Equally dynamically sized buttons in a table without JS

I'm using .NET 8 & Blazor, and ONLY css/html/C# - no JS. Goal: match all buttons to the largest button in any of the cells dynamically. As any button could change size (Usually becoming larger ...
DrakeWalker's user avatar
2 votes
2 answers
58 views

"MonoGame.Templates.CSharp could not be installed, the package does not exist". How to fix in VS Code?

I'm trying to create a project with monogame and have been following their documentation on how to get started. I've downloaded .NET version 8.0.415 and VS Code, but when I try to execute dotnet new ...
Dave's user avatar
  • 21
1 vote
0 answers
43 views

Docker container routing to YARP fails in Aspire

I have a software solution where there is an ASP.NET Core 8.0 Web API running on Linux inside a Docker container (edge-service), making HTTPS GET and HTTPS POST to an ASP.NET Core 8.0 Web API (front-...
Tony Gordon Smith's user avatar
0 votes
1 answer
34 views

DotVVM GridView exception on page load

I have a .NET 8 web application which uses DotVVM and the trial version of the business package (4.3.2-trial). I am trying to test the GridView control by reproducing the first sample given in the ...
DevAct's user avatar
  • 155
0 votes
0 answers
37 views

Azure Pipeline Error - Building .Net MAUI App

I am trying to create an Azure Pipeline to build the APK for .net MAUI project. Pipeline on run failing with below error. * C:\hostedtoolcache\windows\dotnet\sdk\8.0.414\Sdks\Microsoft.NET.Sdk\...
XaMAUI's user avatar
  • 392
-1 votes
0 answers
63 views

Finding a variable based on attribute value [duplicate]

Hi Ive run into an issue i have an object in c# and in that attribute i have added a number field ( something that should in the code be unique for each value such as ) public class ...
Bithellio's user avatar
2 votes
0 answers
79 views

.NET Core localization: Web API controller can't resolve IStringLocalizer<T> from another project

I want to centralize app text and send localized messages, including from background jobs (sending localized push notifications to users in their preferred language). So I need to be able to resolve ...
Nikola's user avatar
  • 21
1 vote
0 answers
48 views

Single message repeatedly read without acknowledgment moves all messages to DLQ when finally acknowledged [closed]

I'm experiencing an issue where all messages in my ActiveMQ Artemis queue are moved to the DLQ (Dead Letter Queue) during development. This happens when I read the same message multiple times without ...
Mi2830's user avatar
  • 347
1 vote
1 answer
71 views

Callback methods with ProtoBeforeSerialization/ProtoAfterDeserialization donot work in protobuf-net 3.2.26, even when assigned explicitly to MetaType

I'm upgrading from protobuf-net 2.2.1.0 to 3.2.26, and I've noticed that callback methods decorated with [ProtoBeforeSerialization] and [ProtoAfterDeserialization] are no longer invoked during ...
Sudheer Kumar's user avatar
1 vote
1 answer
47 views

Why does MSBuild apparently ignore CopyToOutputDirectory when specified in Directory.Build.props?

When you add an appsettings.json file to a project, the following is inserted in its .csproj file: <ItemGroup> <None Update="appsettings.json"> <CopyToOutputDirectory>...
Ian Kemp - SO dead by AI greed's user avatar
-3 votes
2 answers
104 views

XmlSerializer: how to ignore derived class

I have two classes public class Base { public int val { get; set; } = 10; } public class Derived : Base { public int val2 { get; set; } = 20; } Then in the main code I have: XmlSerializer ...
Perry's user avatar
  • 1,231
0 votes
0 answers
73 views

How does the local Nuget folder work in C#?

I have a .NET project with a local nuget folder specified in NuGet.config. Now I have 2 machines that produce different nuget folders when compiling the same project (targeting .NET 8) and I want to ...
Klamsi's user avatar
  • 906

15 30 50 per page
1
2 3 4 5
182