Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Add a CLI flag to have dnu perform a restore but suppress the execution of any scripts defined in project.json #1874

Closed
DamianEdwards opened this issue May 14, 2015 · 3 comments

Comments

@DamianEdwards
Copy link
Member

Add a CLI argument to have dnu perform a restore but suppress the execution of any scripts defined in project.json.
e,g,

dnu restore --no-scripts

This will need to be used by the VS project system to suppress execution of scripts when doing restores in VS.

@muratg
Copy link
Contributor

muratg commented May 14, 2015

@ChengTian We'll need to do this in soon, so that WTE can start using it and testing with it.

@ChengTian
Copy link
Contributor

We can finish this quickly because @davidfowl already added an internal flag for it. I can just expose this to external users:
https://github.com/aspnet/dnx/blob/dev/src/Microsoft.Framework.PackageManager/Publish/PublishProject.cs#L416

I'll follow the @davidfowl 's option name and make it dnu restore --skip-restore-events

@muratg
Copy link
Contributor

muratg commented May 15, 2015

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants