Skip to content

Update the extension service creator to work when the extension package isn't installed#7087

Merged
wiwei merged 2 commits intomicrosoft:mrtk_developmentfrom
wiwei:issue7086
Jan 17, 2020
Merged

Update the extension service creator to work when the extension package isn't installed#7087
wiwei merged 2 commits intomicrosoft:mrtk_developmentfrom
wiwei:issue7086

Conversation

@wiwei
Copy link
Contributor

@wiwei wiwei commented Jan 17, 2020

Overview

The extension service creator wizard today looks for the MixedRealityToolkit.Extensions folder in order to place its newly generated content. This fails when the default extensions package isn't installed, because the folder doesn't exist. Note that it's more than just the folder that needs to exist - each of the MRTK folders also require a 'sentinel' file to be placed in them, so that the MixedRealityToolkitFiles.cs code can find them even when they are placed in arbitrary folders/locations within the project (to support placing the MRTK at arbitrary locations). As a result, the code that tries to re-create the extensions folder doesn't work (i.e. it doesn't do the sentinel file creation).

In reality, because these are generated files, they should really go into the MixedRealityToolkit.Generated folder, so I've changed it to avoid the default/inbox Extensions folder. Now it shares the same general destination as other wizard generated assets.

Changes

…nd instead of throwing an exception and ensure that the extension service creator is resilient to a missing Extensions folder
@wiwei
Copy link
Contributor Author

wiwei commented Jan 17, 2020

Note that MixedRealityToolkitFiles.cs wasn't technically necessary, but it currently throws an exception if the folder doesn't exist and I think it makes more sense to just return null instead of some archaic error.

…sionServiceCreator.cs

Co-Authored-By: Kurtis <kurtie@microsoft.com>
@keveleigh
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@wiwei wiwei merged commit 614466f into microsoft:mrtk_development Jan 17, 2020
@keveleigh keveleigh added this to the MRTK 2.4.0 milestone Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Create Extension Service" triggers exception when MixedRealityToolkit.Extensions is missing

2 participants