我有一个包含asp.net核心项目的vs2015解决方案,并将其project.json配置如下:
{
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true,
"platform": "x86"
},
"runtimes": {
"win10-x86": {}
},
"frameworks": {
"net461": {}
},
"commands": {
"web": "Microsoft.AspNet.Hosting --ASPNET_ENV production --server Microsoft.AspNet.Server.Kestrel --server.urls http://+:12345",
}
[...]
}
Run Code Online (Sandbox Code Playgroud)
我期待应用程序使用project.json中指定的平台构建和运行(仅供参考,我在win10/x64框上通过vs2015调试器运行应用程序).但是,使用win7-x64运行时代替.我可以看到一个win7-x64输出目录,启动的提示标题也表明它.
如果我通过指定运行时的命令行直接构建和运行,它就可以工作.
所以我的问题是,我还需要配置什么来从vs2015启动x86中的asp.net核心应用程序?