空白のソリューションを作成します。ポータブルF#ライブラリにNugetパッケージをインストールすることはできません。サポートするはずですが、
新しいF#プロジェクトをポータブルクラスライブラリ、プロファイル7(.NET 4.5、Windowsストア、Xamarin)に追加します。
NuGetパッケージをインストールしようとしましたFSharp.Collections.ParallelSeq
。
Don Symeによると、このパッケージは、しかし、プロフィール7をサポートする必要がありInstall-Package FSharp.Collections.ParallelSeq
を生成し実行している次のエラー:
Install-Package : Could not install package 'FSharp.Collections.ParallelSeq 1.0.2'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1 + Install-Package FSharp.Collections.ParallelSeq + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
プロジェクトの設定は次のとおりです。
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>39db5618-025a-4e44-adf4-a5eb2df04b81</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>DeleteMe</RootNamespace>
<AssemblyName>DeleteMe</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
<TargetProfile>netcore</TargetProfile>
<TargetFSharpCoreVersion>3.7.4.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>DeleteMe</Name>
</PropertyGroup>
方法にはありますこのNuGetパッケージを含めると、XamarinアプリにPSeq
を使用できますか?
それは働いた。それは確かに幾分奇妙です。スチュアートに感謝します。 –
私は助けてくれることを嬉しく思っています。この問題を解決するために、私は[ここに問題を作成しました](https://github.com/fsprojects/FSharp.Collections.ParallelSeq/issues/12)。 – Stuart