Ich brauche Newtonsoft, um Dinge mit playfab arbeiten zu lassen, sie haben ein tolles Beispiel, das Newtonsoft benutzt und fast alles tut, was ich in meinem Spiel will.Installiere Newtonsoft für die Einheit .net 3.5 Version
Aber ich kann es nicht mit Visual Studio -> Tools -> NUget-Paket-Manager -> Package Manager-Konsole installieren.
Ich verwende den folgenden Befehl ein: "Install-Package Newtonsoft.Json -Version 3.5.8"
Und das ist, was ich zu sehen bekommen:
PM> Install-Package Newtonsoft.Json -Version 3.5.8
Attempting to gather dependencies information for package 'Newtonsoft.Json.3.5.8' with respect to project 'Game.CSharp', targeting '.NETFramework,Version=v3.5,Profile=Unity Subset v3.5'
Attempting to resolve dependencies for package 'Newtonsoft.Json.3.5.8' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Newtonsoft.Json.3.5.8'
Resolved actions to install package 'Newtonsoft.Json.3.5.8'
Install failed. Rolling back...
Package 'Newtonsoft.Json.3.5.8 : ' does not exist in project 'Game.CSharp'
Removing package 'Newtonsoft.Json.3.5.8 : ' from folder 'C:\Users\\Documents\Game\packages'
Removed package 'Newtonsoft.Json.3.5.8 : ' from folder 'C:\Users\\Documents\Game\packages'
Install-Package : Could not install package 'Newtonsoft.Json 3.5.8'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5,Profile=Unity Subset v3.5', 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 Newtonsoft.Json -Version 3.5.8
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Kann jemand mir helfen, in die richtige Richtung , Vielen Dank im Voraus
„‘ .NETFramework, Version = v3.5, Profile = Unity Subset v3.5 ', aber das -Paket enthält keine Assemblyverweise oder Inhaltsdateien, die mit diesem Framework kompatibel sind. Weitere Informationen erhalten Sie vom Paketautor. " >> Hast du James von Newtonsoft kontaktiert? http://www.newtonsoft.com/contact –
Nein, ich habe ihn nicht kontaktiert, sorry, dass ich diesen Punkt nicht gesehen habe. Ich werde Kontakt mit ihm aufnehmen. Vielen Dank! –