new command to update Nez

This commit is contained in:
Mike 2019-02-19 23:23:42 -08:00
parent cabcc26e0e
commit 8c4c9d34ad
2 changed files with 23 additions and 0 deletions

22
.vscode/tasks.json vendored
View File

@ -8,6 +8,28 @@
"group": "build",
"problemMatcher": "$msCompile"
},
{
// this does a bunch of stuff:
// - update submodules to lastest (fetch latest Nez version)
// - restore Nez.sln (nuget restore to get latest packages)
// - build Nez.sln (build to get latest Pipeline DLLs)
// - restore Nez.FNA.sln (nuget restore Nez.FNA)
// - build Nez.FNA.sln (build Nez.FNA)
"label": "Update, Restore and Rebuild Nez",
"type": "shell",
"command": "git submodule foreach --recursive git pull ; msbuild Nez/Nez.sln /t:restore; msbuild Nez/Nez.sln ; msbuild Nez/Nez.FNA.sln /t:restore ; msbuild Nez/Nez.FNA.sln",
"group": "build",
"problemMatcher": "$msCompile",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
},
},
{
"label": "Clean Project",

View File

@ -33,6 +33,7 @@ If you want to see the output of `Debug.*` calls in the VS Code Debug Console, y
## Build Tasks ##
- **Restore Project:** Restores the .csproj. Run it again whenever you change the .csproj file.
- **Restore and Rebuild Nez:** Fetches the latest version of Nez from GitHub, restores and rebuilds Nez
- **Build (Debug/Release):** Builds the project with the specified configuration but does not run it. This also runs MGCB.exe, copies over everything in the `Content` and `CompiledContent` subdirectories and the fnalibs.
- **Build and Run (Debug/Release):** Builds and runs the project. On MacOS, it runs the output with Mono. On Windows, it runs the output with .NET Framework.
- **Clean Project:** Cleans the output directories and all their subdirectories.