I am using Visual Studio 2019 to create a new Core RazorPage application. I need to run the following commands inside my WWWRoot folder
npm install
npm run build
I tried to add the following commands inside my pre-build script
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="npm i $(ProjectDir)wwwroot" />
</Target>
but nothing happen and i am getting the folowing warning
npm WARN saveError ENOENT: no such file or directory, open 'E:\Dev\package.json'
it seems that it completely ignores the wwwroot in the path