I have a vs2015 solution containing an asp.net core project and have configured its project.json as follow :
{
"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",
}
[...]
}
I am expecting the application to build and run with the platform specified in project.json ( FYI, I am running the app via vs2015 debugger on a win10/x64 box ). However, win7-x64 runtime is used instead. I can see a win7-x64 output directory and the prompt title launched indicates it too.
If I build and run directly via command line specifying the runtime, it works.
So my question is, what else do I need to configure to start the asp.net core app in x86 from vs2015 ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…