Relative Content

Tag Archive for c#.netvisual-studio

Error when compiling c# code in Visual Studio Enterprise 2022

I’ve installed Microsoft Visual Code Enterprise 2022 and created a C# console app. When I’m trying to start the code, I’m getting this error: The “ResolveAppHosts” task was not given a value for the required parameter “RuntimeGraphPath”.enter image description here

dev_express_problem

hallo developers i have a big problem, i install the dev express and my children delete it , i download it again but when i setup it give me the problem
1- i can’t select more than one product (winForms)
2- i click next and save and it give the problem (
Cannot create file “D:InstallDev ExpressComponentsDevExpressUniversalTrialSetup-20240613_30- 06-24_10-07.log”. The system cannot find the path specified
)

How to create template for new files in Visual Studio 2022?

I saw in a video someone use template to quickly create Class, Interface, Struct, Enum and more when adding a new file in Visual Studio 2022. How can i set this up and create my own template? Is this an extensions or i have to create files in CommunityCommon7IDEItemTemplates folder?

Upgrading to .NET8 seems to have changed the entire structure of my project

Context:
I have a C# project that contains a platform layer consisting of 9 DLLs, several of which reference each other. Then I have a group of 20 command-line programs that use the platform layer in various ways, but don’t try to talk to each other. In other words, they are independent silos. All of these are individual sub-projects of a single solution, implemented in Visual Studio, running in VStudio 2022, based on .NET 4.8. Everything was working perfectly and building without errors.

Making a list of values, saving it and assigning values to different variables in Visual studio C#

I have a text and I am trying to go through the text line by line and split the word based on “:” and the word before it is key and after it is value. I have common keys with different value the key is “AT command” here and I want to make a list of the values and saved them likeatcommand1=value1 and so on. I don’t know how to save the atCommandValues list first and after that save the values. I need to pass them to a second form.
Here is some part of my code: