Cant debug or see tests when using vscode in wsl with docker and xunit
Entity Framework Tracking not making changes to db
Issues with wpf binding
Score
to a Label
in wpf, here's my code:
```cs
public partial class MainWindow : Window
{
public static int Score { get; set; } = 10;...✅ How does server fetch information from the correct user?
Transitive compile assets in nuget
Flyout Disappears on Window Resize: What Could Be Wrong?
How to Correctly Reference a Method in App.xaml.cs
ChangeLanguage
method should work, but referencing is a challenge at the moment, since I get the error 'App' does not contain a definition for 'ChangeLanguage' and no accessible extension method 'ChangeLanguage' accepting a first argument of type 'App' could be found (are you missing a using directive or an assembly reference?)
.
The OnLanguageChanged
method works until I add that reference for ((App)Application.Current)...
.
How do I correctly reference to a method in App.xaml.cs?...Stylesheets
<link rel="stylesheet" href="~/ProjectName.style.css" asp-append-version="true" />
Hello, there, can someone please explain me what this link is refering to. I used search across my whole project and there is no file with such name. I even checked for hiden files. Also when I launch an app and inspect a page on Chrome it will show me that this file was loaded and will show its contents(some css obv).
It comes by default with MVC template in _Layout.cshtml
file...Cannot access a disposed context instance.
ObjectDisposedException
about a DbContext being disposed while using IDbContextFactory<>
to initialize my database context. After searching online for potential ways for me to approach resolving this, none of them seem to apply for my case.
Code:
```cs
logger.LogInformation("{Availability} Guild {Name} has just been created.", $"{(gatewayEvent.Guild.IsT0 ? "A" : "Una")}vailable", gatewayEvent.Guild.IsT0 ? gatewayEvent.Guild.AsT0.Name : gatewayEvent.Guild.AsT1.ID.ToString());...I need help, I don't know what to do.
Need Help with a Minimal API
✅ Proper way of using EF DbContext in a BackgroundService
BackgroundService
have different scopes. I've seen there are 2 solutions.
The possible options are: injecting the IServiceProvider
, or the IServiceScopeFactory
, then manually creating a context.
Which one of the interfaces is better to use? There surely must be some difference......Project which programatically calls MSBuild does not properly configure NuGetSdkResolver path
Microsoft.Build.*
stuff from native land. The actual dispatch appears to work fine but it fails with
Could not load SDK Resolver. A manifest file exists, but the path to the SDK Resolver DLL file could not be found. Manifest file path '.\Build\Debug\SdkResolvers\Microsoft.Build.NuGetSdkResolver\Microsoft.Build.NuGetSdkResolver.xml'. SDK resolver path: .\Build\Debug\Microsoft.Build.NuGetSdkResolver.dll .\Example\Example.Managed\Example.Managed.csproj(0, 0)
Could not load SDK Resolver. A manifest file exists, but the path to the SDK Resolver DLL file could not be found. Manifest file path '.\Build\Debug\SdkResolvers\Microsoft.Build.NuGetSdkResolver\Microsoft.Build.NuGetSdkResolver.xml'. SDK resolver path: .\Build\Debug\Microsoft.Build.NuGetSdkResolver.dll .\Example\Example.Managed\Example.Managed.csproj(0, 0)
async/await and parallelism
_message
linked list is being accessed in three ways: from a heartbeat loop, from the i/o eventhandler, and from the public methods of the commands -- after an await (also _messages
is never enumerated with a for/foreach)
so i understand that asynchronous model has following properties:
- multithreading: yes, easily verifiable (thread pool, background threads, and all that)...✅ How do you log and trace requests in big production applications?
✅ System.Threading.Channels - Consumer is blocking the main thread where the producer is
WriteAsync()
, but the consumer blocks the termination of the producer.
The outcome should be a non-blocking read, so the producer would complete in the meantime.
The following is the consumer:...How do I write integration tests
✅ Looking for a Windows Desktop Software Developer
I can't afford to sign my app