mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Remove "dotnet restore" post-action from templates for consistency with stock Web templates
This commit is contained in:
@@ -206,23 +206,10 @@ function buildDotNetNewNuGetPackage(packageId: string) {
|
|||||||
HostIdentifier: {
|
HostIdentifier: {
|
||||||
type: 'bind',
|
type: 'bind',
|
||||||
binding: 'HostIdentifier'
|
binding: 'HostIdentifier'
|
||||||
},
|
|
||||||
skipRestore: {
|
|
||||||
type: 'parameter',
|
|
||||||
datatype: 'bool',
|
|
||||||
description: 'If specified, skips the automatic restore of packages on project creation.',
|
|
||||||
defaultValue: 'false'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tags: { language: 'C#', type: 'project' },
|
tags: { language: 'C#', type: 'project' },
|
||||||
postActions: [
|
postActions: [
|
||||||
{
|
|
||||||
condition: '(!skipRestore)',
|
|
||||||
description: 'Restores NuGet packages required by this project.',
|
|
||||||
manualInstructions: [{ text: 'Run \'dotnet restore\'' }],
|
|
||||||
actionId: '210D431B-A78B-4D2F-B762-4ED3E3EA9025',
|
|
||||||
continueOnError: true
|
|
||||||
},
|
|
||||||
/*
|
/*
|
||||||
// Currently it doesn't appear to be possible to run `npm install` from a
|
// Currently it doesn't appear to be possible to run `npm install` from a
|
||||||
// postAction, due to https://github.com/dotnet/templating/issues/849
|
// postAction, due to https://github.com/dotnet/templating/issues/849
|
||||||
@@ -258,10 +245,6 @@ function buildDotNetNewNuGetPackage(packageId: string) {
|
|||||||
},
|
},
|
||||||
Framework: {
|
Framework: {
|
||||||
longName: 'framework'
|
longName: 'framework'
|
||||||
},
|
|
||||||
skipRestore: {
|
|
||||||
longName: 'no-restore',
|
|
||||||
shortName: ''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, null, 2));
|
}, null, 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user