为什么在发布网站时添加扩展名 [英] Why an extension is added while publishing a site

查看:69
本文介绍了为什么在发布网站时添加扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试发布网站时,我看到发布的每个文件都有某些扩展名,原因为何

When i tried to publish a website i see some extension for each and every file that was published why it is happening

<%@ page language="C#" autoeventwireup="true" inherits="Default4, App_Web_oq3urubu" %>



您可以看到扩展名



You can see the extension

App_Web_oq3urubu



为什么每一页都会发生这种情况.为了解决这个问题,我该怎么办.



Why this is happening for each and every page. What should i d in order to rectify this.

推荐答案

不要尝试:这是因为当您发布网站时,它会将其编译为其他形式.服务器上已发布的文件不是您在开发中使用的源文件.
Don''t even try: It is because when you publish the website it compiles it into a different form. The published files on the server are not the source files you use in development.


发布站点时,文件后面的代码将转换为dll.在这里,App_Web_oq3urubu 是dll名称.您可以在App_Code文件夹下找到该dll.因此,要引用dll,将在页面标签中添加dll名称.
When you publish a site, the code behind file will be converted to dll. Here, App_Web_oq3urubu is dll name. You can find this dll under App_Code folder. So, to refer the dll, dll name will be added in page tag.


Dll将位于Bin文件夹中,但它将是文件夹和.aspx.cs文件. aspx页面中的dllname标识要调用该dll的页面.
Dll will be in the Bin folder but it will be the compiled version of class files in the App_code folder and .aspx.cs files. The dllname in the aspx page identifies the page to call that dll.


这篇关于为什么在发布网站时添加扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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