[英]Target x86 in net461
I'm building a .NET Core Web Application that needs to run on an x86 platform . 我正在构建一个需要在x86平台上运行的.NET Core Web应用程序。 Currently, I'm using net461.
当前,我正在使用net461。 I guess by default, the application is targeting win7-x64.
我猜默认情况下,该应用程序的目标是win7-x64。 I'm using Visual Studio 2015.
我正在使用Visual Studio 2015。
How do I change it to x86? 如何将其更改为x86?
Things I've tried: 我尝试过的事情:
I tried listing x86 as the Active solution platform (didn't work): 我尝试将x86列为Active解决方案平台(无法正常工作):
I tried listed win10-x86 as the runtime in the project.json file (didn't work): 我尝试将win10-x86列为project.json文件中的运行时(无效):
"frameworks": {
"net461": {}
},
"runtimes": {
"win10-x86": {}
}
Any help greatly appreciated! 任何帮助,不胜感激!
I believe what you were changing is just for debugging in different frameworks, not actually changing the target framework. 我相信您所更改的只是用于在不同框架中进行调试,而不是实际上更改目标框架。
Now there are a few different ways to do this, but I'll include the way MSDN recommends in this link: https://msdn.microsoft.com/en-us/library/ms185328.aspx 现在有几种不同的方法可以执行此操作,但是我将在此链接中包括MSDN推荐的方法: https : //msdn.microsoft.com/zh-cn/library/ms185328.aspx
1. Go to Build menu and select Configuration Manager. 1.转到“构建”菜单,然后选择“配置管理器”。
2. Select the Platform dropdown click "New" 2.选择平台下拉菜单,单击“新建”
3. Select the desired platform from the drop down. 3.从下拉列表中选择所需的平台。
I hope that helps! 希望对您有所帮助! =)
=)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.