vs2008 csharp dll项目文件转web工程

用ultraedit或notepad++打开csproj。或者在vs2008,在项目文件上右键“卸载项目”,使得项目文件变灰(不可用),然后在右键点击"编辑 xxxxx.csproj".

1.

<ProjectGuid>{2CC82F4B-BA8D-45F8-A442-637EA052E64D}</ProjectGuid>

注意:上面Guid根据项目不同而不同

 

节点下添加

<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

截图01

 

2.在尾部</Project>上面添加这段(大多在</PropertyGroup>和</Project>之间)

<ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>4137</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>

如图

vs2008 csharp dll项目文件转web工程_第1张图片

 

注意:其中{349c5851-65df-11da-9384-00065b846f21}不根据项目不同而变化

你可能感兴趣的:(vs2008)