how to add publishing profile to a new sln in vs2012?

时光毁灭记忆、已成空白 提交于 2019-12-09 07:50:10

问题


I have read the publishing profiles have replaced WDP

but I cannot find decent tutorial

how to add and modify pubxml file to my project

any help will be appreciated


回答1:


When you right-click a project and select Publish, you get the Publish Web wizard. Using this to create a profile (you don't have to actually publish in order to create a profile) creates the .pubxml, and on the first step of the wizard you can use the Manage Profiles button to rename or delete profiles. Profiles are created in a PublishProfiles folder under Properties. See

http://msdn.microsoft.com/en-us/library/ff398069.aspx




回答2:


In order to create a new profile once you have already defined one, you have to open the "Publish" window (righ click on the project), click on the "Profile" tab and select the <New...> option from the drop-down list; this will create a new pubxml file (see screenshot).
It's a bit tricky to find and I wonder why they didn't put a "New" button on the "Manage profiles" window.



来源:https://stackoverflow.com/questions/13441692/how-to-add-publishing-profile-to-a-new-sln-in-vs2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!