Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions _data/new-data/install/windows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ latest-release:
winget:
pre-code-text: |
Install Swift via the Windows Package Manager (also known as WinGet).
headline: WinGet
headline: 1. Install Swift via WinGet
after-code-text: |
First, install Windows platform dependencies:
<pre><code>winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64"</code></pre>
Expand All @@ -15,11 +15,27 @@ latest-release:
copy: "Additional details included in Instructions"
vscode:
pre-code-text: Visual Studio Code is a cross-platform and extensible editor that supports Swift through the Swift extension, which provides intelligent editor functionality as well as debugging and test support.
headline: Visual Studio Code
headline: 2. Select an Editor <br><br> Visual Studio Code
links:
- href: 'https://marketplace.visualstudio.com/items?itemName=swiftlang.swift-vscode'
copy: 'Install Swift extension'
- href: 'https://code.visualstudio.com/docs/languages/swift'
copy: 'Documentation'
- href: "https://www.swift.org/tools/#editors"
copy: "Other Editors"
build-a-package:
pre-code-text: "Let’s write a small application with your new Swift development environment."
headline: 3. Build a Command-line Tool
after-code-text: |
Create a directory:
<pre><code>mkdir MyCLI</code></pre>
Change the directory:
<pre><code>cd MyCLI</code></pre>
Create a new project:
<pre><code>swift package init --name MyCLI --type executable</code></pre>
Run the program with
<pre><code>swift run MyCLI</code></pre>
You can continue to expand the program with additional features. Check out the getting started guide for command line tools.
links:
- href: 'https://www.swift.org/getting-started/cli-swiftpm/'
copy: 'Build a Command-line Tool Guide'
5 changes: 5 additions & 0 deletions install/windows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ title: Install Swift - Windows
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.vscode%}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
</div>
</div>
<h2>Alternative install options</h2>
<div class="releases-grid">
<div class="release-box section">
Expand Down