340,756 questions
0
votes
0
answers
43
views
Visual Studio Setup Project with a Unity game creates application-breaking dependency on .Net Standard 2.0
tl;dr:
How do I find the origin of a dependency in a Visual Studio Installer Project?
I've created a Visual Studio Installer Project in VS2022 to package my Unity game as an .msi
Visual Studio ...
1
vote
0
answers
52
views
.NET HttpClient: How to read multiple responses from one request? [duplicate]
The http spec allows multiple responses per http request:
A single request can have multiple associated responses: zero or more "interim" (non-final) responses with status codes in the &...
0
votes
1
answer
66
views
csproj : Dependency selection based on target framework
My .NET project targets both .NET 6 and .NET 8, in my csproj file I have:
<PropertyGroup>
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
...
</PropertyGroup>
Then, ...
0
votes
0
answers
27
views
TransactionException after updating Spring.net from version 2.0.2 to 3.0.2
After updating Spring.net packages from 2.0.2 to 3.0.2, it looks like something changed in the behavior of the [Transaction] attribute Interceptor, and now I'm getting an exception:
System....
1
vote
1
answer
94
views
Interaction and communication between C# classes
I have an API service class that implements HttpClient to connect to my API, I have a user list model, and I have a View Model using the Community Toolkit MVVM approach. I would like to understand how ...
0
votes
2
answers
139
views
How to Force Dark Mode Maui App - Windows
Was wondering how you can force dark mode on windows for my MAUI application.
If a windows machine is running light mode, I want the app to still present as if it was dark mode.
I have tried ...
0
votes
0
answers
56
views
Handling expired or invalid token in Dynamics CRM SDK
I'm developing an API consuming Dynamics CRM through Microsoft.PowerPlatform.Dataverse.Client.
When invoking ExecuteAsync on the ServiceClient I would like to catch when there's an issue with the used ...
-1
votes
1
answer
170
views
.NET 9 equivalent for System.Runtime.Remoting.Lifetime
I have an old .NET 4.8 Windows service that I am upgrading to .NET 9 and C#.
The application uses custom garbage collection to manage a high load of disposable objects. To do this it uses the ...
0
votes
0
answers
63
views
Call Oracle stored procedure that takes ODCIVARCHAR2LIST parameter from C# using Dapper and Oracle Managed Data Access Core [duplicate]
I'm trying to call an Oracle stored procedure from C# that takes SYS.ODCIVARCHAR2LIST (a table of VARCHAR2) as input parameters.
The procedure works correctly in SQL Developer, but from C# (using both ...
0
votes
1
answer
144
views
How to remove .NET framework version from any .config file?
We had a third-party security audit on a legacy .NET Framework application. One of the findings indicated that our configuration related to the <startup> and <supportedRuntime> element in ...
3
votes
1
answer
84
views
How to add custom pluralization of table names when using "dotnet ef dbcontext scaffold" command
I am running the following command to scaffold C# models of an existing database:
dotnet ef dbcontext scaffold "<conn string>" Microsoft.EntityFrameworkCore.SqlServer
I would like to ...
2
votes
3
answers
112
views
Trouble binding data to an IDrawable
I'm trying to put together an app, but I've run into problems trying to get data into an IDrawable graph display. The app is just supposed to show a plot of random data from a float[] which is then ...
0
votes
0
answers
52
views
Dotnet process trace needs to be excluded using opentelemetry
In kubernetes pod container, there are 2 different dotnet processes, one for the main application and the other for monitoring the application.
I have configured Entrypoint as shown below in both ...
0
votes
0
answers
156
views
Unable to print barcode labels on my Dymo label writer 450 Twin Turbo using DYMO.Connect.SDK 1.4.4.21 using C#
I am developing a Winforms app using VS2022 in C# for .NET 4.8 to print accelerated reader labels for books. Some books do not have a barcode on the back so I added to may app the ability to take the ...
1
vote
1
answer
176
views
How to fix Java.Lang.AbstractMethodError with androidx.media3.common.Player$Listener.onPositionDiscontinuity in MAUI Android?
I've been working on this app that is required to display video, and I've chosen to use MediaElement. The element is initialized fine, but if I do anything besides play or pause the video, like moving ...
0
votes
2
answers
134
views
How can I change a property of multiple objects in a collection [closed]
How can I quickly change a property for selected or all objects in a collection. Is there a faster method than iteration? I've considered events. What do you think? Can this be done even faster?
using ...
1
vote
1
answer
68
views
How to initialize NuGet package from MauiProgram.cs instead of platform-specific code in .NET MAUI?
I have a .NET MAUI nuget project where I need to initialize a NuGet package for Android.
Currently, the package requires initialization inside MainActivity like this:
// MainActivity.cs (Android)
...
0
votes
0
answers
94
views
Microsoft Solver Foundation giving wild result for a simple problem
I'm using Microsoft Solver Foundation to minimize chi-square between two distributions. Usually there are multiple peaks in each distribution but occasionally there is just one. I'm noticing in that ...
1
vote
2
answers
117
views
.NET MAUI [ObservableProperty] decimal shows fixed decimals in UI — need fully dynamic decimal places (0–10)
I'm building a .NET MAUI app using the CommunityToolkit.Mvvm [ObservableProperty] attribute for data binding.
Example:
[ObservableProperty]
public decimal _count;
Setting the value:
decimal count = 2;...
0
votes
0
answers
64
views
Microsoft POP3 using HPOP and OAUTH2
My POP3 connection is created normaly (TLS 1.2, at outlook.office365.com, port 995), and i send the command:
AUTH XOAUTH2
The server returns (as expected) the "+" sign.
I followed by the ...
1
vote
1
answer
100
views
How to handle certificate revocation behind a firewall which blocks revocation checks
I'm using a .NET HttpClient to connect to a server over HTTPS. For best practice, I want to check the certificate hasn't been revoked, by setting HttpClientHandler.CheckCertificateRevocationList = ...
0
votes
1
answer
84
views
Having issues with passing an object to be displayed between two view models in .NET Maui using Community Toolkit
The issue that I am having is that when I navigate to the EditTermPage, the title and date fields are not showing the object fields that I am passing over. I believe the object is passed to the ...
0
votes
1
answer
81
views
Get original DataRow from GetChanges()-Table
I have some sort of undo functionality in my application. I remove a row from the GUI an could undo or commit it through the underlaying DataTable-functions RejectChanges or AcceptChanges. But when I ...
3
votes
3
answers
119
views
Dynamically create .NET buttons, with button pressed return its name, or other unique identifier
I am trying to dynamically add buttons to a list, and have $Button (or another variable) be set to whatever is clicked (No OK/Cancel button needed).
The below code creates the buttons, and resizes the ...
1
vote
1
answer
81
views
Docusign API RequestJWTUserTokenAsync - "No such host is known. (https:443)"
I am currently working on setting up a test for the Docusign JWT retrieval process, and encountered the following error: No such host is known. (https:443)
Here is the example code I put together:
var ...