You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/MRTKNuGetPackage.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,21 @@
1
1
# Mixed Reality Toolkit NuGet package
2
2
3
-
Mixed Reality Toolkit (MRTK) is now available as a NuGet package on NuGet.org. There are some differences when it comes to consuming NuGet version of MRTK as opposed to a .unitypackage, read **NuGet Package Considerations** below. If any issues are encountered, file an issue using this [template](https://github.com/microsoft/MixedRealityToolkit-Unity/issues/new?assignees=&labels=Bug,Package%20Management%20-%20NuGet&template=bug-report.md&title=).
3
+
Mixed Reality Toolkit (MRTK) is now available as a NuGet package on NuGet.org. There are some differences when it comes to consuming NuGet version of MRTK as opposed to a .unitypackage, read [NuGet Package Considerations](#nuget-package-considerations) below. If any issues are encountered, file an issue using this [template](https://github.com/microsoft/MixedRealityToolkit-Unity/issues/new?assignees=&labels=Bug,Package%20Management%20-%20NuGet&template=bug-report.md&title=).
4
4
5
-
**Note:** Migration of existing projects to consume MRTK as a NuGet package is not yet supported, use MRTK via NuGet only for new projects.
5
+
> [!NOTE]
6
+
> Migration of existing projects to consume MRTK as a NuGet package is not yet supported, use MRTK via NuGet only for new projects.
6
7
7
8
## Installing the NuGet package
8
9
9
10
Follow these instructions to add the Mixed Reality Toolkit as a NuGet package to your project.
10
11
11
12
1. Download the latest [NuGetForUnity](https://github.com/GlitchEnzo/NuGetForUnity/releases/latest) .unitypackage.
12
-
1. If you already have NuGetForUnity installed, please ensure you're using version 2.0.0 or newer.
13
-
1. Import the package into your Unity project, [instructions](https://docs.unity3d.com/Manual/AssetPackages.html).
14
-
1. In the Unity menu bar, click on **NuGet > Manage NuGet Packages**.
13
+
1. If *NuGetForUnity* is already installed, please ensure it is version **2.0.0 or newer**.
14
+
1. Import the package into the Unity project, [instructions](https://docs.unity3d.com/Manual/AssetPackages.html).
15
+
1. In the Unity menu bar, click on **NuGet** > **Manage NuGet Packages**.
@@ -26,9 +27,9 @@ Follow these instructions to add the Mixed Reality Toolkit as a NuGet package to
26
27
27
28
### Updating MRTK NuGet packages
28
29
29
-
Steps 1-2 above will only need to be done once for your project, and the update is a much simpler step. Once newer packages available on NuGet.org (including prerelease), follow these steps:
30
+
Steps 1-2 above will only need to be done once for the project, and the update is a much simpler step. Once newer packages are available on NuGet.org (including prerelease), follow these steps:
30
31
31
-
1. In the Unity menu bar, click on NuGet > Manage NuGet Packages.
32
+
1. In the Unity menu bar, click on **NuGet** > **Manage NuGet Packages**
32
33
1. Switch to the **Updates** tab.
33
34
- Check the **Show prerelease** box if you want to get latest prerelease version.
34
35
1. Update the packages desired.
@@ -41,7 +42,8 @@ The release of MRTK as NuGet package is a new delivery mechanism being explored
41
42
42
43
NuGet package consists of compiled binaries as opposed to loose script files, and the C# script asset identifiers are different. As such, the assets like prefabs in the MRTK package have been updated to reference the appropriate compiled script. A project using the .unitypackage or source version of MRTK will have to re-target its assets as well, and although there is code for it this is not a supported scenario, yet.
43
44
44
-
*Thereby, there is no currently supported way of migrating to NuGet from .unitypackage or source. This will change as we continue development on this delivery mechanism.*
45
+
> [!IMPORTANT]
46
+
> There is no currently supported way of migrating to NuGet from .unitypackage or source. This will change as we continue development on this delivery mechanism.
45
47
46
48
### Compiled binaries (NuGet) vs source files (.unitypackage)
47
49
@@ -62,9 +64,9 @@ With the latest source from MRTK, you can build the NuGet package locally and co
62
64
1. Execute the `scripts\packaging\createnugetpackages.ps1` powershell script.
63
65
- Specify the `-UnityDirectory` flag by passing the Editor folder of your Unity installation
64
66
- Specify the `-Version` of the package to create, in x.x.x format. **Make sure the version is higher than available on NuGet.org**
0 commit comments