1,623,937 questions
0
votes
0
answers
19
views
Coding a Nested JSON object using Newtonsoft.Json
I am attempting to code a nested JSON object for an upload API endpoint. I am having issues forming the code for the nested object. When I call the endpoint to post the data to their site, I get a ...
-2
votes
1
answer
23
views
How do I add help files to my application?
I completed a .net maui application that is working 100%. The only thing left to do is to add help files to it. Now I've heard that you can embed files directly into the program or you can attach them ...
-2
votes
0
answers
40
views
How do i open a C# file that contains a generated sequence diagram? [closed]
I have a C# file that supposedly contains a sequence diagram generated from code. I not sure what tool was used to create it, and I don’t know how to open or view the diagram properly
-2
votes
0
answers
31
views
How to add encoding/codepage to DBF in Stimulsoft reports? [closed]
I want to add the ability to select encoding/codepage (such as 1250 to 1256) when exporting to DBF in Stimulsoft reports. The problem is that in version 2024.3.2 you are using, StiOptions.Export.Dbf ...
1
vote
0
answers
34
views
nea game doesn't allow me to present and click on sprites
I'm creating a game for my nea and I have tried multiple times to make me as a user of the game to press on documents that my character presents, and to be able to interact with it. I have checked ...
1
vote
0
answers
32
views
How do I define an MSBuild variable for the VSCode C# completion server?
I'm building a mod for Unity based game RimWorld. I have the following assembly references in my .csproj file, using a variable so other people can build the project regardless of where RimWorld is ...
1
vote
0
answers
32
views
How to load types from SIEMENS OPC interface XML into an Opc.Ua.NetStandard C# server?
I have an .xml file exported from TIA Portal, with UADataTypes, UAObjects and UAVariables - something like this:
<UADataType NodeId="ns=1;i=3500" BrowseName="1:...
0
votes
0
answers
47
views
How to open interactive window in Visual Studio 2026 automatic with code?
I tried hard with a lot of methods:
dte.ExecuteCommand("View.C#Interactive");
Even tried deleting temp file bin .....etc
I'm also changing view. C# Interactive to other and using ,0
...
0
votes
0
answers
62
views
Required data annotations returning namespace rather than error message value?
I have an ASP.NET Core 8 MVC application, using the bog standard [Required] attribute on a class property. I expected to see the defined error message in my HTML, in the data-val-required attribute on ...
1
vote
1
answer
98
views
.NET is not recognized
In a .NET Core C# project, I get many errors like this:
Predefined type 'System.Object' is not defined or imported
Primary variables such as int and string are not recognized.
I have tried the ...
-1
votes
0
answers
83
views
Async void function returns immediately when making POST request [duplicate]
I'm trying to send a POST request using Newtonsoft.Json and HttpClient in C# and I've been using Postman to test out the JSON.
As soon as I send the post, it immediately exits the CreateQuotePost ...
Advice
1
vote
3
replies
67
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 ...
0
votes
2
answers
76
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 ...
0
votes
1
answer
52
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
2
answers
96
views
MRU structure with fixed number of elements, automatically adapting to LINQ queries
I have a folder containing huge numbers of files in many subfolders, and I want to select the files with a name that matches any of a specified list of patterns (regular expressions). My regular ...
Best practices
0
votes
4
replies
74
views
Upgrading from .NET framework 4.8 VB.NET project to .NET 10
I have an application which was written years ago in VB.NET. Recently I migrated it to .NET framework 4.8. This change was smooth.
Now I am planning to migrate it to an ASP.NET Core 10 Web API using C#...
-2
votes
0
answers
23
views
MediatR Nuget package versions creating problems
I am getting a version mismatch error when using MediatR in my .NET project.
What happened:
Yesterday my project worked correctly with no errors.
Today I updated some NuGet packages by mistake.
After ...
0
votes
0
answers
66
views
VS Code doesn't Recognize Unity Classes
For two days now, I've been having a rather strange problem.
The MonoBehaviour class isn't recognized by VS Code, with the following error:
Error while loading [...]: Exception thrown: System....
-3
votes
0
answers
30
views
D365 C# Plugin sporadically stop processing [closed]
I have created a C# plugin that has a method that runs AfterInsert of record. The issue I am running into is it sporadically inserting a record into the sharepointdocumentlocation table/entity. There ...
-1
votes
0
answers
49
views
Why can PropertyColumns not infer their type parameters when passed to a wrapper? [duplicate]
I am using MudBlazor's MudDataGrid, which functions very similarly to Blazor's QuickGrid. The grid's contents are determined by a RenderFragment parameter called Columns, which contains a list of ...
Advice
0
votes
0
replies
32
views
Refactoring Azure Functions .dll files to external project makes it fail for durable functions, why
I have build my project using Azure Functions, my project has core projections which hold core projects
so I have
MyProject.Core
<PackageReference Include="Microsoft.Azure.Functions.Worker&...
0
votes
0
answers
23
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 ...
Tooling
0
votes
1
replies
42
views
How to programmatically insert Plant 3D catalog parts into a drawing using C# API?
I’m working on automating the insertion of parts from a custom Plant 3D catalog into project drawings using a C# plugin.
What I have so far:
A custom catalog (.pspx, .acat, .pspc) with supports and ...
-7
votes
0
answers
88
views
Whenever I try to compile my MAUI project I get CS0246 Error
I'm trying to build a three piece Streaming Project in which I need to build an API that is already working, a Java App for Android that I haven't even started and this .NET MAUI using C# that is ...
Advice
1
vote
3
replies
101
views
C# advanced features - Book?
I would like to learn new C# features. There are many books that introduce basic C# features. Are there any that cover advanced,new, features?