TheBrowserCompany.SwiftWinRT 0.5.0

Requires NuGet 2.5 or higher.

dotnet add package TheBrowserCompany.SwiftWinRT --version 0.5.0                
NuGet\Install-Package TheBrowserCompany.SwiftWinRT -Version 0.5.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TheBrowserCompany.SwiftWinRT" Version="0.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TheBrowserCompany.SwiftWinRT --version 0.5.0                
#r "nuget: TheBrowserCompany.SwiftWinRT, 0.5.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TheBrowserCompany.SwiftWinRT as a Cake Addin
#addin nuget:?package=TheBrowserCompany.SwiftWinRT&version=0.5.0

// Install TheBrowserCompany.SwiftWinRT as a Cake Tool
#tool nuget:?package=TheBrowserCompany.SwiftWinRT&version=0.5.0                

Swift/WinRT

The TheBrowserCompany.SwiftWinRT NuGet package automatically generates swift code, enabling you consume Windows Runtime classes.

The Swift/WinRT package is a tool only package. The tool requires the user to gather the appropriate inputs.

Usage

Below is a table of the appropriate parameters to pass to swiftwinrt.exe

Name Description
-input Input winmd file for generating bindings from
-include Types/Namespaces to generate bindings for.
-exclude Types/Namespaces to exclude
-reference WinMD file for reference or Windows SDK version
-output Output location to place generated bindings
@<path.rsp> path to .rsp file with all parameters

Swift/WinRT is flexible on the bindings that it will generate. No matter the combination of parameters you provide, it will ensure you have code that will compile. Note that specific excludes will always override an include. It is recommended to use a response file to pass parameters to Swift/WinRT. Here is an example of what a response file may look like:

-include MyComponent
-include Windows.Foundation.Collections
-input C:/dev/MyComponent/build/MyComponent.winmd
-output C:/dev/MyComponent/Sources/MyComponent
-reference 10.0.17763.0

You could then invoke Swift/WinRT like:

swiftwinrt.exe @c:/dev/MyComponent/MyComponent.rsp

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.0 270 2/14/2024
0.2.0 505 10/30/2023