cant find package Multiplayer HLAPI in pakckage manager in unity - c#

i didn't find halpi package.
i can't find halpi package in package manager.

First of all UNet and the HLAPI are deprecated .. there is now Netcode for GameObject.
And then you are looking at the packages that already are installed in the project.
To view all available packages change the Packages drop-down from In Project to Unity Registry

Related

Unity can't find package installed with Nuget in Visual Studio

I installed some ASP.NET packages (FirebaseStorage.net if it matters) via Nuget in my game's project in Visual Studio.
Visual Studio itself shows no errors, as it probably understands using Firebase.Storage internally, but when it comes to Unity, it says
The type or namespace name 'Firebase' could not be found (are you missing a using directive or an assembly reference?)
I believe this happens because I installed this package through the Nuget Package Manager, inside Visual Studio, and it probably has nothing to do with Unity, so Unity doesn't find it.
How can I make Unity understand packages from Nuget?
If you want to use a Nuget package in Unity you have to add it manually.
How you can do this:
create a separate temporary Visual Studio project
install the Nuget package
copy the dll's from the temporary project to a "plugins" folder in the Assets folder of Unity.
Unity now builds the project with the dll's of the Nuget package
However, now comes the hard part of having to do it manually: if the dll has dependencies on other dll's, these will also have to be added manually. That is the big advantage of Nuget package manager.

How do I install Newtonsoft.json for Visual Studio 2010?

I am trying to make Newtonsoft.json available for use in my local Visual Studio 2010 projects. I installed NuGet.Tools on my system. Now I see an item in the Solution Explorer called Service References that wasn't there before, but I don't understand how to use that to reference the Newtonsoft package I also downloaded, which is currently in my Downloads folder. Do I need to move the package to a different location to reference it?
Thanks for your help.
You can right click on the project where you want to install newtonsoft nuget package.
You will find an option "Manage NuGet packages".
Then search online for "newtonsoft".
This would add a packages.config file in your project (depending on which framework you are targeting to ).
this new file contains all the nuget dependencies required for this project.
Refer this blog for more details
VS2010 is old and is unable to update to the latest NuGet version. This means that adding recent packages will often fail; however, you can often add an older version of a package that has a compatible NuGet version and it will work. This causes the suggested answer by #ManojChoudhari to fail for me. In the case of Newtonsoft.Json, the following worked using the Package Manager Console:
Install-Package Newtonsoft.Json -Version 9.0.1

Error installing Microsoft.Azure.CosmosDB.Table NuGet

Trying to install Microsoft.Azure.CosmosDB.Table version 1.1.3, but keep getting the error
Unable to resolve dependency 'Microsoft.Azure.Storage.Common'.
Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline
Packages'
My current project is from the Azure QnA bot template
Any help with this would be much appriciated!
Error installing Microsoft.Azure.CosmosDB.Table NuGet
This is a known issue on GitHub, if project is configured to use packages.config this issue will manifest itself.
And this issue is fixed for PackageReference. NuGet team are determining if needs to fix this for packages.config, or leave it as is.
Before add nuget package, go to Tools-Options->NuGet Package Manager->General, change the default package management format to PackageReference. Then restart the Visual Studio, reload your project, add that package.
If you still get the same error, please check following Troubleshooting:
Use Package Manage Console to install the Microsoft.Azure.CosmosDB.Table package and its dependencies. To do
this, type the following in the Package Manager Console for your
solution.
Install-Package Microsoft.Azure.CosmosDB.Table -IncludePrerelease
Using your preferred Nuget package management tool, install the Microsoft.Azure.Storage.Common Nuget package before installing
Microsoft.Azure.CosmosDB.Table.
Hope this helps.

Visual Studio 2013 - adding same reference to foreground app and background task

I am new to background task in windows store app.
I need to use the same library (Newtonsoft.json) in both foreground app and in my windows runtime component (background task).
Please how can I achieve this?
I installed it with nuget but I can use it only in my foreground app.
I have VS 2013 Express for Windows
1-You can install package to all projects in solution using this script inside Package Manager Console
Get-Project -All | Install-Package Newtonsoft.Json
2-You can change the default project in Package Manager, change it to the background project.
then install your package
Install-Package Newtonsoft.Json
3-You can also check this answer to a similar question
Tools > Library Package Manager > Manage NuGet Packages for Solution... Link
There are a few ways you can do this.
Ahmed Rashad's method works if you want to install it in all of your projects. To limit the projects you just name the project individually or in a comma-delimited list, i.e.
Get-Project , | Install-Package Newtonsoft.Json
You can also right-click the project you want to install it in and select Manage Nuget Packages and install it from the Online source (Left Navigation Pane).
Right-click the Solution, select Manage Nuget Packages for Solution then click on Installed packages on the left navigation pane. From there you just find the package you want in the center navigation pane and click on Manage. Select your other project and click Ok.
The first option is the easiest and quickest IMO.

Xamarin in Visual Studio cannot add xamarin.forms from Nuget

I downloaded the xamarin.form project from github. But when I build the project it is missing the xamarin.forms package.
I tried adding it with Nuget but got this error:
Installing 'Xamarin.Forms 1.3.3.6323'.
Successfully installed 'Xamarin.Forms 1.3.3.6323'.
Adding 'Xamarin.Forms 1.3.3.6323' to DialogPro.
Uninstalling 'Xamarin.Forms 1.3.3.6323'.
Successfully uninstalled 'Xamarin.Forms 1.3.3.6323'.
Install failed. Rolling back...
Could not install package 'Xamarin.Forms 1.3.3.6323'. You are trying to install this package into a project that targets 'portable- net45+sl50+MonoAndroid10+xamarinios10+MonoTouch10', 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.##
How can it fix it? Please help me! Thanks.
It looks like you are targeting the wrong profile. You don't have windows phone but you do have silverlight. Do you need silverlight? I know that it definitely works with Profile 78 or 259. Adjust your targets and then try to add the nuget package again. Unfortunately, this means you probably should re-add all of your nugets for that package since the target changed.
edit:
Here's a good article on some of the xamarin supported profiles: http://danrigby.com/2014/04/16/xamarin-pcl-profile-notes/. I forgot that silver light is included. If you open the project in Xamarin Studio, it actually tells you the profile number. Open the csproj in a text editor and see if the profile number is listed at the top.
It sounds like you are adding Xamarin.Forms to a project that doesn't target any of the required frameworks.
You only need to add Xamarin forms package to your android, iOS, WinPhone and PCL projects.

Categories

Resources