Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Allow Configuration.MetadataDocumentUri to use relative paths (ref: #76) #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JohnLBevan
Copy link

Currently the example code has MetadataDocumentUri pointing to a URI.
However, in most scenarios a URI cannot be used; since authenticatoin would be required.
In such scenarios, the solution allows a local filename to be specified. However, currently it requires that this metadata file be specified as an absolute path. This will cause issues where multiple developers are working with the same solution, but have different paths for their repositories.

To resolve this, I propose adding a new property, ProjectRelativeMetadataDocumentUri. When MetadataDocumentUri has a value this new property will be ignored. However, when ProjectRelativeMetadataDocumentUri is null the new property can be used. Host.ResolvePath(ProjectRelativeMetadataDocumentUri) can then be used when importing the configuration in ApplyParametersFromConfigurationClass() to resolve the relative path to an absolute one.

@msftclas
Copy link

msftclas commented Sep 27, 2018

CLA assistant check
All CLA requirements met.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants