<Use64BitIISExpress/> 的目的是什么?csproj 文件中的元素 [英] What's purpose of <Use64BitIISExpress /> element in csproj file

查看:33
本文介绍了<Use64BitIISExpress/> 的目的是什么?csproj 文件中的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编辑 Web 应用程序项目时,Visual Studio 2017 (15.3.1) 在 csproj 文件中的 Project/PropertyGroup 下添加了 <Use64BitIISExpress/> 元素.我找不到任何文档,目的是什么以及它是否会影响某些内容,在呈现时(实际上,没有任何属性).

When I edit Web application project, Visual Studio 2017 (15.3.1) adds <Use64BitIISExpress /> element under Project/PropertyGroup in csproj file. I can't find any documentation, what is the purpose and if it affects something, when presented (as it is, without any attributes).

我能找到的唯一结果是提到了同名的注册表值.

Only result I was able to find was mention about registry value of the same name.

有人知道这个元素有什么用吗?它是否在 Visual Studio 2017 的一些最近更新中引入?

Does someone know what this element serves for? Was it introduced in some of recent updates of Visual Studio 2017?

推荐答案

在我对我的项目的属性"页面进行更改后,毫不奇怪地注意到了这个条目.在属性"页面的 Web 部分下,您将看到一个名为服务器"的部分.在我更改项目 URL"以使用正确的端口号进行调试后,出现了该条目(不是因为我专门更改了该选项,而是在我注意到它出现的时候).

I noticed this entry, not surprisingly, after I made a change to the Properties page of the my Project. Under the Web section of the Properties page, you'll see a section called "Servers". After I changed the "Project URL" to use the correct port number for debugging, this entry appeared (not because I changed that option specifically, but it's when I noticed it appearing).

在此部分中,您可以选择IIS Express"或外部主机".在该下拉列表旁边,还有另一个Bitness"下拉列表.我的当前设置为默认",这将项目文件中的条目显示为空元素.将Bitness"更改为x64"后,我的项目文件条目更改为:

In this section you can select either "IIS Express" or "External Host". Next to that dropdownlist, there is another dropdownlist for "Bitness". Mine was currently set to "Default", which displays the entry in the Project file as an empty element. After changing the "Bitness" to "x64", my Project file entry changed to:

true

将我的Bitness"更改为x86"会导致:

Changing my "Bitness" to "x86" results in:

false

将Bitness"返回到Default"使其再次成为空元素:

Returning "Bitness" to "Default" makes it again an empty element:


</Use64BitIISExpress>

我知道这不能解决您的文档在哪里?"的问题.我也找不到此属性的任何相关 MSBuild 文档.但是,在我们焦急地等待一些正式的官方文档时,我认为值得注意的是该属性的来源以及它如何根据项目属性中的选定选项起作用.

I understand this doesn't address your question of "where is the documentation?". I, too, could not find any relevant MSBuild documentation for this attribute. But, I thought it worth noting where the attribute is coming from and how it acts based on selected options from the Project properties while we anxiously await some formal, official documentation.

这篇关于&lt;Use64BitIISExpress/&gt; 的目的是什么?csproj 文件中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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