Unable to run project , "RunCommand" not defined

Hace 2 meses
I am Upgrading NopCommerce 3.9 to version 4.6,
after reaching to 4.6, when I run the project in Visual Studio , error message showing "Unable to run your project. The 'RunCommand' property is not defined"

any help would be much appreciated



https://i.postimg.cc/ncyd65xr/Screenshot-2024-01-15-155206.png


Many thanks
Hace 2 meses
Are you using Visual Studio 2022 - what version ?
Hace 2 meses
Hi Yidna

Thanks for your response, Yes I am using Visual Studio 2022, one reason, in any other lower version of (VS2019 ,VS2017) VS,  all projects of Nop v 4.6 would not open.

Thanks
Hace 2 meses
That's odd...
Be sure you've got latest version of Visual Studio 2022.
Close Visual Studio and reopen.
Make sure the Web project is selected as the Startup Project.
Rebuild the Solution.
Hace 2 meses
It seems like the error you're encountering is related to the 'RunCommand' property not being defined.

Open your NopCommerce project file (.csproj) in a text editor.
Clean and rebuild your solution ( Build > Clean Solution, then Build Solution).
Close and reopen Visual Studio.
Restart your computer.