简体   繁体   English

为什么Visual Studio 2013使用源代码发布网站?

[英]Why Visual Studio 2013 publish website with source code?

I'm using Visual Studio 2013 . 我正在使用Visual Studio 2013 And have created new website . 并创建了新的website When i publish this website using publish dialog it publish website with sourcecode and doesnt merge into dll When published, in theory it should compile all the code into an single assembly. 当我使用“ publish dialog publishwebsite它会发布带有sourcecode网站,并且不会合并到dll 。发布时,理论上应该将所有代码编译为一个程序集。

So, how to publish website containing binary files and not the sourceCode of the website in Visual Studio 2013 那么,如何publish网站包含binary files ,而不是sourceCode的网站Visual Studio 2013

Help Appreciated! 帮助赞赏!

in first ----> create backup from your project 首先->从您的项目创建备份

  1. create new project ' File -> New -> Project ...' and select Web Folder in VB or c# and select Asp.Net Empty Web Application 创建新项目“ 文件 -> 新建 -> 项目 ...”,然后在VB或c#中选择Web文件夹,然后选择Asp.Net空Web应用程序
  2. Copy All Files & Folder in root from old project by windows explorer Windows资源管理器从旧项目的根目录中复制所有文件和文件夹
  3. into new project right click on your WebApplication Project and select paste 进入新项目, 右键单击您的WebApplication项目,然后选择粘贴
  4. Edit Refrences tab in new project and add your assemply 在新的项目中编辑Refrences选项卡,并添加您的assemply
  5. Build project 建立项目

if no error into publish wizard 如果没有错误进入发布向导

  1. connection tab: select 'File system' method and select target path in local computer than you compile and export finale project output 连接选项卡:选择“文件系统”方法,然后在本地计算机中选择目标路径,而不是编译和导出结局项目输出
  2. setting tab: select 'Release' or 'Debug' config and in File publish option checked 'Delete all exiting...' , 'Exclude files...' 设置标签:选择“发布”或“调试”配置,然后在“文件发布”选项中选中“删除所有正在退出的文件...”,“排除文件...”
  3. push 'Publish' button 按“发布”按钮

goto target path in local computer ---> without source code 'cs file' 本地计算机中的goto目标路径--->没有源代码“ cs文件”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM