HI All
We are migrating our Sitecore project to VS2019 and while using gulp publish I am facing an error with error MSB4057: The target "Restore" does not exist in the project.
So I am unable to proceed further.
Please any one help me.
Error :
D:\****\*****.csproj : error MSB4057: The target "Restore" does not exist in the project.
[01:56:10] MSBuild failed with code 1!
[01:56:10] 'build-solution' errored after 1.33 s
[01:56:10] Error: MSBuild failed with code 1!
at ChildProcess.<anonymous> (D:\BN-G\r***\node_modules\gulp-msbuild\lib\msbuild-runner.js:97:25)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.EventEmitter.emit (domain.js:506:15)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at Process.callbackTrampoline (internal/async_hooks.js:120:14)
[01:56:10] '_Publish-All-Projects' errored after 19 s
What I have tried:
we have changed all the Msbuilder config changes by adding 2019
return path.join('C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/', 'MSBuild', 'Current', 'Bin', 'amd64', 'MSBuild.exe');
.
It working for the indudvally but clicking publish all project it shows error .