久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <legend id='7qTzZ'><style id='7qTzZ'><dir id='7qTzZ'><q id='7qTzZ'></q></dir></style></legend>

    2. <small id='7qTzZ'></small><noframes id='7qTzZ'>

      <tfoot id='7qTzZ'></tfoot>
      <i id='7qTzZ'><tr id='7qTzZ'><dt id='7qTzZ'><q id='7qTzZ'><span id='7qTzZ'><b id='7qTzZ'><form id='7qTzZ'><ins id='7qTzZ'></ins><ul id='7qTzZ'></ul><sub id='7qTzZ'></sub></form><legend id='7qTzZ'></legend><bdo id='7qTzZ'><pre id='7qTzZ'><center id='7qTzZ'></center></pre></bdo></b><th id='7qTzZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7qTzZ'><tfoot id='7qTzZ'></tfoot><dl id='7qTzZ'><fieldset id='7qTzZ'></fieldset></dl></div>
          <bdo id='7qTzZ'></bdo><ul id='7qTzZ'></ul>

        對多個項目和配置有效地使用 Visual Studio 項目屬

        Using Visual Studio project properties effectively for multiple projects and configurations(對多個項目和配置有效地使用 Visual Studio 項目屬性)

            • <small id='xekj1'></small><noframes id='xekj1'>

            • <tfoot id='xekj1'></tfoot>
              <i id='xekj1'><tr id='xekj1'><dt id='xekj1'><q id='xekj1'><span id='xekj1'><b id='xekj1'><form id='xekj1'><ins id='xekj1'></ins><ul id='xekj1'></ul><sub id='xekj1'></sub></form><legend id='xekj1'></legend><bdo id='xekj1'><pre id='xekj1'><center id='xekj1'></center></pre></bdo></b><th id='xekj1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xekj1'><tfoot id='xekj1'></tfoot><dl id='xekj1'><fieldset id='xekj1'></fieldset></dl></div>
                <tbody id='xekj1'></tbody>
              <legend id='xekj1'><style id='xekj1'><dir id='xekj1'><q id='xekj1'></q></dir></style></legend>

                  <bdo id='xekj1'></bdo><ul id='xekj1'></ul>
                  本文介紹了對多個項目和配置有效地使用 Visual Studio 項目屬性的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我一直使用 Visual Studios 內置的 GUI 支持來配置我的項目,經常使用屬性表,以便多個項目使用一個公共集.

                  I have always used Visual Studios built in GUI support for configuring my projects, often using property sheets so that several projects will use a common set.

                  我對此的主要抱怨之一是管理多個項目、配置和平臺.如果您只是使用主 GUI 完成所有操作(右鍵單擊項目 -> 屬性),它很快就會變得一團糟,難以維護并且容易出現錯誤(例如無法正確定義某些宏,或使用錯誤的運行時庫等).處理不同的人將依賴庫放在不同地方的事實(例如我的都住在C:Libs[C,C++][lib-name]")然后經常管理這些庫的不同版本不同的(發布、調試、x86、x64 等)也是一個大問題,因為它使在新系統上設置它的時間大大復雜化,然后存在版本控制和保持每個人的路徑分開的問題..

                  One of my main gripes with this is managing multiple projects, configurations and platforms. If you just do everything with the main GUI (right click the project -> properties) it quickly becomes a mess, difficult to maintain and prone to bugs (like failing to correctly define some macro, or using the wrong runtime library, etc). Dealing with the fact that different people put there dependency libraries in different places (eg mine all live in "C:Libs[C,C++][lib-name]") and then often manage the different versions of those libraries differently as well (release, debug, x86, x64, etc) is also a large problem since it vastly complicates the time to set it up on a new system, and then there is issues with version-control and keeping everyone's paths separate...

                  屬性表讓這更好一點,但我不能讓一張表對不同的配置和平臺有單獨的設置(下拉框變灰),導致我有很多表,如果以正確的順序繼承,可以做什么我想要(x86"、x64"、debug"、release"、common"、directories"(通過定義像 BoostX86LibDir 這樣的用戶宏來處理前面提到的依賴問題),如果繼承錯誤順序(例如x64"和調試"之前的通用")會導致諸如嘗試鏈接不正確的庫版本或錯誤地命名輸出之類的問題...

                  Property sheets make this a bit better, but I cant have one sheet have separate settings for different configurations and platforms (the drop down boxes a greyed out), resulting in me having many sheets which if inherited in the correct order do what I want ("x86", "x64", "debug", "release", "common", "directories" (deals with the previously mentioned dependency issue by defining user macros like BoostX86LibDir), etc) and if inherited in the wrong order (eg "common" before "x64" and "debug") lead to issues like trying to link an incorrect library version, or incorrectly naming the output...

                  我想要的是一種處理所有這些分散的依賴項并設置一組規則"的方法,這些規則被解決方案中的所有項目使用,例如將輸出庫命名為mylib-[vc90,vc100]-[x86,x64][-d].lib",無需為每個單獨的項目、配置和平臺組合做所有這些,然后讓它們全部正確同步.

                  What I want is a way of dealing with all these scattered dependencies and setting up a set of "rules" which are used by all my projects in the solution, like naming an output library as "mylib-[vc90,vc100]-[x86,x64][-d].lib", without having to do all this for each individual project, configuration and platform combination, and then keep them all correctly in sync.

                  我知道轉移到完全不同的系統,如創建所需文件的 CMake,但是這會使其他地方的事情復雜化,因為即使是簡單的任務,如向項目添加新文件,然后需要在其他地方進行額外的更改,這不是我對兩者都非常滿意,除非有一些與 VS2010 集成可以跟蹤這些類型的變化.

                  I am aware of moving to entirely different systems like CMake that create the needed files, however this then complicates things elsewhere by making it so even simple tasks like adding a new file to the project then requires additional changes elsewhere, which is not something I am entirely happy with either, unless there is some with VS2010 integration which can keep track of these sorts of changes.

                  推薦答案

                  我剛剛發現了一些我認為不可能的東西(它不是由 GUI 公開的),這有助于使屬性表更有用.項目屬性文件中許多標簽的條件"屬性,它也可以在 .props 文件中使用!

                  I just found out somthing I didnt think was possible (it is not exposed by the GUI) that helps make property sheet far more useful. The "Condition" attribute of many of the tags in the project property files and it can be used in the .props files as well!

                  我只是將以下內容放在一起作為測試,效果很好,并完成了 5 個(通用、x64、x86、調試、發布)單獨屬性表的任務!

                  I just put together the following as a test and it worked great and did the task of 5 (common,x64,x86,debug,release) separate property sheets!

                  <?xml version="1.0" encoding="utf-8"?>
                  <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
                    <PropertyGroup Label="UserMacros">
                      <!--debug suffix-->
                      <DebugSuffix Condition="'$(Configuration)'=='Debug'">-d</DebugSuffix>
                      <DebugSuffix Condition="'$(Configuration)'!='Debug'"></DebugSuffix>
                      <!--platform-->
                      <ShortPlatform Condition="'$(Platform)' == 'Win32'">x86</ShortPlatform>
                      <ShortPlatform Condition="'$(Platform)' == 'x64'">x64</ShortPlatform>
                      <!--toolset-->
                      <Toolset Condition="'$(PlatformToolset)' == 'v90'">vc90</Toolset>
                      <Toolset Condition="'$(PlatformToolset)' == 'v100'">vc100</Toolset>
                    </PropertyGroup>
                    <!--target-->
                    <PropertyGroup>
                      <TargetName>$(ProjectName)-$(Toolset)-$(ShortPlatform)$(DebugSuffix)</TargetName>
                    </PropertyGroup>
                  </Project>
                  

                  唯一的問題是屬性 GUI 無法處理它,使用上述屬性表的項目只會報告目標的默認繼承值,例如$(ProjectName)".

                  Only issue is the properties GUI cant handle it, a project that uses the above property sheet just reports default inherited values like "$(ProjectName)" for the target.

                  這篇關于對多個項目和配置有效地使用 Visual Studio 項目屬性的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Why do two functions have the same address?(為什么兩個函數的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復制構造的?)
                  mixing templates with polymorphism(混合模板與多態性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應該使用關鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標準庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數模板,而 clang 不能)
                    • <legend id='nNpNy'><style id='nNpNy'><dir id='nNpNy'><q id='nNpNy'></q></dir></style></legend>
                        <bdo id='nNpNy'></bdo><ul id='nNpNy'></ul>
                      • <tfoot id='nNpNy'></tfoot>

                              <tbody id='nNpNy'></tbody>
                            <i id='nNpNy'><tr id='nNpNy'><dt id='nNpNy'><q id='nNpNy'><span id='nNpNy'><b id='nNpNy'><form id='nNpNy'><ins id='nNpNy'></ins><ul id='nNpNy'></ul><sub id='nNpNy'></sub></form><legend id='nNpNy'></legend><bdo id='nNpNy'><pre id='nNpNy'><center id='nNpNy'></center></pre></bdo></b><th id='nNpNy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='nNpNy'><tfoot id='nNpNy'></tfoot><dl id='nNpNy'><fieldset id='nNpNy'></fieldset></dl></div>

                            <small id='nNpNy'></small><noframes id='nNpNy'>

                            主站蜘蛛池模板: 九九久久这里只有精品 | 国产免国产免费 | 在线免费观看色 | 亚洲精品自拍视频 | 亚洲视频在线看 | 九九精品在线 | 日本成人中文字幕在线观看 | 日韩精品免费一区 | 99国产精品久久久久老师 | 亚洲欧美日韩精品久久亚洲区 | 成人精品国产一区二区4080 | 亚洲欧美日韩在线一区二区 | 久久久久久久久99 | 日韩一级不卡 | 国产www成人 | 一区二区三区四区不卡视频 | 午夜成人免费视频 | 欧美电影免费观看高清 | 亚洲二区在线 | 精品一区视频 | av免费网站在线观看 | 91亚洲国产成人久久精品网站 | 欧美在线日韩 | 亚洲一区二区在线播放 | 我要看一级片 | 久久久成人精品 | 国产精品久久久久一区二区三区 | 成人深夜福利在线观看 | 日韩免费高清视频 | 国产精品国产三级国产aⅴ无密码 | 日韩欧美成人精品 | 亚洲欧洲日本国产 | 中文字幕免费观看 | 91资源在线 | 自拍偷拍亚洲视频 | 性高湖久久久久久久久3小时 | 中文字幕日韩欧美 | 网络毛片 | 精品一区在线看 | 色综合天天综合网国产成人网 | 国产偷录叫床高潮录音 |