Hello @Abdelmoneim Farug Abdelmoneim Mohammed ,
Welcome to Microsoft Q&A forum.
I tested locally, it seems that I got the same/similar issue.
I did see the same error in VS Output window(CS0234). The error code indicates that this is a compile error, as you didn’t even build the project, you just create a project, you shouldn’t get this compile error.
When you create a project, some files and packages are preparing/loading. VS checks and detects if necessary packages can be found(prepared/loaded) for the project to use, so you might see the error in the Output window.
Normally, if you wait for seconds, this process will finish, and the errors will disappear. If the errors persist, kindly try following:
- Right-click your solution > click Restore NuGet Packages.
- Right-click your project > Unload Project > right-click it again > Reload Project.
- Try to build/rebuild the project(click Build > Build Solution/Rebuild Solution).
- Try to reinstall the Azure development workload(open VS Installer > Modify > Workloads).
- Repair Visual Studio(open VS Installer > More > Repair).
Please don’t hesitate to let us know if it works.
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.