<tfoot id='JNFPr'></tfoot>
  1. <small id='JNFPr'></small><noframes id='JNFPr'>

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

        <bdo id='JNFPr'></bdo><ul id='JNFPr'></ul>
    1. <legend id='JNFPr'><style id='JNFPr'><dir id='JNFPr'><q id='JNFPr'></q></dir></style></legend>

      如何在 Team Foundation Server 2015 中启用 C# 7 构建?

      How do I enable C# 7 builds in Team Foundation Server 2015?(如何在 Team Foundation Server 2015 中启用 C# 7 构建?)

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

        <tfoot id='lSc4z'></tfoot>

        <legend id='lSc4z'><style id='lSc4z'><dir id='lSc4z'><q id='lSc4z'></q></dir></style></legend>
          <bdo id='lSc4z'></bdo><ul id='lSc4z'></ul>

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

                本文介绍了如何在 Team Foundation Server 2015 中启用 C# 7 构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我们在本地安装了 Team Foundation Server (TFS) 2015.我们希望使用 Visual Studio 2017 来利用最新的 C# 语言功能.我们还没有准备好升级到 TFS 2017.允许在 TFS 2015 中构建最新的 C# 语言功能需要哪些步骤?

                解决方案

                我没有完全按照这些步骤进行,但根据我所学到的,我认为它们会起作用:

                1. 安装 Visual Studio 2017 构建工具XAML 构建配置服务器
                2. 将这些行添加到 TFSBuildServiceHost.exe.config 文件中:

                 <configSections><section name="msbuildToolsets" type="Microsoft.Build.Evaluation.ToolsetConfigurationSection, Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" requirePermission="false"/></configSections><msbuild 工具集><工具集工具版本="15.0"><property name="MSBuildToolsPath" value="C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0Bin"/></工具集><工具集工具版本="最新"><property name="MSBuildToolsPath" value="C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0Bin"/></工具集></msbuildToolsets>

                <块引用>

                C:Program FilesMicrosoft Team Foundation Server14.0ToolsTFSBuildServiceHost.exe.config

                (如果没有这个,我永远不会弄明白发布.谢谢jonesy2488!)

                1. 重新启动 XAML 构建配置服务.
                2. 更改 XAML 构建过程模板以包含 ToolVersion="15.0" 参数:

                <mtba:RunMSBuild DisplayName="Run MSBuild" OutputLocation="[OutputLocation]" CleanBuild="[CleanBuild]" CommandLineArguments="[String.Format(&quot;/p:SkipInvalidConfigurations=true {0}&quot;, AdvancedBuildSettings.GetValue(Of String)(&quot;MSBuildArguments&quot;, String.Empty))]" ConfigurationsToBuild="[ConfigurationsToBuild]" ProjectsToBuild="[ProjectsToBuild]" ToolVersion="15.0" ToolPlatform="[AdvancedBuildSettings.GetValue(Of String)(&quot;MSBuildPlatform&quot;, &quot;Auto&quot;)]" RunCodeAnalysis="[AdvancedBuildSettings.GetValue(Of String)(&quot;RunCodeAnalysis&quot;, &quot;AsConfigured&quot;)]"/>

                We have Team Foundation Server (TFS) 2015 installed on-premises. We would like to use Visual Studio 2017 to take advantage of the latest C# language features. We are not ready to upgrade to TFS 2017. What are the steps required to allow the latest C# language features to build in TFS 2015?

                解决方案

                I didn't follow these steps exactly, but based on what I have learned, I think they would have worked:

                1. Install Visual Studio 2017 Build Tools on the XAML Build Configuration server
                2. Add these lines to the TFSBuildServiceHost.exe.config file:

                  <configSections>
                    <section name="msbuildToolsets" type="Microsoft.Build.Evaluation.ToolsetConfigurationSection, Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" requirePermission="false" />
                  </configSections>
                  <msbuildToolsets>
                    <toolset toolsVersion="15.0">
                      <property name="MSBuildToolsPath" value="C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0Bin" />
                    </toolset>
                    <toolset toolsVersion="latest">
                      <property name="MSBuildToolsPath" value="C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0Bin" />
                    </toolset>
                  </msbuildToolsets>
                

                C:Program FilesMicrosoft Team Foundation Server 14.0ToolsTFSBuildServiceHost.exe.config

                (I never would have figure that out without this post. Thank you jonesy2488!)

                1. Restart the XAML Build Configuration service.
                2. Change the XAML Build Process Template to include the ToolVersion="15.0" parameter:

                <mtba:RunMSBuild DisplayName="Run MSBuild" OutputLocation="[OutputLocation]" CleanBuild="[CleanBuild]" CommandLineArguments="[String.Format(&quot;/p:SkipInvalidConfigurations=true {0}&quot;, AdvancedBuildSettings.GetValue(Of String)(&quot;MSBuildArguments&quot;, String.Empty))]" ConfigurationsToBuild="[ConfigurationsToBuild]" ProjectsToBuild="[ProjectsToBuild]" ToolVersion="15.0" ToolPlatform="[AdvancedBuildSettings.GetValue(Of String)(&quot;MSBuildPlatform&quot;, &quot;Auto&quot;)]" RunCodeAnalysis="[AdvancedBuildSettings.GetValue(Of String)(&quot;RunCodeAnalysis&quot;, &quot;AsConfigured&quot;)]" />
                

                这篇关于如何在 Team Foundation Server 2015 中启用 C# 7 构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)

                  <tbody id='TzAZo'></tbody>

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

                • <i id='TzAZo'><tr id='TzAZo'><dt id='TzAZo'><q id='TzAZo'><span id='TzAZo'><b id='TzAZo'><form id='TzAZo'><ins id='TzAZo'></ins><ul id='TzAZo'></ul><sub id='TzAZo'></sub></form><legend id='TzAZo'></legend><bdo id='TzAZo'><pre id='TzAZo'><center id='TzAZo'></center></pre></bdo></b><th id='TzAZo'></th></span></q></dt></tr></i><div id='TzAZo'><tfoot id='TzAZo'></tfoot><dl id='TzAZo'><fieldset id='TzAZo'></fieldset></dl></div>
                  <tfoot id='TzAZo'></tfoot>

                      • <bdo id='TzAZo'></bdo><ul id='TzAZo'></ul>
                        <legend id='TzAZo'><style id='TzAZo'><dir id='TzAZo'><q id='TzAZo'></q></dir></style></legend>