Hi @Diao Zhihang ,
Please try following suggestions:
- Does this issue appear on other newly created projects like C# console applications, C# Windows forms applications? If so, please try to disable your antivirus(If you have antivirus installed), reboot your machine and test again.
- Try to restore NuGet packages(Tools > NuGet Package Manager > Package Manager Settings > Clear All NuGet Cache. Right-click your solution > choose Restore NuGet Packages).
- Try to reinstall .NET Multi-platform App UI development workload(open VS Installer > Modify > Workloads > uncheck “.NET Multi-platform App UI development” > uninstall this workload > check it again > reinstall this workload).
Best Regards,
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.