简体   繁体   English

部署为ASP.NET网站DLL

[英]Deploying as ASP.NET website DLL

a year ago I created and deployed a simple web app from visual studio 2012. This included a dll in the bin folder containing the code behind. 一年前,我从Visual Studio 2012创建并部署了一个简单的Web应用程序。其中在bin文件夹中包含一个dll,其中包含后面的代码。 Fast forward one year and I need to make a small change to the .cs file. 快进了一年,我需要对.cs文件进行一些小的更改。 I open the solution in VS2012, make my change and select build project. 我在VS2012中打开解决方案,进行更改并选择构建项目。 No bin folder and no dll are created. 没有bin文件夹,也没有dll被创建。 I try build website, rebuild website and anything obvious I can see but even though the build process works fine I do not end up with the bin folder or the dll. 我尝试构建网站,重建网站以及所有可见的内容,但是即使构建过程运行良好,我也不会遇到bin文件夹或dll。 I have double checked the live site and the web site contains a bin folder and a dll rather than individual code-behind files. 我已经仔细检查了实时站点,该站点包含一个bin文件夹和一个dll,而不是单个的代码隐藏文件。 Have I missed something obvious or fundamental here? 我在这里错过了明显或基本的东西吗?

Have solved this now. 现在已经解决了。 The compilation of the dll happens at the publish web site stage and not the build web site stage. dll的编译发生在发布网站阶段,而不是构建网站阶段。 Once I sorted out an issue with FTP I was able to publish to the live site and the dll was overwritten with my new one 解决了FTP问题后,我便可以发布到实时站点,并且新的dll覆盖了该dll。

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

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