如何将类库项目转换为 Web 应用程序项目? [英] How to convert a Class Library project to a Web Application project?
问题描述
长话短说,由于架构方面的一些问题以及有人已经将一些 .aspx 文件放入类库的事实,我想完成更改并将类库转换为 Web 应用程序.这是使用 Visual Studio 2010 和 .NET 4.0.有没有简单的方法来做到这一点?谢谢!
Long story short, because of some issues with architecture and the fact that someone already put a few .aspx files in a class library, I'd like to just finish off the change and convert a class library to a web application. This is using Visual Studio 2010 and .NET 4.0. Is there an easy way of doing this? Thanks!
我希望有一种比重新创建项目更好的方法,当我尝试创建一个新项目时,我遇到了太多引用损坏的问题,包括一个我似乎永远无法修复的项目.
I was hoping for a better method than recreating the project, I had too many issues with broken references when I tried just creating a new project, including one I could never seem to fix.
推荐答案
在您的解决方案中创建一个新的 Web 应用程序项目,并将所有文件从类库拖放到新的 Web 应用程序项目中.
Create a new web application project in your solution and drag and drop all files from class library to the new web application project.
这篇关于如何将类库项目转换为 Web 应用程序项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!