Class VSCodePreBuild
Ensures the correct VS Code archive is present in StreamingAssets before every build (CI or local). Downloads from Microsoft's official stable channel if the archive is missing or outdated.
Runs early (callbackOrder = -100) so the archive is in place before any other pre-build steps or the actual player build.
StreamingAssets is a shared source folder, so the archive for the previously built target is still lying around in it. Everything we are not about to ship gets deleted here, otherwise the next build silently carries a 156 MB Windows VS Code zip it can never use (which is exactly what happened to the WebGL build).
public class VSCodePreBuild : IPreprocessBuildWithReport, IOrderedCallback
- Inheritance
-
objectVSCodePreBuild
- Implements
Properties
- callbackOrder
Returns a numeric value that determines the order in which the build callback is invoked.
Methods
- OnPreprocessBuild(BuildReport)
Implement this method to receive a callback before the build is started.