Visual c# Express 2010从Visual Studio导入项目

本文关键字:Visual 导入 项目 Studio 2010 Express | 更新日期: 2023-09-27 18:11:28

我正在尝试加载一个项目在我的安装Visual c# 2010 Express。这个项目是由另一个小组成员使用Visual Studio 2010创建的。这是一个存根项目(没有实际的代码)。当我试图加载它时,我得到"该项目类型不支持此安装"错误,而上述SO解决方案没有帮助,因为我不知道快递有命令行东西。我试过这个方法,但是一点用都没有。

如何让项目加载?

注:项目中没有复杂的单元测试。它实际上是一个存根,里面没有重要的代码。

编辑:这是一个csproj文件,按要求:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>
    </ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{C1F8CC60-8F0A-4BAA-BC5B-B3603F662F26}</ProjectGuid>
    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Team10BuyerSeller</RootNamespace>
    <AssemblyName>Team10BuyerSeller</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin'</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin'</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Runtime.Serialization" />
    <Reference Include="System.ServiceModel" />
    <Reference Include="System.Web.DynamicData" />
    <Reference Include="System.Web.Entity" />
    <Reference Include="System.Web.ApplicationServices" />
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Core" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="System.Web.Extensions" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Web" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Configuration" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.EnterpriseServices" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Default.aspx" />
    <Content Include="Login.aspx" />
    <None Include="Service References'BuyerSellerService'BuyerSellerService.disco" />
    <None Include="Service References'BuyerSellerService'configuration91.svcinfo" />
    <None Include="Service References'BuyerSellerService'configuration.svcinfo" />
    <None Include="Service References'BuyerSellerService'Reference.svcmap">
      <Generator>WCF Proxy Generator</Generator>
      <LastGenOutput>Reference.cs</LastGenOutput>
    </None>
    <Content Include="Web.config" />
    <Content Include="Web.Debug.config">
      <DependentUpon>Web.config</DependentUpon>
    </Content>
    <Content Include="Web.Release.config">
      <DependentUpon>Web.config</DependentUpon>
    </Content>
    <None Include="Service References'BuyerSellerService'Team10BuyerSeller.BuyerSellerService.CompositeType.datasource">
      <DependentUpon>Reference.svcmap</DependentUpon>
    </None>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Default.aspx.cs">
      <DependentUpon>Default.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Default.aspx.designer.cs">
      <DependentUpon>Default.aspx</DependentUpon>
    </Compile>
    <Compile Include="Login.aspx.cs">
      <DependentUpon>Login.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Login.aspx.designer.cs">
      <DependentUpon>Login.aspx</DependentUpon>
    </Compile>
    <Compile Include="Properties'AssemblyInfo.cs" />
    <Compile Include="Service References'BuyerSellerService'Reference.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Reference.svcmap</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <WCFMetadata Include="Service References'" />
  </ItemGroup>
  <ItemGroup>
    <WCFMetadataStorage Include="Service References'BuyerSellerService'" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Service References'BuyerSellerService'BuyerSellerService.wsdl" />
    <None Include="Service References'BuyerSellerService'BuyerSellerService.xsd">
      <SubType>Designer</SubType>
    </None>
    <None Include="Service References'BuyerSellerService'BuyerSellerService1.xsd">
      <SubType>Designer</SubType>
    </None>
    <None Include="Service References'BuyerSellerService'BuyerSellerService2.xsd">
      <SubType>Designer</SubType>
    </None>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)'Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath32)'Microsoft'VisualStudio'v10.0'WebApplications'Microsoft.WebApplication.targets" />
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>53868</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

(这是我得到的文件(刚刚做了git reset HEAD --hard)。不过,我确实按照建议尝试交换ProjectGuid。

Visual c# Express 2010从Visual Studio导入项目

你的项目指南类型表明这个项目是一个c# Web应用程序。如果您已经安装了Visual c# Express,则可能不会打开Web Application类型的项目。

尝试安装Visual Web Express

VS Express不支持单元测试项目。如果你想加载这个项目,你应该将。csproj文件中的ProjectGuid值更改为{C1F8CC60-8F0A-4BAA-BC5B-B3603F662F26}

你也可以为VS安装一些插件来运行测试

您安装了SP1吗?至少对我来说,在SP1之后,快速版本的性能似乎有所改善。所以您只打开了项目文件,而没有打开解决方案?最初使用什么类型的项目来创建存根代码?