我有一个ASP.Core RC2项目(使用.NET 4.5.1框架),应该作为x86 Web站点部署在Azure上.
在VS中的“发布设置”选项卡上,有以下值:
>目标框架:.NET Framework 4.5.1
>目标运行时:推断运行时(win7-x64)
我想要改变的是x86平台的“目标运行时”的值,但这个组合框是无效的(灰色).
目前project.json:
{ "version": "1.0.0-*","dependencies": { "Microsoft.NETCore.Platforms": "1.0.1-*","Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final","Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final","Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final","Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final","Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final" },"commands": { "web": "Microsoft.AspNet.Server.Kestrel" },"buildOptions": { "emitEntryPoint": true },"frameworks": { "net451": { } },"publishOptions": { "include": [ "appsettings.json","project.json","web.config","NlogWeb.config" ] },"tools": { "Microsoft.AspNetCore.Server.IISIntegration.Tools": { "version": "1.0.0-*","imports": "portable-net45+wp80+win8+wpa81+dnxcore50" } },"scripts": { "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" } }
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。