Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
164 views

I am currently trying to utilize the Spinnaker SDK in a C# .NET8.0 application. My goal is to make a cross-platform application that runs on both Windows-x64 and NVIDIA Jetson Orin (Linux ARM64) I ...
bone's user avatar
  • 11
1 vote
0 answers
135 views

I am trying to pass a javascript array of objects to a .NET controller action List<> parameter. Below is my C# public bool ImportACE([FromBody] List<Element> elements) { foreach(...
NerdyDriod's user avatar
2 votes
0 answers
127 views

I have following context menu defined as a part of the DataTemplate in xaml: <DataTemplate DataType="{x:Type viewModel:OverviewAnnotationItemViewModel}"> <views:...
Djomla's user avatar
  • 23
1 vote
0 answers
165 views

I have two applications running, a web app on .NET 4.7.2 (versioning is not under my control...), and another on .NET 9 (LLM proxy service). The proxy service takes a request, routes it and uses ...
steinarey's user avatar
  • 313
0 votes
0 answers
243 views

I am on an air gapped network trying to run a C++ project that uses solution files from Visual Studio, because that is what the rest of my team uses. I have: C# Dev Kit 1.61.22 C# 2.93.21 .NET ...
Alexander Berryhill's user avatar
1 vote
0 answers
90 views

I want to use the PowerShell 7 cmdlet Get-ClusterResource in C# under Windows 11, like this: using System.Collections.ObjectModel; using System.Management.Automation; namespace PSHosting; class ...
Andreas's user avatar
  • 91
2 votes
2 answers
77 views

Each Team document contains a list of Player documents. Each Player contains a list of strings named PlayerColors. The need is to update the PlayerColors of a specific Player within the specific team. ...
Skippy VonDrake's user avatar
1 vote
1 answer
53 views

I have an SDK style project using MSBuild.SDK.SystemWeb/4.0.104 SDK. It builds fine, all works OK. Now I have a tool which wants to analyze the project by first creating the Microsoft.Build.Evaluation....
mark's user avatar
  • 63.6k
0 votes
0 answers
27 views

I am trying to use this library on a Linux machine: https://pdfium.patagames.com/ https://www.nuget.org/packages/Pdfium.Net.SDK/ At first, when I ran it on Linux, I got: Unable to load shared library '...
Octavian Niculescu's user avatar
0 votes
2 answers
71 views

I am trying to update a legacy ASP.NET 4.6 app to .NET 4.8. The app contains 2 class library projects as well. I'm now using VS2022 for the updating instead of VS2017/2019 that I was using before. For ...
user877247's user avatar
1 vote
0 answers
211 views

A BinaryInteger<T> is an integer of some bit-length. I'd like to use it to index an array. Casting to an int isn't possible - I have to use int.CreateTruncating(i) (or similar) at run-time to ...
n8wrl's user avatar
  • 19.9k
0 votes
0 answers
48 views

I am trying to populate my fast report with dummy data using .NET code DataTable dt = new DataTable(); dt.Columns.Add("name", typeof(string)); dt.Columns.Add("days", typeof(string))...
Proba EPUS's user avatar
1 vote
1 answer
76 views

I have been given a project that uses Durable Functions to run a few sequential logic steps with some triggers for timers/http etc. Problem is there is sooooo much boilerplate code here, there is ...
Grofit's user avatar
  • 18.6k
1 vote
1 answer
100 views

I’m trying to measure the RAM usage of a specific application using C# (.NET Framework 4.6.2). I’ve already done some research and managed to get a result using Process.WorkingSet64, but the value ...
Sardor's user avatar
  • 27
1 vote
2 answers
244 views

I have a code snippet that uses let with a where clause. private List<string> Example2() { var query1 = from c in _context.Customers let custPurchases = _context.Purchases....
Romanov Nikita's user avatar
2 votes
1 answer
113 views

I am using MongoDB with C# (MongoDB.Driver) and I want to update only the fields provided in my API model. My current approach works for updating values, but I cannot set a field (string, number, or ...
Shanthini Michael's user avatar
1 vote
1 answer
74 views

I'm checking the file signature of an IFormFile and I'm curious if I can avoid resetting to the beginning of the stream after my check is done. I intend to dispose the copy of the original stream and ...
BobDidley's user avatar
  • 211
0 votes
1 answer
136 views

I'm experiencing an issue with APS Design Automation (formerly Forge) where my AppBundle's PackageContents.xml is not being read/processed by AutoCAD Core Console, preventing my custom .NET DLL from ...
Lloyd_Xmas's user avatar
0 votes
0 answers
71 views

I am facing a confusing issue while trying to run npm commands programmatically in a React project deployed to Azure App Service. What works: Running npm commands locally via my Node.js script works ...
shan muhammad's user avatar
1 vote
0 answers
30 views

I've got a build pipeline in TeamCity and a private nuget feed hosted in aws codeartifact. The first step in the pipeline calls aws codeartifact login with the appropriate parameters. It works when I ...
Iceape's user avatar
  • 221
1 vote
0 answers
105 views

As the title says, I have this class which is based on PdfSharpCore. I have a PDF file which is AcroForm (doesn't seem to be XFA, although I'm not 100% as I don't have much experience with PDFs - but ...
Octavian Niculescu's user avatar
0 votes
0 answers
74 views

I'm using data annotations from System.ComponentModel.DataAnnotations in my ASP.NET project. I get an error message where you can describe the requirements such as "Name is required" and etc....
DELI's user avatar
  • 11
1 vote
0 answers
70 views

I am trying to integrate some server side pages in a Blazor Web App using Webassembly. I have a few pages in the client project, but I want some pages to run on the server. As such, I have added a ...
MaltDew's user avatar
  • 147
0 votes
0 answers
74 views

I have a simple ASP.NET Core API that streams events using Server-Sent Events (SSE). Locally (Kestrel) it works fine: every WriteAsync + FlushAsync sends data to the client immediately.The endpoint ...
Petar Dobre's user avatar
3 votes
1 answer
131 views

I'm working on some code that still needs Powershell 5, and I'm making use of some .NET tools, including [System.BitConverter]::GetBytes(). This function always returns a byte array... it has to, as ....
Joel Coehoorn's user avatar
2 votes
1 answer
245 views

I have a C# console app that is pushed to Azure DevOps and then deployed to a specific server. The app uses an appsettings.json file like this: IConfiguration _configuration = new ConfigurationBuilder(...
frankborty's user avatar
0 votes
0 answers
84 views

I downloaded .NET MAUI Community Toolkit example project. I really liked the look of the transparent style and I wanted to replicate it. I copy Styles.xaml, where defined BackgroundColor for Page and ...
Yaroslav's user avatar
  • 212
1 vote
2 answers
126 views

I have a class that looks like this: public int DoWork(int value) { return value + GetDataFromDB(); } public int GetDataFromDB() { return 10; } In the real world the second function goes ...
John's user avatar
  • 306
0 votes
1 answer
72 views

This is my .NET Http Client minimal reproducible example, which connects to a server running on a CNC machine edge device and uploads a local JSON configuration file: using System; using System.IO; ...
PatJon6's user avatar
  • 33
0 votes
0 answers
56 views

Lets say we have the following interface: public interface IGetRandomString { void Init(); bool IsInited { get; } //returns random string of length chars string GetRandomString(int ...
bairog's user avatar
  • 3,539
2 votes
2 answers
103 views

I am a beginner in C# trying to figure out how ref-safe-context is defined in C#. I declared a function Foo which didn't work since it tries to ref assign a variable with declaration-block to a ref ...
Louis Nicolas Davout's user avatar
1 vote
0 answers
62 views

I am trying to dockerize an existing ASP.NET MVC application running on .NET 4.5.2. I am using mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 as the base image (the base ...
Ganesh Pg's user avatar
1 vote
1 answer
55 views

I want to not collect all the user/device context, like location, remaining battery and so on. Can I configure it somehow? Here's my config: .UseSentry(options => { options.Dsn = "..."...
user963935's user avatar
3 votes
2 answers
218 views

I'm implementing a DDD app where my entities emit DomainEvents for auditing purposes. Every action that occurs in my board should log something to the DB. In the example bellow, I'm logging that ...
Lucas Constantino's user avatar
2 votes
2 answers
280 views

I want to use PowerShell in C#. Example: using System.Management.Automation; namespace PSTest; class Program { static void Main() { using (var powerShell = PowerShell.Create()) ...
Andreas's user avatar
  • 91
3 votes
0 answers
148 views

I'm trying to build a background service with autostart in the background. Core logic in console app executing from OnStart, however after several failures at debugging root cause - modified code by ...
userXeroWan's user avatar
1 vote
0 answers
61 views

I am working on a .NET MAUI project targeting .NET 8 for both Android and iOS. The app builds and runs fine in debug mode on both platforms, and I can test it locally in the simulators without issues. ...
Suhas M R's user avatar
4 votes
2 answers
103 views

I have an .sln referencing a single .csproj. Inside the .csproj I download static dependencies into ASP.NET's wwwroot: <Target Name="DownloadContentFiles" BeforeTargets="Restore&...
Benni's user avatar
  • 1,102
0 votes
0 answers
27 views

Try ' Force TLS 1.2 (needed for .NET 4.0/4.5) System.Net.ServicePointManager.SecurityProtocol = DirectCast(3072, Net.SecurityProtocolType) ' Create mail Dim mail As New MailMessage() ...
Timothy T's user avatar
2 votes
0 answers
88 views

I have a Visual Studio 2022 installer project I made and it currently has a primary output which creates an advertised shortcut automatically when the project is installed. However, since its ...
Ayushi Amin's user avatar
2 votes
1 answer
178 views

I'm developing an Avalonia Application and I'm trying to figure out how can I make a DataGrid cell editable, here's my DataGrid to make it more clear: <DataGrid IsReadOnly="False" ...
DigioMatthy's user avatar
3 votes
0 answers
92 views

Current problem: when we store files in Azure Blob Storage, we create a folder per entity (company/user). The name of the folder includes: Entity ID (required to guarantee that the folder name will ...
Oleksandr Karpiuk's user avatar
2 votes
1 answer
62 views

In .NET you sometimes need configuration keys with dots. For example in logging configuration. .NET itself creates a sample like this (Microsoft.AspNetCore): "Logging": { "LogLevel&...
Tobias's user avatar
  • 121
0 votes
0 answers
68 views

I have a listbox defined as follows: <ListBox Name="MyListBox" AutomationProperties.AutomationId="MyWindow_MyListBox" ItemsSource="{Binding MyItems}" ...
Alexander's user avatar
  • 20.3k
0 votes
1 answer
115 views

Blazor supports virtualization but items need to have same height. For most cases it's okay, but for example for chats where amount of messages can be high and messages have different heights due to ...
GeorgeKarlinzer's user avatar
0 votes
0 answers
69 views

I am using the C# Windows.Devices.Bluetooth APIs to communicate with a device via BLE. The BluetoothLEDevice class does not expose connect or disconnect methods but at least the connect can be forced ...
Nirke's user avatar
  • 11
3 votes
1 answer
81 views

Here is a simple code snippet to show the problem I am seeing: MainPage.xaml: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="250" /> <...
Peter's user avatar
  • 12.1k
0 votes
2 answers
100 views

For the life of me I cannot find much official information on the load order or precedence of configuration file load order. I have a situation where I am provided configuration via AddAzureKeyVault ...
Grofit's user avatar
  • 18.6k
2 votes
1 answer
128 views

I have an empty lakehouse in my Fabric workspace. I'm trying to create a folder under /Files with the Fabric api. When I use the Microsoft.Fabric.Api.FabricClient folders abstraction, the folders are ...
xeraphim's user avatar
  • 4,705
0 votes
1 answer
59 views

I have a Mono container (mono:6.12.0.182) and it has some host.testcontainers.internal:[PORT] exposed to it. I will be using this to integration test a legacy .NET client application against a new API(...
Alexander Ivanov's user avatar