-1

我有一個使用VS2005創建的項目。我將該項目轉換爲VS2008,並發現Ok。但是當我試圖將該項目轉換爲VS2010時,它向我顯示「項目類型不受此安裝支持」。儘管我嘗試了各種不同的方法,但我無法找到它的確切解決方案。使用.NET Framework 2.0和PlatformFamilyName的項目是WindowsCE。對於詳細的分析我正在粘貼下面的VS2005項目文件的內容: -VS2005到VS2010項目轉換顯示「此安裝不支持項目類型」

++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <PropertyGroup> 
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    <ProductVersion>8.0.50727</ProductVersion> 
    <SchemaVersion>2.0</SchemaVersion> 
    <ProjectGuid>{97630F0B-C62D-4135-A1F9-06092B830918}</ProjectGuid> 
    <OutputType>Library</OutputType> 
    <AppDesignerFolder>Properties</AppDesignerFolder> 
    <RootNamespace>NativeMethods</RootNamespace> 
    <AssemblyName>NativeMethods</AssemblyName> 
    <ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 
    <PlatformFamilyName>WindowsCE</PlatformFamilyName> 
    <PlatformID>E2BECB1F-8C8C-41ba-B736-9BE7D946A398</PlatformID> 
    <OSVersion>5.0</OSVersion> 
    <DeployDirSuffix>NativeMethods</DeployDirSuffix> 
    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> 
    <FormFactorID> 
    </FormFactorID> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
    <DebugSymbols>true</DebugSymbols> 
    <DebugType>full</DebugType> 
    <Optimize>false</Optimize> 
    <OutputPath>bin\Debug\</OutputPath> 
    <DefineConstants>DEBUG;TRACE;$(PlatformFamilyName)</DefineConstants> 
    <NoStdLib>true</NoStdLib> 
    <NoConfig>true</NoConfig> 
    <ErrorReport>prompt</ErrorReport> 
    <FileAlignment>512</FileAlignment> 
    <WarningLevel>4</WarningLevel> 
    <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> 
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 
    <DebugType>pdbonly</DebugType> 
    <Optimize>true</Optimize> 
    <OutputPath>bin\Release\</OutputPath> 
    <DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants> 
    <NoStdLib>true</NoStdLib> 
    <NoConfig>true</NoConfig> 
    <ErrorReport>prompt</ErrorReport> 
    <FileAlignment>512</FileAlignment> 
    <WarningLevel>4</WarningLevel> 
    <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> 
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks> 
    </PropertyGroup> 
    <ItemGroup> 
    <Reference Include="mscorlib" /> 
    <Reference Include="System" /> 
    <Reference Include="System.Data" /> 
    <Reference Include="System.Windows.Forms" /> 
    <Reference Include="System.Xml" /> 
    </ItemGroup> 
    <ItemGroup> 
    <Compile Include="ceddk.cs" /> 
    <Compile Include="coredll.cs" /> 
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    </ItemGroup> 
    <Import Condition="'$(TargetFrameworkVersion)' == 'v1.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.v1.targets" /> 
    <Import Condition="'$(TargetFrameworkVersion)' == 'v2.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" /> 
    <ProjectExtensions> 
    <VisualStudio> 
     <FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"> 
     <HostingProcess disable="1" /> 
     </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> 

+++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++

+0

閱讀[this](http://stackoverflow.com/a/10337114/1064610) – 2013-02-08 06:00:28

+0

在VS2010中完全刪除了對Windows Mobile項目的支持。 VS2008仍然支持最新版本的Visual Studio。您可以通過嘗試從頭開始創建一個新項目來判斷,您會發現缺少項目模板。對此有一個簡單的解釋,公司名稱類似於水果,以字母A開頭。 –

回答

1

Visual Studio 2010不會支持.NET Compact Framework開發。最後支持的版本是Visual Studio 2008.

相關問題