什么是"SKU"? (属性)在C#中是什么意思? [英] What does "SKU" (attribute) mean in C#?

查看:520
本文介绍了什么是"SKU"? (属性)在C#中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我遇到了

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>

导致sku属性的框架中的>错误.虽然,我进行了很多搜索,但实际上并没有发现SKU的含义(除了我认为与这种情况无关的库存单位"或货架单位"的定义之外).

in my App.config file which caused errors with framework when the sku attribute was included. Although, I searched a lot I couldnt really find out what SKU means (other than the definitions "stock keeping unit" or "Shelf Keeping Unit" which I dont think are related to this case).

简而言之,SKU是什么意思/代表什么?

In short, what does SKU mean/stand for ?

推荐答案

此处的一个很好的答案:

A good answer to this question is here:

如果删除自动添加的supportedRuntime,会发生什么元素?

最后一点:如果您希望能够在.NET 4.0上运行,但不需要任何新的4.5 API"

in the last point: "If you want to be able to run on .NET 4.0, but don't need any new 4.5 APIs"

基本上,您在App.config中找到的配置已自动添加,因为您的项目已设置为使用.net Framework 4.5自动生成. 如果您希望您的应用程序与.net Framework 4.0一起运行(不进行4.5就地更新),则只需右键单击该项目-<属性并将目标框架设置为4. App.config将在以下位置进行修改:

Essentially the configuration you found in your App.config has been added automatically because your project has been set to automatically to be built with .net Framework 4.5. If you want your application to run with .net Framework 4.0 (with no 4.5 in-place update) you just right.click the project --< Properties and set the target framework to 4. App.config will be modified in:

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

有趣的是,也阅读了里克·斯特拉尔(Rick Strahl)的文章:

Interesting read also Rick Strahl's post:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆