• <small id='1rA8z'></small><noframes id='1rA8z'>

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

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

        我应该如何在 VS 2017 RC 中创建针对 .NET Framework 4.5.1 和 .NET Standard

        How should I create a library targetting .NET Framework 4.5.1 and .NET Standard 1.3 in VS 2017 RC?(我应该如何在 VS 2017 RC 中创建针对 .NET Framework 4.5.1 和 .NET Standard 1.3 的库?)

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

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

            • <legend id='GT1qJ'><style id='GT1qJ'><dir id='GT1qJ'><q id='GT1qJ'></q></dir></style></legend>
                <tbody id='GT1qJ'></tbody>

              <tfoot id='GT1qJ'></tfoot>
                  <bdo id='GT1qJ'></bdo><ul id='GT1qJ'></ul>
                • 本文介绍了我应该如何在 VS 2017 RC 中创建针对 .NET Framework 4.5.1 和 .NET Standard 1.3 的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  这是我第一次尝试不仅仅针对 .NET Framework 的任何东西.我似乎无法从 GUI 中做到这一点.我已经尝试过项目类型类库(便携式)"和项目类型类库(.NET 标准)".我可以将类库(便携式)"更改为以 .NET Standard 为目标,但我无法选择其他任何内容.我不确定是否应该尝试更改类库(.NET 标准)"的 .csproj 或类库(便携式)"的 project.json,我只想要最适合未来的东西.

                  This is my first time trying anything that targets more than just a .NET Framework. I can't seem to do it from the GUI. I've tried project type 'Class Library (Portable)' and project type 'Class Library (.NET Standard)'. I can change a 'Class Library (Portable)' to target .NET Standard but then I can't select anything else. I'm not sure if I should try to change the .csproj of 'Class Library (.NET Standard)' or the project.json of 'Class Library (Portable)', I just want whatever is most future-proof.

                  推荐答案

                  截至几天前,.csproj 已经被简化并且易用性得到了提高.使用最新版本的 VS 2017 RC,我通过创建一个新的类库(.NET 标准)"来创建这样一个库,它具有这个默认的 .csproj:

                  As of a few days ago the .csproj has been simplified and ease of use has improved. With the latest version of VS 2017 RC, I create such a library by creating a new 'Class Library (.NET Standard)', which has this default .csproj:

                  <Project Sdk="Microsoft.NET.Sdk">
                    <PropertyGroup>
                      <TargetFramework>netstandard1.4</TargetFramework>
                    </PropertyGroup>
                  </Project>
                  

                  我手动编辑它(我看不到通过 UI 进行编辑的方法)是这样的:

                  And I edit it by hand (I don't see a way to do it through the UI) to be this:

                  <Project Sdk="Microsoft.NET.Sdk">
                    <PropertyGroup>
                      <TargetFrameworks>netstandard1.3;net452</TargetFrameworks>
                    </PropertyGroup>
                  </Project>
                  

                  项目的属性"窗格下的目标框架"下拉菜单随即变为灰色.通过构建,您可以验证 binDebug 下的单独 netstandard1.3 和 net452 文件夹.如果您在构建时创建 NuGet 包,请注意以下问题,这可能会误导您认为您做错了什么:https://github.com/NuGet/Home/issues/4289.

                  The 'Target framework' drop down under the project's Properties pane then becomes grayed out. By building you can verify separate netstandard1.3 and net452 folders under binDebug. Be aware of the following issue if you're creating a NuGet package on build, which may mislead you into thinking you've done something incorrectly: https://github.com/NuGet/Home/issues/4289.

                  这篇关于我应该如何在 VS 2017 RC 中创建针对 .NET Framework 4.5.1 和 .NET Standard 1.3 的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 自定义合约序列化和集合)
                    <bdo id='lBL4N'></bdo><ul id='lBL4N'></ul>

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

                      1. <legend id='lBL4N'><style id='lBL4N'><dir id='lBL4N'><q id='lBL4N'></q></dir></style></legend>
                            <tbody id='lBL4N'></tbody>
                          <i id='lBL4N'><tr id='lBL4N'><dt id='lBL4N'><q id='lBL4N'><span id='lBL4N'><b id='lBL4N'><form id='lBL4N'><ins id='lBL4N'></ins><ul id='lBL4N'></ul><sub id='lBL4N'></sub></form><legend id='lBL4N'></legend><bdo id='lBL4N'><pre id='lBL4N'><center id='lBL4N'></center></pre></bdo></b><th id='lBL4N'></th></span></q></dt></tr></i><div id='lBL4N'><tfoot id='lBL4N'></tfoot><dl id='lBL4N'><fieldset id='lBL4N'></fieldset></dl></div>

                        • <tfoot id='lBL4N'></tfoot>