摘要:由于 Community Server 2.0 的Web项目建立成了 Library 的项目.他的调试就是一个麻烦.
附加到进程的调试方式请看下面Blog,适用于 VS2003 和 VS2005:使用这个技术请参看下面Blog:
Community Server 2.0中如何调试项目?http://ugoer.cnblogs.com/archive/2006/02/27/339040.html
另外一个方法就是把 Library 项目 变成 Web 项目,在 VS2003 开发环境下,使用这个技术请参看下面Blog:调试MonoRail程序的三种方法 http://wj.cnblogs.com/archive/2005/08/29/225197.html
把lib项目文件转换成web项目文件 http://mixiaobo.cnblogs.com/archive/2006/03/11/347828.html?在VS2003中以ClassLibrary工程的方式管理Web工程. http://hjf1223.cnblogs.com/archive/2006/03/17/352474.html
其实在 VS2003 开发环境下完全可以不变 Library 项目变成Web项目,稍加配置就可以调试.具体操作:在项目的调试属性里, 设为通过url启动,把url设为该项目的网址.同时把上面的"启用asp.net调试"设为true(注意,这个 CommunityServerWeb 项目当然是被部署在IIS了.)
上面两个 VS2003 下的方法,不使用于 VS2005 开发环境.
如果想在VS2005开发环境下使用VS2003的一些WEB开发方法,设置,可以看微软的这个工具:http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx
把一个项目从其他项目变成 WAP 项目,你只需要修改对应的 csproj 文件
把其中的 Local 变成 {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} 即可.这里要解决的在 Microsoft Visual Studio 2005 中直接Debug Community Server 2.0 的代码,最核心的一步就是做上面提到的项目类型修改,改好了就没问题了。然后在项目配置中,配置一下启动页,一切都OK了。详细的步骤请参看 http://broncosolutions.ca/COMMUNITY/blogs/andrew_renner/archive/2006/04/05/77.aspx为了避免有些人连不上那里的服务器,我下面Copy过来:Download the source http://communityserver.com/files/40/releases/default.aspx Download the latest release of Web Application Projects http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx Download the VS 2005 Update to support Web Application Projects http://www.microsoft.com/downloads/details.aspx?FamilyId=8B05EE00-9554-4733-8725-3CA89DD9BFCA&displaylang=en Install the VS 2005 Update Install the Web Application Projects Load the solution <path>\CS_2.0.60217.2664_SDK\src\Community Server 20.sln Right click on the CommunityServerWeb20 project and click unload project Right click on the same......[
阅读全文]