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

Call TestUtilities.InitUtilities appropriately #11148

Merged
merged 2 commits into from
May 6, 2016

Conversation

basoundr
Copy link
Contributor

@basoundr basoundr commented May 6, 2016

Calling TestUtilities.InitUtilities from within the library, instead of a csx file, will result in the path of the file where the library was initially built to be passed to InitUtilities which is not the expected behavior. Fixing it in all occurence

Also removing some unnecessary and unused helpers

Tagging @KevinH-MS @rchande @TyOverby for review

Calling TestUtilities.InitUtilities from within the library, instead of a csx file, will result in the path of the file where the library was initially built to be passed to InitUtilities which is not the expected behavior. Fixing it in all occurence

Also removing some unnecessary and unused helpers
/// Y:/Project/SomeLibarayFile.cs then when the library is used in any machine where there is no Y: drive then we will see errors saying
/// invalid directory path. Also note that <param name="sourceFilePath"/> will be set to "Y:/Project/SomeLibarayFile.cs" and not set to
/// the path of the file from where the call to SomeLibarayFile.cs which in turn called <see cref="InitUtilities(string)"/>
/// </summary>
public static void InitUtilities([CallerFilePath] string sourceFilePath = "")
Copy link
Contributor

Choose a reason for hiding this comment

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

InitUtilitiesFromCsx?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@rchande
Copy link
Contributor

rchande commented May 6, 2016

👍

@basoundr basoundr merged commit 6057ae8 into dotnet:master May 6, 2016
@basoundr basoundr deleted the fixInitUtilitiesPath branch May 6, 2016 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants