Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
21 views

I have an issue with setting the height of a Dockable Panel in Revit. I created a panel that should appear at the bottom of Revit with a fixed height (for example, 50 px). However, every time I start ...
M45's user avatar
  • 1
-1 votes
0 answers
28 views

I'm using DevWinUI's shortcut control but I'm confused on how to get the key and modifiers from it and then casting it to the proper types for RegisterHotKey. The shortcut control returns public new ...
Ryan Luu's user avatar
  • 631
1 vote
0 answers
33 views

Previously, in .NET 9 and lower, we could use RazorRuntimeCompiliation to implement embedded views in assemblies. services.Configure<MvcRazorRuntimeCompilationOptions>( options => { var ...
StarCat-At-CTC's user avatar
Advice
0 votes
2 replies
33 views

When creating integration tests for ASP.NET Core 10 web apps, we use the WebApplicationFactory<TEntryPoint> class. When a single ASP.NET Core web project is used as SUT, it's simple and it works:...
AlexB's user avatar
  • 4,684
Best practices
0 votes
1 replies
49 views

I am currently developing a module for an ASP.NET Core Web API that uses EF Core to talk to MySQL. The problem is I have no idea how to make EF Core fill the entityId property. Here is the example ...
Sannnekk's user avatar
  • 103
0 votes
0 answers
25 views

I have built a template project with a Template.json and this will generate the template fine ( no errors at all ) ive also managed to add some choices to the symbols that will add or hide code ...
Bithellio's user avatar
9 votes
2 answers
233 views

I have two versions of helper methods for logging on ILogger. The first (classic extension methods) compiles fine; the second using extension members results in a compiler warning/error code. CS8620: ...
Christian's user avatar
  • 132
-5 votes
0 answers
26 views

I'm working on a translation workflow using SDL Studio solution through API calls. Works just fine, our tool can call upon Studio to create a translation project, fill it with the files to be ...
Philippe Brissard's user avatar
0 votes
0 answers
23 views

I created a quite simple .NET MAUI App. For now it only implements a WebView with a source: MainPage.xaml.cs public MainPage() { InitializeComponent(); WebView webView = new WebView { ...
Spikeeins's user avatar
-7 votes
0 answers
93 views

I'm using C#. I have a certain number of Newtonsoft.Json.Linq.JArray, let's say A123, A124, A125, and so on. I need to create an array or something similar of this objects in a way that, if I do ...
iii's user avatar
  • 9
0 votes
0 answers
36 views

In my CRM 365 Plugin I have requirement to write log to Application Insight, I'm able to achieve this using ILogger and Microsoft.Xrm.Sdk.PluginTelemetry library. But I have struggled to write log ...
Theodorus Agum Gumilang's user avatar
Best practices
1 vote
5 replies
82 views

In an MVVM architecture, models should be kept free of UI-related logic. They represent pure data that is retrieved from memory via a service. I see a challenge when the user interface needs to ...
jjb's user avatar
  • 37
2 votes
1 answer
137 views

I'm attempting to rewrite one of my extensions in the new block syntax. It's an extension on IEnumerable<T>: public static class IEnumerableExtensions { public static double StdDev<T>(...
Canyon's user avatar
  • 192
0 votes
1 answer
111 views

I have the following C# code : var rand = new Random(1); var range = Enumerable.Range(1, 8); var partition = Partitioner.Create(range, EnumerablePartitionerOptions.NoBuffering); foreach (var x in ...
tigrou's user avatar
  • 4,586
1 vote
1 answer
69 views

I have two tables Products and CustomerProduct. I need to compose an Entity Framework Core object that returns the result based on arguments of the Web API endpoint method. The method roughly works ...
pepr's user avatar
  • 21.1k
0 votes
2 answers
78 views

According to the documentation available from Microsoft, the code that should show a Notification toast on Desktop looks like this //correctly imported the Notifications library using Microsoft....
So Few Against So Many's user avatar
1 vote
0 answers
37 views

I am querying the Windows Search Index using c# and SQL as the following example (which works) OleDbDataReader mydataReader = null; OleDbConnection myOleDbConnection = new OleDbConnection("...
Michael T's user avatar
  • 801
0 votes
0 answers
44 views

I'm learning how the back end and front end work together by reviewing WPF (Window Presentation Foundation) code. The project runs locally on my machine. I copied it from my team's shared folder. My ...
Giwoon Lee's user avatar
-1 votes
0 answers
116 views

I have a simple C++ project which uses the CoCreateInstance to access and use some C# code (com-exposed class). The simple code looks like: // ... hr = CoCreateInstance( CLSID_rclsid, NULL, ...
Kaktus's user avatar
  • 9
0 votes
0 answers
68 views

I'm using EF Core 9 and I'm trying to run a migration against a copy of our production database. On our local development databases everything works, but on the production copy the migration fails ...
heaxyh's user avatar
  • 633
0 votes
0 answers
19 views

When trying to install the bundle, VCRedist seems to still set the reboot flag even though the argument /norestart is used. The installer then idles/ hangs with 0% CPU usage in the task manager and ...
kpm's user avatar
  • 21
1 vote
1 answer
44 views

I want to print data on a label. I created a ZPL template file and in my application i read that template file, look up a specific string, replace that string with data from my application and then ...
Nico Sz's user avatar
  • 133
Advice
1 vote
13 replies
104 views

I am trying to ensure that methods in my class can only be called by a single thread. So far tried to use ReaderWriterLockSlim to achieve this effect but this can cause potential issues if it is not ...
agracio's user avatar
  • 33
-1 votes
2 answers
73 views

I need to have every invocation from the ILogger interface of a test, but I mock the ILogger interface in the class that is going to be tested, so it won't write to console and therefore the ILogger ...
FlorianD's user avatar
  • 113
3 votes
0 answers
148 views

I'm currently in the process of upgrading to .NET 10 from .NET 9, but unfortunately as usual the documentation of breaking changes seems to be lacking when it comes to certain functionality and ...
jezzipin's user avatar
  • 4,282