I have a vs2015 solution containing the main asp.net project and setting up its project.json as follows:
{
"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 expect the application to create and run with the platform specified in project.json (FYI, I launch the application through the vs2015 debugger in the win10 / x64 window). However, win7-x64 is used instead . I see the win7-x64 output directory , and the invitational invitation header also points to it.
If I create and run directly through the command line with the runtime, it works.
So my question is: what else do I need to configure to run the main asp.net application on x86 from vs2015?