Skip to content

Commit

Permalink
feat: Add automatic restore after dotnet new
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Nov 24, 2021
1 parent 11d4b56 commit 848ebcc
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@
"dataType": "bool",
"defaultValue": "false",
"description": "Adds the Visual Studio Code Debugging support files for WebAssembly"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
}
},
"primaryOutputs": [
Expand Down Expand Up @@ -153,6 +159,19 @@
"path": "UnoQuickStart.Skia.Linux.FrameBuffer\\UnoQuickStart.Skia.Linux.FrameBuffer.csproj"
}
],
"postActions": [
{
"condition": "(!skipRestore)",
"description": "Restore NuGet packages required by this project",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
],
"sources": [
{
"modifiers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"B445DF73-AC9E-4276-9FBA-7CB5AD5D2518",
"3EA9E612-E717-4E55-9034-DE653429FEFD", // WPF
"3EA9E612-E717-4E55-9034-C415CD62AF9A", // UWP
"2B1FDFB6-C93C-4CA1-A6AB-528C4B3654B9" // UWP
"2B1FDFB6-C93C-4CA1-A6AB-528C4B3654B9" // UWP
],
"symbols": {
"guid1": {
Expand Down Expand Up @@ -136,6 +136,12 @@
"dataType": "bool",
"defaultValue": "false",
"description": "Adds the Visual Studio Code Debugging support files for WebAssembly"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
}
},
"primaryOutputs": [
Expand Down Expand Up @@ -219,5 +225,18 @@
}
]
}
],
"postActions": [
{
"condition": "(!skipRestore)",
"description": "Restore NuGet packages required by this project",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@
"dataType": "bool",
"defaultValue": "false",
"description": "Adds the Visual Studio Code Debugging support files for WebAssembly"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
}
},
"primaryOutputs": [
Expand Down Expand Up @@ -251,5 +257,18 @@
}
]
}
],
"postActions": [
{
"condition": "(!skipRestore)",
"description": "Restore NuGet packages required by this project",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@
"dataType": "bool",
"defaultValue": "false",
"description": "Adds the Visual Studio Code Debugging support files for WebAssembly"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
}
},
"primaryOutputs": [
Expand Down Expand Up @@ -253,5 +259,18 @@
}
]
}
],
"postActions": [
{
"condition": "(!skipRestore)",
"description": "Restore NuGet packages required by this project",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}

0 comments on commit 848ebcc

Please sign in to comment.