Skip to content

Commit d3cd130

Browse files
authored
Merge pull request #7130 from Troy-Ferrell/users/trferrel/nuget-docs-gettingstarted-updates
Add nuget docs to TOC and polish
2 parents 2bdac28 + fba9aaf commit d3cd130

File tree

4 files changed

+30
-20
lines changed

4 files changed

+30
-20
lines changed

Documentation/MRTKNuGetPackage.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
# Mixed Reality Toolkit NuGet package
22

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=).
44

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.
67
78
## Installing the NuGet package
89

910
Follow these instructions to add the Mixed Reality Toolkit as a NuGet package to your project.
1011

1112
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**.
1516

1617
![Manage NuGet Packages](Images/NuGet/ManageNuGetPackages.png)
17-
1. In the Search box, enter `Microsoft.MixedReality.Toolkit`.
18+
1. In the Search box, enter **Microsoft.MixedReality.Toolkit**.
1819

1920
![Manage NuGet Packages](Images/NuGet/SearchBox.png)
2021
1. Choose the MRTK core package:
@@ -26,9 +27,9 @@ Follow these instructions to add the Mixed Reality Toolkit as a NuGet package to
2627

2728
### Updating MRTK NuGet packages
2829

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:
3031

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**
3233
1. Switch to the **Updates** tab.
3334
- Check the **Show prerelease** box if you want to get latest prerelease version.
3435
1. Update the packages desired.
@@ -41,7 +42,8 @@ The release of MRTK as NuGet package is a new delivery mechanism being explored
4142

4243
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.
4344

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.
4547
4648
### Compiled binaries (NuGet) vs source files (.unitypackage)
4749

@@ -62,9 +64,9 @@ With the latest source from MRTK, you can build the NuGet package locally and co
6264
1. Execute the `scripts\packaging\createnugetpackages.ps1` powershell script.
6365
- Specify the `-UnityDirectory` flag by passing the Editor folder of your Unity installation
6466
- Specify the `-Version` of the package to create, in x.x.x format. **Make sure the version is higher than available on NuGet.org**
65-
- **Example:** `.\createnugetpackages.ps1 -UnityDirectory "C:\Program Files\Unity\Hub\Editor\2018.3\Editor" -Version 2.0.2`
67+
- **Example:** `.\createnugetpackages.ps1 -UnityDirectory "C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor" -Version 2.3.2`
6668
1. After the build succeeds, open the destination project with NuGet packages.
67-
- Click on the menu **Edit > Preferences...**
69+
- Click on the menu **Edit** > **Preferences...**
6870

6971
![Edit Preferences Menu Item](Images/NuGet/ProjectPreferences.png)
7072
- On the left, find **NuGet for Unity** tab.
@@ -77,11 +79,16 @@ With the latest source from MRTK, you can build the NuGet package locally and co
7779

7880
![Edit Preferences Menu Item](Images/NuGet/SaveNewSource.png)
7981
1. If this your first time building, or the version was incremented, follow the update process:
80-
1. In the Unity menu bar, click on **NuGet > Manage NuGet Packages**.
82+
1. In the Unity menu bar, click on **NuGet** > **Manage NuGet Packages**.
8183

8284
![Manage NuGet Packages](Images/NuGet/ManageNuGetPackages.png)
8385
1. Switch to the **Updates** tab.
8486

8587
![Manage NuGet Packages](Images/NuGet/UpdatesTab.png)
8688
1. Update the packages to the version you just built desired.
8789
1. Otherwise, just delete the `Assets\Packages` folder and let NuGetForUnity restore the packages.
90+
91+
## See also
92+
93+
- [Building and Deploying MRTK](BuildAndDeploy.md)
94+
- [MRTK Package Contents](MRTK_PackageContents.md)

Documentation/MRTK_PackageContents.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ The optional Microsoft.MixedRealityToolkit.Unity.Examples package includes demon
9696

9797
## See also
9898

99-
[Getting Started with the MRTK](GettingStartedWithTheMRTK.md)
99+
- [Getting Started with the MRTK](GettingStartedWithTheMRTK.md)
100+
- [NuGet Packaging](MRTKNuGetPackage.md)

Documentation/ReleaseNotes.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ The following software is required.
2626
- [Windows 10 SDK](https://developer.microsoft.com/windows/downloads/windows-10-sdk) 18362 or later (installed by the Visual Studio Installer)
2727
- [Unity](https://unity3d.com/get-unity/download) 2018.4 LTS or 2019 (2019.3 recommended)
2828

29-
NuGet requirements
29+
**NuGet requirements**
3030

31-
If importing the Mixed Reality Toolkit NuGet packages, the following software is recommended.
31+
If importing the [Mixed Reality Toolkit NuGet packages](MRTKNuGetPackage.md), the following software is recommended.
3232

3333
- [NuGet for Unity 2.0.0 or newer](https://github.com/GlitchEnzo/NuGetForUnity/releases/latest)
3434

@@ -62,9 +62,9 @@ The following software is required.
6262
- [Windows 10 SDK](https://developer.microsoft.com/windows/downloads/windows-10-sdk) 18362 or later (installed by the Visual Studio Installer)
6363
- [Unity](https://unity3d.com/get-unity/download) 2018.4 LTS, 2019.1 or 2019.2
6464

65-
NuGet requirements
65+
**NuGet requirements**
6666

67-
If importing the Mixed Reality Toolkit NuGet packages, the following software is recommended.
67+
If importing the [Mixed Reality Toolkit NuGet packages](MRTKNuGetPackage.md), the following software is recommended.
6868

6969
- [NuGet for Unity 2.0.0 or newer](https://github.com/GlitchEnzo/NuGetForUnity/releases/latest)
7070

@@ -108,7 +108,7 @@ For the smoothest upgrade path, please use the following steps.
108108

109109
**Updating from NuGet**
110110

111-
If your project was created using the Mixed Reality Toolkit NuGet packages, please use the following steps.
111+
If your project was created using the [Mixed Reality Toolkit NuGet packages](MRTKNuGetPackage.md), please use the following steps.
112112

113113
1. Select **NuGet > Manage NuGet Packages**
114114
1. Select the **Online** tab and click **Refresh**
@@ -359,9 +359,9 @@ The following software is required.
359359
- Windows 10 SDK 18362 or later (installed by the Visual Studio Installer)
360360
- Unity 2018.4, 2019.1 or 2019.2
361361

362-
NuGet requirements
362+
**NuGet requirements**
363363

364-
If importing the Mixed Reality Toolkit's NuGet packages, the following software is recommended.
364+
If importing the [Mixed Reality Toolkit NuGet packages](MRTKNuGetPackage.md), the following software is recommended..
365365

366366
- [NuGet for Unity](https://github.com/GlitchEnzo/NuGetForUnity)
367367

Documentation/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
href: HTKToMRTKPortingGuide.md
1212
- name: Building and Deploying MRTK
1313
href: BuildAndDeploy.md
14+
- name: NuGet Packages
15+
href: MRTKNuGetPackage.md
1416
- name: Performance
1517
href: Performance/PerfGettingStarted.md
1618
- name: Hologram Stabilization

0 commit comments

Comments
 (0)