Add a "dnu restore" prepare step before generating code

- This ensures the generated code project's project.lock.json is created
This commit is contained in:
Stephen Halter 2015-08-05 11:32:39 -07:00
parent 51693304c1
commit 7dd256f26e
2 changed files with 7 additions and 4 deletions

View File

@ -34,6 +34,9 @@
"allowUnsafe": true "allowUnsafe": true
}, },
"scripts": { "scripts": {
"prepare": "dnx --appbase ../Microsoft.AspNet.Server.Kestrel.GeneratedCode Microsoft.Dnx.ApplicationHost run Http/FrameHeaders.Generated.cs" "prepare": [
"dnu restore ../Microsoft.AspNet.Server.Kestrel.GeneratedCode",
"dnx --appbase ../Microsoft.AspNet.Server.Kestrel.GeneratedCode Microsoft.Dnx.ApplicationHost run Http/FrameHeaders.Generated.cs"
]
} }
} }