2.Download a new setup file from here: Downloads, put it into a new clean folder, reboot your machine, run it as administrator, wait for VS finishes installing. 3.Launch VS and keep the default settings then check if the same error appears. If the same error appears, please open VS Developer Command Prompt, run Besides, if it’s possible, I may suggest you try to install and use VS 2019 just as a temporarily workaround. Sincerely, Tianyu If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. While trying to resolve the error that occurred during compilation, I applied the solution suggestions I found on the internet, but I couldn’t completely fix the issue. Therefore, I wanted to share this post to assist others who may encounter the same error. When I started the compilation such an error message appeared on the screen. Firstly, go to Tools -> NuGet Package Manager -> Package Manager Console. In the Package Manager Console that opens, type the commands that appear in the screenshot respectively. dotnet restore dotnet build After doing that carefully, and compiling your project, it should run without any errors. By the way, in the same header file the variables in the string type have been defined before but they are OK. It is interesting because the error only occurs when I try to add new variable in "string" type.
2023-11-21T10:39:29.4233333+00:00 At this point I suggest you open a case with Microsoft through Visual Studio's feedback mechanism to report a problem. Thank you @RLWA32 . Microsoft Visual Studio's feedback mechanism can be slow for us to solve it. Do you know of any contact at Microsoft who I can forward this problem directly? @Anna Xiu-MSFT |