question

Kim Strasser avatar image
Kim Strasser asked

The type or namespace name 'SharedModels' does not exist in the namespace 'PlayFab'

https://api.playfab.com/docs/tutorials/landing-players/inventory

I want to use this tutorial, but I get an error message at the beginning:

using PlayFab.SharedModels;

Error CS0234: The type or namespace name 'SharedModels' does not exist in the namespace 'PlayFab' (are you missing an assembly reference?)

I have installed the nuget package PlayFabAllSDK.

What can I do?

In-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
jital avatar image
jital answered

Greetings,

The example code in the tutorial you are using is for the Unity SDK, most sample code provide is written for the Unity SDK, so some minor modification is needed for it to work with other C# based SDKs.

In the Xamarin SDK you would use

using PlayFab.Internal;

This contains the Common classes used in the tutorial.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.