C#【类库】项目手工转成【ASP.NET Web 应用程序】项目

步骤1:用文本编辑工具手工打开项目文件“.csproj”

步骤2:添加“<ProjectTypeGuids>”和“<Import>”节点

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists(‘$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props‘)" />
  <PropertyGroup>
    <Configuration Condition=" ‘$(Configuration)‘ == ‘‘ ">Debug</Configuration>
    <Platform Condition=" ‘$(Platform)‘ == ‘‘ ">AnyCPU</Platform>
    <ProjectGuid>{06AE699E-EE6C-4FF2-AC4A-4CD653CF256E}</ProjectGuid>
    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  </PropertyGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="‘$(VSToolsPath)‘ != ‘‘" />
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
</Project>

 说明:在Visual Studio 2013中测试通过,其他版本未测试。

C#【类库】项目手工转成【ASP.NET Web 应用程序】项目

上一篇:windows下RabbitMQ 监控


下一篇:并发编程之 AQS 源码剖析