首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将可移植类库项目.csproj文件从版本2(测试版)转换回版本1

将可移植类库项目.csproj文件从版本2(测试版)转换回版本1
EN

Stack Overflow用户
提问于 2012-05-16 02:01:05
回答 1查看 1.2K关注 0票数 1

目前,我正在尝试在VS10、VS11和MonoDevelop3之间来回移动很多代码。

似乎MonoDevelop3最初对PCL1有一些支持,但VS10和VS11现在都在使用PCL2(测试版)-因为我在同一台PC上安装了VS11和VS10。

为了允许MonoDevelop3加载这些PCL2(测试版)项目,我正在尝试手动操作这些项目。

看起来这并不像更改.csproj XML文件中的TargetProfile那么简单--似乎还需要更多……但我想不出是什么。

有人知道PCL2和PCL1之间的确切区别吗?或者如何手动转换PCL2项目文件,以便将它们加载到MonoDevelop中?

谢谢

斯图尔特

一个示例PLP2项目文件看起来有点像:

代码语言:javascript
复制
<?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>
    <ProjectGuid>{B6E27475-E7D0-448C-A5CC-5097DCA1E2DD}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Cirrious.MvvmCross</RootNamespace>
    <AssemblyName>Cirrious.MvvmCross</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <TargetFrameworkProfile>Profile104</TargetFrameworkProfile>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</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\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Windows" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Application\MvxApplication.cs" />
    etc
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
</Project>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-05-25 21:32:54

现在结束这个问题。

在花了很长时间研究之后...似乎在项目文件之间没有任何显著的差异。

相反,monoDevelop对这些文件的支持似乎还处于初级阶段,如果您希望在MonoDevelop (3.0.2)中打开这些文件,则必须使用Profile1

所以使用:

代码语言:javascript
复制
<TargetFrameworkProfile>Profile1</TargetFrameworkProfile>

代码语言:javascript
复制
<TargetFrameworkProfile>Profile2</TargetFrameworkProfile>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10606302

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档