Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 5b634ee

Browse files
Remove "dotnet restore" post-action from templates for consistency with stock Web templates
1 parent 6e1fa2b commit 5b634ee

File tree

1 file changed

+0
-17
lines changed
  • templates/package-builder/src/build

1 file changed

+0
-17
lines changed

templates/package-builder/src/build/build.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -206,23 +206,10 @@ function buildDotNetNewNuGetPackage(packageId: string) {
206206
HostIdentifier: {
207207
type: 'bind',
208208
binding: 'HostIdentifier'
209-
},
210-
skipRestore: {
211-
type: 'parameter',
212-
datatype: 'bool',
213-
description: 'If specified, skips the automatic restore of packages on project creation.',
214-
defaultValue: 'false'
215209
}
216210
},
217211
tags: { language: 'C#', type: 'project' },
218212
postActions: [
219-
{
220-
condition: '(!skipRestore)',
221-
description: 'Restores NuGet packages required by this project.',
222-
manualInstructions: [{ text: 'Run \'dotnet restore\'' }],
223-
actionId: '210D431B-A78B-4D2F-B762-4ED3E3EA9025',
224-
continueOnError: true
225-
},
226213
/*
227214
// Currently it doesn't appear to be possible to run `npm install` from a
228215
// postAction, due to https://github.com/dotnet/templating/issues/849
@@ -258,10 +245,6 @@ function buildDotNetNewNuGetPackage(packageId: string) {
258245
},
259246
Framework: {
260247
longName: 'framework'
261-
},
262-
skipRestore: {
263-
longName: 'no-restore',
264-
shortName: ''
265248
}
266249
}
267250
}, null, 2));

0 commit comments

Comments
 (0)