Unable to run project , "RunCommand" not defined

3 ヶ月 前
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
3 ヶ月 前
Are you using Visual Studio 2022 - what version ?
3 ヶ月 前
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
3 ヶ月 前
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.
3 ヶ月 前
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.