1

空白のソリューションを作成します。ポータブル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を使用できますか?

答えて

2

現在のナゲットパッケージには、net40アセンブリのみが含まれています。しかし、マスターにはProfile7のサポートがあり、あなたはdownload the artifacts from hereです。

編集:これは実際に後で1.0.1(1.0.2以降)としてリリースされたようです。これは本当に奇妙です。 1.0.2から1.0.1へのアップデート(これがあなたが呼んでいるのであれば?)がこれを修正すると思います。

Edit2:この混乱を避けるためにan issue hereを作成しました。

+0

それは働いた。それは確かに幾分奇妙です。スチュアートに感謝します。 –

+0

私は助けてくれることを嬉しく思っています。この問題を解決するために、私は[ここに問題を作成しました](https://github.com/fsprojects/FSharp.Collections.ParallelSeq/issues/12)。 – Stuart

関連する問題