diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e27f8d5..4de816b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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", diff --git a/README.md b/README.md index 44bea4a..dc7e2c2 100644 --- a/README.md +++ b/README.md @@ -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.