標籤:style blog http color io os ar for sp
步驟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 應用程式】項目