38 questions from the last 7 days
3
votes
1
answer
86
views
Configure Visual Studio to decompile obfuscated code like Rider?
When navigating to the definition of something (e.g. with f12) of an obfuscated library in Rider, it will do its best to decompile the library. However, if I navigate to the same thing in Visual ...
1
vote
1
answer
34
views
Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken throws exception
I'm trying to get a hardware id with a .net console app (target framewotk is net8.0-windows10.0.17763.0).
The code is rather trivial, just
var token = Windows.System.Profile.HardwareIdentification....
Advice
1
vote
2
replies
49
views
Dynamic Forms in ADO.NET
I am a newbie in .NET - can someone tell me about dynamic forms? I have done master detail and simple crud - should I go for dynamic form r practice more in master details. I want to know about ...
Best practices
1
vote
1
replies
49
views
Using Spectre.Console.Cli with Generic Host
I have a CLI app in .NET, built with Spectre.Console.Cli package. I use ServiceCollection with Spectre ITypeResolver and ITypeRegistrar interfaces to wire up the DI. That works great, but now I want ...
1
vote
0
answers
45
views
EF Core + Npgsql: "column 'status' is of type application_status but expression is of type text"
I've been struggling for two days with a PostgreSQL enum type issue in Entity Framework Core. Despite all my configuration, EF Core keeps trying to send a string (`text`) to an enum column.
The ...
Best practices
0
votes
3
replies
64
views
Can a Composite Component class inherit from another abstract base class without breaking the Composite pattern?
I’m studying and implementing the Composite design pattern in C# for a university project.
In most textbook examples (GoF, Refactoring.Guru, etc.) the class hierarchy looks like this:
Component
├── ...
0
votes
1
answer
41
views
VSPackage fibers stack tracing
I am trying to display the stack traces of RTOS fibers running in a C++ solution in VS2022. Since upgrading to Windows 11 there seems to be a problem in the implementation. The existing approach, ...
Advice
0
votes
2
replies
66
views
System.Text.Json Polymorphic Deserialization not binding Type Discriminator property
I'm trying to do a polymorphic deserialization using System.Text.Json in net-8.0. Here is my schema.
[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
[JsonDerivedType(typeof(Manager)...
0
votes
2
answers
64
views
C# project with a package reference to a nuget with an exe assembly
I know that in the early times of .NET Framework, you could build an assembly into EXE and then use that "EXE assembly" as a dependency of another .NET Framework assembly which, too, could ...
Best practices
0
votes
3
replies
64
views
Is there anyway to get physical disk Idle time without 1 second wait needed for PerformanceCounter.NextValue function?
I trying to develop user-friendly program that do not block physical disk with 100% usage (so even entering My Computer takes around 10 seconds).
My program calculate hash for many (180k) small files ...
0
votes
0
answers
39
views
Does anybody else have issues with sideloading after updating to Visual Studio 2026?
I recently updated my Visual Studio to the newest version (2026). Since I updated, my Android devices no longer appear in the list of devices. But even worse, since the update they don't appear in my ...
0
votes
1
answer
41
views
editorconfig rule to enforce that namespace is set in all C# files
I want to set a rule in .editorconfig so that all C# files where namespace is not explicitly set should render an error.
I've added these:
dotnet_diagnostic.IDE0130.severity = error # Namespace does ...
0
votes
0
answers
19
views
Revit 2024 API: Family cannot be loaded from fixed file path (Truss Hole Add-in)
I'm building a Revit 2024 add-in that places a circular void hole where the user clicks in the model.
The hole family has a “Diameter” parameter and cuts only structural framing members around the ...
0
votes
0
answers
35
views
Can a .NET project template automatically add a project reference to an existing project in the solution when added from Visual Studio?
I have a system where users create .NET plugin libraries. To support this, I’ve built:
A solution template that creates:
a plugin project
a testbed console app
a project reference from the testbed → ...
0
votes
0
answers
45
views
error MSB4057: The target "ResolvePackageAssets" does not exist in the project
I tried adding a migration via dotnet ef migrations add InitialCreate but got the following error
C:\Users\tmsta\OneDrive\source\repos\Server Default\TrevorsTempMonitorApp\TrevorsTempMonitorApp.csproj ...
0
votes
1
answer
76
views
Error in flush at downloading file with VB.Net
I'm trying to download files through a popup window. Most of files download correctly, but some one through this error:
Error in /Controladores/Descarga.ashx?guid=4b5050f6-2f69-41e1-8bd6-1113686e9575
...
0
votes
0
answers
45
views
Access to path '/app/wwwroot/Uploads' is denied
I'm using docker image to deploy my asp.net application
and i'm facing 2 issues.
The first one: after some deployes the api list still the same although a made changes on it (it seems like image ...
-1
votes
0
answers
56
views
VS Code fails to run .NET, even if I installed it
When I open a workspace in VS Code, I get this error message notification on the bottom right corner :
Failed to run .NET runtime. You may be missing key Linux libraries. Install them now?
Source: ....
-4
votes
0
answers
52
views
Make COM Server (Widget provider) ready for AOT [closed]
I have couple of windows 11 widgets. Implemented with the sample provided by microsoft which isn't AOT compatible. I found this question / awnser which looks very useful
How to rewrite the Windows App ...