vsmac-cli
0.2.0
dotnet tool install --global vsmac-cli --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local vsmac-cli --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=vsmac-cli&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package vsmac-cli --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
vsmac-cli
is a .NET global tool that lets you query and interact with installed versions of Visual Studio for Mac from the CLI.
For example, you can
- invoke the MSBuild bundled within Visual Studio for Mac using
vsmac msbuild myapp.sln
- open a file with Visual Studio for Mac using
vsmac open myfile.cs
- print the path to the Visual Studio for Mac app bundle using
vsmac path
(perhaps for use in other tools) - manage Visual Studio for Mac extensions from the CLI using
vsmac vstool setup
If you have multiple copies of Visual Studio for Mac installed, it will use the latest installed stable version by default. You can choose to use the latest installed preview using -p
, for example vsmac -p open myfile.cs
, or specify an explicit version using -v
, for example vsmac -v 7.8 msbuild mysln.sln
.
Full usage:
Usage:
vsmac [options] [command]
Options:
-p, --preview Use preview instance of Visual Studio
-v <v> Use specific version of Visual Studio
--version Show version information
-?, -h, --help Show help and usage information
Commands:
list List available Visual Studio instances
msbuild Invoke the MSBuild bundled with Visual Studio
vstool Invoke the Visual Studio tool runner
path Print path to Visual Studio app bundle
version Print version of Visual Studio
open Opens the specified files with Visual Studio
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.