Pre/Post restore script does not run
See original GitHub issueSteps to reproduce
have a project.json file with
"scripts": {
"postrestore": ["npm install"],
run dotnet restore
Expected behavior
npm install
to run and node packages are restored. As it was before in RC1.
Actual behavior
npm install
does not run no matter if you use prerestore
, postrestore
, npm install
as an [] or not.
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Pre/Post restore script does not run · Issue #6350 · dotnet/sdk
Steps to reproduce have a project.json file with "scripts": { "postrestore": ["npm install"], run dotnet restore Expected behavior npm ...
Read more >Advanced Restore Options (Pre/Post)
Establish pre or post processes for restore jobs, and the account that has permissions to run these processes. Pre Recovery Command.
Read more >Acronis Backup: Troubleshooting Pre/Post Commands Issues
Make sure that your script exists and is working without Acronis: run it explicitly (in CMD, PowerShell, or bash shell), and check the...
Read more >Linux post restore script : restarting a service
I'm guessing I need to run that command from /sbin/bash or just use the full path to systemctl. Ideally I'd like the result...
Read more >Pre-Post commands help please - VOX
Hi all, I am stuck on pre and post-command setup on Backup Exec 2010 R3. Basically we are replicating some servers using Double-Take,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@piotrpMSFT how about documenting that for RC2? cause right now docs are misleading and project.json do has those in schema
@dlebedynskyi I’m surprised on this one.
I guess a workaround in my case is to put a Gulp watch on the
project2.json
test file so that when I mod the file, my console app is called to run, which will then immediately re-create the.csproj
file.At least I have a workaround, but I am a bit surprised that getting all of the script calls working for RTM wasn’t a higher priority.