如何Web应用程序项目转换为类库项目 [英] How to convert Web application project to Class library project

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

问题描述

我需要转换一个项目开始作为一个Web应用程序到一个类Libray,这可能吗?

I need to convert a project started as a Web Application to a Class Libray, is this possible?

感谢

推荐答案

正确的答案是肯定的。只需编辑的csproj(的MSBuild)文件,并更改ProjectGuid并删除ProjectTypeGuids:

The correct answer is yes. Just edit the csproj (msbuild) file and change the ProjectGuid and remove the ProjectTypeGuids:

<ProjectGuid>{9845066A-3C9E-4F51-8F5F-8F513E8D03C1}</ProjectGuid>

这真的就是这么简单。

It really is that simple.

这篇关于如何Web应用程序项目转换为类库项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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