本文介绍了VS2012发布网站dll而不是CS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要发布的简单ASP.NET项目.我右键单击该项目,然后按发布网站",但是这会将我的所有.cs文件生成到选定的文件夹,以前我一直在bin文件夹中获取dll文件,而不是.cs文件.

I have a simple ASP.NET project that I want to publish. I right-click on the project and press "Publish Web Site", however this generates all my .cs files to the selected folder, previously I've been getting dll files in my bin folder instead of the .cs files.

我在做什么错了?

推荐答案

问题可能出在发布"设置中.请检查是否选择了发布期间预编译选项.您可以在此处找到选项-右键单击项目-发布网站-部分设置-子部分文件发布选项-选项在发布期间进行预编译.

The problem will be probably in the Publish setting. Please check if the option Precompile during publishing is selected. You can find the option here - Right click on the Project - Publish Web Site - section Settings - subsection File Publish Options - option Precompile during publishing.

这篇关于VS2012发布网站dll而不是CS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 01:49