You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: userdocs/userdocs.docc/Articles/Features/automatic-task-creation.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,17 @@ Add tasks for common operations with your Package.
5
5
For workspaces that contain a `Package.swift` file, the Swift extension adds the following tasks:
6
6
7
7
-**Build All**: Build all targets in the Package.
8
-
-**Build Debug <Executable>**: Each executable in a Package.swift get a task for building a debug build.
9
-
-**Build Release <Executable>**: Each executable in a Package.swift get a task for building a release build.
8
+
-**Build Debug \<Executable\>**: Each executable product in a Package.swift get a task for building a debug build.
9
+
-**Build Release \<Executable\>**: Each executable product in a Package.swift get a task for building a release build.
10
10
11
11
> 💡 Tip: Tasks use workflows common to all VS Code extensions. For more information see [the VS Code documentation for tasks](https://code.visualstudio.com/docs/editor/tasks).
12
12
13
13
These tasks are available via the commands **Terminal ▸ Run Task...** and **Terminal ▸ Run Build Task...** in the command palette.
14
+
15
+
## Create tasks for library targets
16
+
17
+
By default build tasks are only automatically created for executable products. If you set the `swift.createTasksForLibraryProducts` setting to true, then additional tasks will be created:
18
+
-**Build Debug \<Library\>**: Each library product in a Package.swift get a task for building a debug build.
19
+
-**Build Release \<Library\>**: Each library product in a Package.swift get a task for building a release build.
20
+
21
+
> ⚠️ Important: Tasks will not be created for automatic library products, as you cannot specify a `--product` option for automatic products when building.
0 commit comments