ASP.NET MVC应用上&QUOT web.config中transformss;发布] [英] ASP.NET MVC Apply web.config transformss on "Publish"

查看:148
本文介绍了ASP.NET MVC应用上&QUOT web.config中transformss;发布]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS2010,我有,我用部署在发布命令Web应用程序。

I'm using VS2010 and I have a Web application that I deploy using the "Publish" command.

我已经定义了几个变革的Web.Release.Config文件来更改连接字符串和其他设置需要在活的服务器来更改。

I have defined a couple of transformations in the Web.Release.Config file to change the connection string and other settings that need to change in the "live" server.

我看到的问题是,当我执行发布命令并不适用于web.release.config文件中定义的转换。

The problem I'm seeing is that when I execute the "Publish" command it doesn't apply the transformations defined in the web.release.config file.

这是如何实现这一目标的任何想法?

Any idea on how to achieve this?

感谢

推荐答案

在Visual Studio中,应该有一个选择框顶部的菜单上。您需要选择您的构建(发布,调试等)的类型。

On visual studio, there should be a select box top on the menu. You need to select the type of your build (Release, Debug, etc.).

喜欢的东西如下:

要小心,它被设置为发布。

Be careful that it is set to Release.

这篇关于ASP.NET MVC应用上&QUOT web.config中transformss;发布]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆