代码之家  ›  专栏  ›  技术社区  ›  Mr. Boy

如何让visualstudio在生成期间输出一些属性值?

  •  0
  • Mr. Boy  · 技术社区  · 3 年前

    我正在解决方案范围的.props文件中设置一些自定义属性(vcpkg triplets),例如:

      <PropertyGroup Label="Globals">
        <VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-custom</VcpkgTriplet>
        <VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-custom</VcpkgTriplet>
      </PropertyGroup>
    

    0 回复  |  直到 3 年前