如何将类库项目转换为 Web 应用程序项目? [英] How to convert a Class Library project to a Web Application project?

查看:30
本文介绍了如何将类库项目转换为 Web 应用程序项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

长话短说,由于架构方面的一些问题以及有人已经将一些 .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屋!

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