1,622,699 questions
-5
votes
0
answers
59
views
Access to the content of an asset on the server side as well [closed]
I would like to access the content of an asset in the @Asset collection on the server side as well. Do I need to copy and create the resource again, or can I use the assets?
Best practices
0
votes
3
replies
73
views
Generate a .NET .exe file that doesn't include IL, JIT, metadata in it
If you create a new VB.NET or C# project you will get a lot of files, e.g.:
test.deps.json
test.dll
test.exe
test.pdb
test.runtimeconfig.json
or if I publish the project I will get a single file ...
-3
votes
0
answers
46
views
Opening any project in vs, it says Miscellaneous Files, .net SDK not found [closed]
The main problem is that vs cant find sdk but i've donwloaded it, through browser multiple versions, through browser or embeded installer, i restarted my pc.
this how it looks in a console project
...
Advice
1
vote
3
replies
105
views
How to add comments before JSON property?
I would like to use JSON as the format for my program's configuration file. When writing the file to disk, it should contain comments that describe each field. These comments should be controlled ...
1
vote
1
answer
110
views
Getting a connection string empty error in a ASP.NET Core 10 Web API project
I'm running in .NET 10 with the most recent update for everything. I'm using EF Core and ASP.NET Core.
Here is my program.cs file; when I fetch my connection string, I get back what I expect. When I ...
1
vote
1
answer
63
views
Protobuff and multiple layers of inheritence
Using Protobuf.net I have List<Test> and objects inherited from Test (i.e. Test2, Test3, Test4),
Test is defined like so
C#:
[ProtoContract, ProtoInclude(1,typeof(Test2)), ProtoInclude(2, typeof(...
-3
votes
1
answer
107
views
How to use a variable that could potentially be null in C#? [closed]
I have this C# code. It works well, but it has these warnings on the Console.WriteLine (green irregular lines below). After checking, it says
Nullable Warnings: you are using a variable that could ...
0
votes
0
answers
50
views
Programatically written (Maui) UraniumUI TabItem does not inherit Xaml style override for TabView
I have a custom bit of code in App.xaml that creates an override for my TabView. It is a hard style application without being referenced, which I assumed would propagate to other elements within it.
...
Advice
0
votes
6
replies
196
views
Learning C# (Day 2): Recommendations on my code + what to learn next
I'm currently learning C# (Day 2) and experimenting with building small utility components. I wrote a simple file‑system wrapper with interfaces, and I’d appreciate feedback on:
Whether the structure ...
Tooling
0
votes
3
replies
94
views
How do I upload a file from a game to a device in a Unity project?
I have a project that generates a file that the user can later download to the device (WEB/android/ios). But I can't figure out how to do it. I have not found any plugins in the AssetStore that would ...
Best practices
1
vote
1
replies
71
views
StackExchange.Redis Implementing ZINCRBY with XX flag
I want to increment the score if the key exists by some value. The default sorted set increment function in StackExchange.Redis and in Redis in general adds the value with the score of the increment ...
0
votes
0
answers
75
views
Register an HKCU key with CustomAction in a Visual Setup Project?
In my solution.slnx file, I have the following C# code projects:
- A simple VSTO .NET Framework 4.8.1 project. (Currently, it's working well.)
- A simple ExcelDna project that adds some extension ...
0
votes
0
answers
132
views
+50
Unable to load JavaScript module dynamically from a local assembly using JavaScript Isolation ("Failed to fetch dynamically imported module" error)
In How to share the JavaScript files for the Blazor via Nuget packages and include them to consuming projects? topics, I have been recommended to inject the JavaScript dependencies via isolation:
// ...
Advice
0
votes
12
replies
177
views
Why reference to object is not initializing in List<T>()
I am trying to understand why field (MyCl1 cl1; - is reference type, which is not yet initialized) of class Form1, is not getting initialized.
I placed that (cl1) reference in list (List<MyCl1>...
0
votes
0
answers
77
views
MAUI Hybrid issue with HTTP GET request from BlazorWebView
I am working on a MAUI Hybrid solution, with the standard projects: Web (Server) / Shared / Mobile. My issue is when I run the app on the Android emulator.
Here is my MainActivity.cs:
[Activity(Theme =...