ViewFeatures, but something that isn't deprecated?
Trying to use this kind of code line:
public IEnumerable<SelectListItem> AuthorList { get; set; }
Works fine, if I have:
using Microsoft.AspNetCore.Mvc.Rendering;...
".NET MAUI iOS Simulator Error: 'Please connect the device' with UDID, stuck after build"
I'm running into an issue with .NET MAUI on iOS. I keep getting the error:
Please connect the device ':v2:udid=8B56F350-7124-4C30-A582-30BC84EF1BE6'...
This UDID is for my simulator, and I'm unsure how to resolve this. I've followed the official MAUI docs, but still no luck.
...
.Net 8 Web Api Config
Deployed webapi in IIS. Previously using .net 4.5.* where changing config in application settings in UI and restarting for dynamic change. Now in .Net 8 using Environment.GetenvironmentVariable, on publishing generated web.config file but adding values doesn't reflect and added values to pool also none but when added to system level it works but it takes time to recognise. Tried ChatGPT and older relevant question here and none working can someone point me in the best direction? TIA
✅ How do I pin both NET 8 and NET 6 sdk versions in global.json?
hi everyone! if I pin the 8.0.204 sdk in global.json for some reason it wants to pull version 6.0.35 of the Microsoft.NETCore.App.Ref nuget package. is there a way to pin both the 8.0.x and 6.0.x versions of those nuget packages? at my company we are using internal nuget repositories and we don't have a way to pull those internal SDK nuget packages automatically
UWP MAUI building problem
Hi ! So, I was testing Jetbrains Rider, as I have a free student account, and when I want to run on debug the basic MAUI template for Windows (UWP), it just doesn't work and throw me this error :
Registering UWP app with manifest: D:\Programmation\CsharpProjects\MauiApp3\MauiApp3\bin\Debug\net8.0-windows10.0.19041.0\win10-x64\AppX\AppxManifest.xml arch X64...
Register application failed return code is 1.
STDERR: ERROR: The asynchronous operation was failed: E_ACCESSDENIED General access denied error (hresult_error:80070005)[location] = Z:\BuildAgent\work\40149736ac453055\dotnet\Rider\Native\Solution\winrt_launcher\src\utility.hpp(41)[function] = void __cdecl jbrs::wait_for_finished(const struct winrt::com_ptr<struct IAsyncInfo> &)[uri] = D:\Programmation\CsharpProjects\MauiApp3\MauiApp3\bin\Debug\net8.0-windows10.0.19041.0\win10-x64\AppX\AppxManifest.xml...
Windows Authentication
Hello, I have this blazor application that uses Windows Authentication. Everything works well but not on some deployments, I know Negotiate should only use HTTP1.1 but in some of these deployments it only uses HTTP2 and doesn't try to downgrade.
I have checked everything I know including kestrel which I already use HTTP1andHTTP2...
Migration issues -EF core.
I am creating a DDD application with EFcore but I am not able to use the migration because of the following error.
Does anyone know how to solve this? can provide code snippets if needed...
Join to other table in LINQKit Predicate
hello, assume that i have a query
```c#
var allClasses = from s in context.Classes select new ClassView {
Id = s.Id,
Name = s.Name,...
✅ How to debug a visual studio extension?
The project is open on a new VS "Ext" intstance but no breakpoint get hit
my MVC view thinks my model is null!
I wanted to load backend data (MariaDB via Rider) onto my browser as part of developing my simple ASP.NET Core web app.
The problem now is that the browser does not display the backend data (it thinks my model got null data, as per screenshot)
If I check the data table and columns etc I see it is not null;
```mysql> SELECT * FROM ListingDBTable;
+----+---------------------+------------------------------+------------+------------+...
WPF login system
Hey all! hope everyone's doing well. I wanted a bit of help on a PRS system that I'm developing for a personal project. I want to make a login system for it using JSON but i've never actually read/wrote to a json file. im using the Nuget library as i've been told it would be best for me so i'm sort of just going with that. could someone help me on how to read from the json file and where exactly to start with the verification of it. my code and window has been attached below as screenshots. woul...
MVVM should model items have INotify?
Very basic question but I am conflicted.
I have a viewmodel
```csharp
public partial class HsSelectedItemViewModel : BaseViewModel
{...
✅ How to create C# project in Visual Studio Code?
I want to create my first C# project in Visual Studio Code (because JetBrains IDE costs money), and I don't understand how to create and run projects in VS Code.
And yes I did install the dev kit....
c#?¥ beginnee
i meed to make a gameboard for myg ame, jtll be 115x15 spaces andnim guessing imm have to make thisva rect, but how woudl i make rhe gamevkard? a 2D array or are tbere otber ways? also i wwant to make the textures for the grid (all 15c15) of them dit into the recrangel how would i do that
User Secrets in Blazor Web Assembly
I have a Blazor Web Assembly app that can connect to a production API on the web or a development API on the local machine. The Program.cs file looks like this:
...
builder.Services.AddHttpClient<IClient, Client>(x => new Client("https://www.productionapi.com", x));
//builder.Services.AddHttpClient<IClient, Client>(x => new Client("https://localhost:1234", x));
builder.Services.AddHttpClient<IClient, Client>(x => new Client("https://www.productionapi.com", x));
//builder.Services.AddHttpClient<IClient, Client>(x => new Client("https://localhost:1234", x));
EFCore - When to save changes
I have an application that uses EFCore.
In this application, I have a method that gets some values from the database, and may or may not change them based on some conditions.
How should I handle the saving of changes in this scenario?
I've thought of a few solutions:...
✅ Azure Key vault - what is considered a transaction?
Hello,
I am using Azure vault to load configuration values, just like from
appsettings
. What happens if I have 10 secrets in the vault, each needed by different services. Will .NET load them in one transaction, or is it done individually one by one?
The package is from Microsoft: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.Configuration.Secrets...