2,729 questions
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 ...
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)
...
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 ...
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 ...
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 ...
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-...
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 ...
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\...
-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 ...
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 ...
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 ...
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 ...
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>...
-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 ...
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 ...