簡體   English   中英

Visual Studio Mac,從命令行構建?

[英]Visual Studio Mac, build from command line?

我正在考慮使用 Visual Studio 和 Xamarin 來構建跨平台應用程序,但我更喜歡使用 Sublime Text 作為我的編輯器。 目前我找不到有關 3rd 方工具與 Visual Studio 集成的任何信息。

Visual Studio 是否可以像 Xcode 那樣使用“xcodebuild”實用程序從命令行進行構建? 理想情況下,我想制作一個 shell 腳本,它可以像我在 VS 中按下構建按鈕一樣構建並返回錯誤,我可以解析並在 Sublime Text 中顯示。

任何建議都非常感謝。

我以這種方式使用位於“/Applications/Visual Studio.app/Contents/MacOS/vstool”的“vstool”:

vstool build -t:Build -c:"Release|iPhone" "MyProject.sln";

如 vstool 幫助中所述:

Visual Studio Build Tool
build [options] [build-file]
-p --project:PROJECT  Name of the project to build.
-t --target:TARGET    Name of the target: Build or Clean.
-c --configuration:CONFIGURATION  Name of the solution configuration to build.
-r --runtime:PREFIX   Prefix of the Mono runtime to build against.

Supported targets:
  Build: build the project (the default target).
  Clean: clean the project.

我們已經使用了如下命令行:msbuild / p:Configuration =“ AppStore” / p:Platform =“ iPhone” / p:IpaPackageDir = bin / iPhone / AppStore / p:BuildIpa = true /target:xxxxxxx.sln

通過Google尋找需要什么選項的doco花費了時間。 希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM