网站发布问题 - .sln vs .csproj ... [英] Web Site Publish Question - .sln vs .csproj...

查看:66
本文介绍了网站发布问题 - .sln vs .csproj ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一系列关于发布网站的问题。


当我们使用.sln进行部署时文件,似乎.sln和其他开发文件被推送到所需的位置。 有没有办法过滤掉那些东西,只部署安装/最终用户机器上需要的东西。


我们将通过MSBuild在我们的脚本中添加它CI项目,我想知道是否有一个参数可以传递给它来过滤'东西'。


我们发布另一个使用.csproj文件的应用程序,我们不知道那里不得不对dev文件进行任何清理。 从Visual Studio和我们的CI流程看,一切都很好。


这有区别吗? 如果它是一个项目而不是解决方案,那么发布更清晰?


负责此特定解决方案的开发人员表示,如果.sln文件被删除,则发布看起来很好。 问题是我在我们的脚本中无需通过MSBuild调用或构建/发布。


您可以提供的任何清晰度都将非常感谢!!


提前致谢。

解决方案

由于您的问题仅针对网络应用,因此您可能希望在此论坛中发帖:


http://forums.asp.net/26。 ASPX / 1?+配置和部署+


Hi all,

I have a quick series of questions regarding publishing a website.

When we deploy using the .sln file, it seems the .sln and other development files are pushed to the desired location.  Is there a way to filter that stuff out and only deploy what will be needed in the install/on end user's machine.

We will be adding this via MSBuild as well in a script for our CI project and I'm wondering if there is a parameter that can be passed to it to filter that 'stuff'.

We do publish another app that uses a .csproj file and we don't have to do any cleanup of dev files there.  Everything looks good from both Visual Studio and our CI process.

Is that the difference?  If its a project and not a solution the publish is cleaner?

The developer in charge of this particular solution indicated that the publish looked good if the .sln file was removed.  The problem with that is I have nothing to call or build/publish via MSBuild in our script.

Any clarity you can provide would be greatly appreciated!!

Thanks in advance.

解决方案

As your questions are specific to web apps, you may want to post in this forum:

http://forums.asp.net/26.aspx/1?Configuration+and+Deployment


这篇关于网站发布问题 - .sln vs .csproj ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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