Skip to content

Use the NuGetPackageResolver to get the package directory path instead of using the environment variables ourselves. - #78

Merged
eerhardt merged 1 commit into
dotnet:masterfrom
eerhardt:FixPackageResolution
Aug 22, 2016
Merged

eerhardt merged 1 commit into
dotnet:masterfrom
eerhardt:FixPackageResolution

Conversation

@eerhardt

Copy link
Copy Markdown
Member

…d of using the environment variables ourselves.

Fix #24
Fix #76
/// <summary>
/// The path to the current project.
/// </summary>
[Required]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What if we passed in the project directory rather than the project path? Would that make sense so you don't need to call Path.GetDirectoryName, or is there another reason we need the full path to the csproj

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In my mind, using the path to the project makes sense if we ever needed anything from the project. It is sort of a "forward looking" thing.

If we ever needed the actual project path, we would need to change the API again, since you can have multiple projects in the same directory.

@brthor

brthor commented Aug 22, 2016

Copy link
Copy Markdown
Contributor

:shipit:

@eerhardt
eerhardt merged commit 8d05754 into dotnet:master Aug 22, 2016
@eerhardt
eerhardt deleted the FixPackageResolution branch August 22, 2016 22:03
nguerrera pushed a commit that referenced this pull request Oct 10, 2016
Use the NuGetPackageResolver to get the package directory path instead of using the environment variables ourselves.
mmitche pushed a commit to mmitche/sdk that referenced this pull request Jun 5, 2020
…xtIntoWebSDK

Move PreserveCompilationContext into the WebSDK
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.

2 participants