Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand environment variables in codeBase before loading InProcDataCollector extension #1871

Conversation

bradselw
Copy link
Member

Description

Allow users to use environment variables in the codeBase field for InProcDataCollector definitions in .runsettings files.

@@ -143,7 +143,7 @@ private Assembly LoadInProcDataCollectorExtension(string codeBase)
Assembly assembly = null;
try
{
assembly = this.assemblyLoadContext.LoadAssemblyFromPath(codeBase);
assembly = this.assemblyLoadContext.LoadAssemblyFromPath(Environment.ExpandEnvironmentVariables(codeBase));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bradselw Can you please add a test for this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bradselw Gentle ping.

@singhsarab singhsarab closed this Nov 26, 2019
@singhsarab singhsarab reopened this Nov 26, 2019
@singhsarab singhsarab merged commit 4ce924b into microsoft:master Nov 29, 2019
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.

3 participants