构建目标不仅可以很好地区分Debug版本和Release版本。您还可以将它们用于定位应用程序的不同环境或配置。现在,我一直喜欢为用户提供最好的应用程序性能的想法-换句话说;我想启用 虚拟机

不幸的是,当使用 Visual Studio 2019 (在编写16.5.4时)禁用了启用LLVM的选项。

在Visual Studio中显示禁用的LLVM选项-和尖叫的表情符号

问题 is under consideration by the team, and for the time being, there is no way to enable LLVM via the UI Wizard in Visual Studio. Now one way to solve this is to clone your solution on to a machine running macOS and then enabling it in Visual Studio for Mac. But under Windows, the only option is to open up the csproj file and enable LLVM manually:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- Stuff -->
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Gnabber|iPhone'">
    <!-- Add the line bellow -->
  <!-- More Stuff -->

谢谢, 维克多·加西亚·阿普里亚(Victor Garcia Aprea) 向我指出这一点,我希望这对任何遇到相同问题的人都能有所帮助。如果要检查

You can find a small sample Project with a custom build target Gnabber up on 的GitHub.