目前,我正在尝试在VS10、VS11和MonoDevelop3之间来回移动很多代码。
似乎MonoDevelop3最初对PCL1有一些支持,但VS10和VS11现在都在使用PCL2(测试版)-因为我在同一台PC上安装了VS11和VS10。
为了允许MonoDevelop3加载这些PCL2(测试版)项目,我正在尝试手动操作这些项目。
看起来这并不像更改.csproj XML文件中的TargetProfile那么简单--似乎还需要更多……但我想不出是什么。
有人知道PCL2和PCL1之间的确切区别吗?或者如何手动转换PCL2项目文件,以便将它们加载到MonoDevelop中?
谢谢
斯图尔特
一个示例PLP2项目文件看起来有点像:
<?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>发布于 2012-05-25 21:32:54
现在结束这个问题。
在花了很长时间研究之后...似乎在项目文件之间没有任何显著的差异。
相反,monoDevelop对这些文件的支持似乎还处于初级阶段,如果您希望在MonoDevelop (3.0.2)中打开这些文件,则必须使用Profile1
所以使用:
<TargetFrameworkProfile>Profile1</TargetFrameworkProfile>不
<TargetFrameworkProfile>Profile2</TargetFrameworkProfile>https://stackoverflow.com/questions/10606302
复制相似问题