question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pre/Post restore script does not run

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
dlebedynskyicommented, Jun 9, 2016

@piotrpMSFT how about documenting that for RC2? cause right now docs are misleading and project.json do has those in schema

0reactions
guardrexcommented, Jun 24, 2016

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found