Power Community

Power Community

ERROR While Building PCF : The term ‘msbuild’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Hi All,

Issue while running : [msbuild /t:build /restore]

“The term ‘msbuild’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.”

Resolution:

If you are using Visual Studio 2019 or 2017 follow below Steps

1. Navigate to My Computer

2. Right Click on my Computer and Click Properties (or) Click Settings and Search for Environment 

rampprakash_0-1719489065305.png

3. Edit the System environment

4. Select Path

rampprakash_1-1719489140922.png

5. And Click EDIT

6. Click New

if you are using VS 2019 use below

%ProgramFiles(x86)%Microsoft Visual Studio2019CommunityMSBuildCurrentBin

if you are using VS 2017 use below

%ProgramFiles(x86)%Microsoft Visual Studio2017EnterpriseMSBuild15.0Bin

7. That’s it.

Now Close and Open the Same to make it 

msbuild /t:build /restore

If you are using VS 2022

Now Search for CMD

rampprakash_2-1719489370811.png

Directly use the Command 

msbuild /t:build /restore

to make it work.

That’s it 🙂

This post was originally published on this site

- Advertisement -spot_img

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement - Advertisement

Latest News

Maplytics Optimizes Routes and Boosts Productivity for T-GREX

T-GREX, a company founded by brothers Roberto and Matteo, brings together their 30 years of experience in the precision...

More Articles Like This

- Advertisement -spot_img