Visual C # Express 2010 Импорт проекта из Visual Studio - PullRequest
5 голосов
/ 16 октября 2011

Я пытаюсь загрузить проект в моей установке Visual C # 2010 Express. Проект был создан другим одногруппником с использованием Visual Studio 2010. Это тупой проект (без реального кода). Когда я пытаюсь загрузить его, я получаю сообщение об ошибке " Тип проекта не поддерживается этой установкой ", и приведенное выше решение SO не помогло, потому что я не знаю, что Express имеет командную строку вещь. Я попробовал это ТАК решение , но оно мне совсем не помогло.

Как мне загрузить проект?

P.S. В проекте нет сложных юнит-тестов. Это буквально заглушка без важного кода.

Редактировать: Вот файл 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 в соответствии с предложением.

Ответы [ 3 ]

3 голосов
/ 16 октября 2011

Типы руководств вашего проекта предполагают, что этот проект является веб-приложением C #. Если вы установили Visual C # Express, возможно, он не откроет проект типа веб-приложения.

Попробуйте установить Visual Web Express .

1 голос
/ 16 октября 2011

У вас установлен SP1? Поведение экспресс-выпусков, по крайней мере для меня, кажется лучше после SP1. Итак, вы пытались открыть только файл проекта, а не решение? Какой тип проекта изначально использовался для создания кода заглушки? Это может иметь значение для экспресс-издания.

1 голос
/ 16 октября 2011

VS Express не поддерживает проекты модульного тестирования.Если вы хотите загрузить этот проект, вы должны изменить значение ProjectGuid в файле .csproj на {C1F8CC60-8F0A-4BAA-BC5B-B3603F662F26}

Вы также можете установить некоторые плагины для VS для запуска тестов.

...