Skip to main content

Questions tagged [.net-6.0]

For questions about Microsoft's .NET application development framework that are specific to version 6.0+ of the framework. Use only If your question are version-specific

.net-6.0
0 votes
0 answers
19 views

WebOptimizer cache busting not working on Azure

I am using ASP.NET Core Web Optimizer. It has cache busting feature that will append a unique string to the end of script or CSS links. A sample of the appended string is like this: ....script.js?v=...
Ashutosh Gupta's user avatar
1 vote
1 answer
32 views

How to insert a custom object into an User using foreign key

I'm currently having problem with displaying a custom object property because the program doesn't seem to insert the associated value from the table with appropriate foreign key. Here are the codes ...
Trung Đặng Đức's user avatar
1 vote
1 answer
44 views

Rebuild skip all project in Visual Studio 2022

I do not understand why Visual Studio skips all the projects to do rebuild of the solution. The output console only shows that the projects were skipped. I have tried deleting the bin, obj and .vs ...
rub's user avatar
  • 13
0 votes
1 answer
33 views

How to use razor renderer in .NET 6?

In my .NET 4.8 Web API application, I take an externally received HTML formatted string and convert it to a .cshtml file using Razor Engine, then append it to my page with JavaScript. I do this using ...
Emre Ceylan's user avatar
0 votes
2 answers
82 views

Need help to replace a switch in C#

I have a console application in .NET 6 that receives one argument, and based on that, has to decide which operation will be executed. At first, I had all the operations as static methods and ...
DevSurferPTPXO's user avatar
0 votes
2 answers
43 views

How to use Enumerable.Aggregate without getting CS0411 error

There are two DTO records: public record struct DateHour(int Hour, double? Value); private record struct HourSnapshot(uint TotalSeconds, double? Value); I have another method which works with enum. I ...
Anthony Voronkov's user avatar
0 votes
0 answers
45 views

Found multiple publish output files with the same relative path. while publising ASP.NET Core 6 project

In .NET Core 6 where when publishing with Web Deploy via Visual Studio 2022, I get the following error: Error: found multiple publish output files with the same relative path: There is no issues ...
Hemanth Reddy's user avatar
0 votes
1 answer
20 views

AppKit.NsWindow error on .NetMAC OS application after migration from Xamarin.MAC

I have Xamarin.MAC native application built with C# language. Since the Xamarin support is stopped, I have to migrate it to .Net MAC OS. But I am not seeing the AppKit.Window in the .Net MAC OS. In ...
Roshil K's user avatar
  • 2,683
1 vote
1 answer
54 views

Is it possible to use ProtectedLocalStorage without regular .NET Core?

Seems like an obvious upgrade from regular localstorage, but I've only seen it used with Blazor. I'm using ASP.NET Core 6.0 MVC. Should I just put this in my program.cs? builder.Services.AddScoped<...
andreaskev's user avatar
0 votes
0 answers
47 views

ASP.NET Core 6.0 Web API : cannot context switch to another account to start an executable

I have an ASP.NET Core 6.0 Web API that runs on IIS 7. The application pool is running under an account local to the machine but not the local system, call it 'local-system-web-account'. I am trying ...
Josh's user avatar
  • 10.5k
1 vote
1 answer
43 views

Unexpected System.BadImageFormatException: Index not found That is Fixed with Restart

I have an ASP.NET Core 6 MVC web application hosted on IIS that all of a sudden started throwing the following exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of ...
Sal's user avatar
  • 5,448
-1 votes
1 answer
52 views

EntityFramework pretends to have updated a row but it doesn't

I wrote an InsertOrUpdate() method which uses my EntityFramework dbcontext and I want the method to be able to receive an object and then either insert a new row or update an existing one if it exists ...
Val's user avatar
  • 1,657
0 votes
0 answers
30 views

.Net 8 Project Reference Specify .net Version of Multi-Targeted Transitive Project Dependency

I have a .net6 sdk project that I need to upgrade to .net8 for some new functionality. It has some shared project libraries with other projects that are still .net6. Project A includes Project B which ...
lrfalslev's user avatar
0 votes
0 answers
22 views

How to Display Dictionary<string, string> Properly in Swagger UI using NSwag

I am using NSwag to generate Swagger documentation for my API. One of my API endpoints uses a Dictionary<string, string>, but in the Swagger UI, it is displayed as a generic object. Instead of a ...
Md. Mustafizur Rahman's user avatar
-1 votes
0 answers
37 views

Visual Studio Professional 2022 not loading dlls after updating it to subversion greater then 17.10.1

I am facing an issue in Visual Studio Professional 2022 (17.10.3). Actually IIS express not treated my project as an Application. Also NO Dlls were loading while running the application. No ...
FIRE's user avatar
  • 169

15 30 50 per page
1
2 3 4 5
394