-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add ability to supply an EvaluationContext to a directly created ProjectInstance #5006
Add ability to supply an EvaluationContext to a directly created ProjectInstance #5006
Conversation
56f8f44
to
6057552
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Can you add a test in ProjectEvaluationContext_Tests
to assert that the shared context is indeed getting reused between multiple ProjectInstance evaluations? One way that comes to mind is to count the number of EvaluationContext
instances that get created when instantiating multiple ProjectInstance
objects. SharingPolicy.Shared
should lead to having only one EvaluationContext
instance, and SharingPolicy.Isolated
should lead to the same number of EvaluationContext
and ProjectInstance
instances.
6057552
to
30ce05f
Compare
/// <returns></returns> | ||
public static ProjectInstance FromFile(string file, ProjectOptions options) | ||
{ | ||
// string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, EvaluationContext evaluationContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol oops. I had pasted this from the ctor I was targeting to get the right arguments in the right order since intellisense kept choosing the wrong one.
…ectInstance (dotnet#5006) Add ability to supply an EvaluationContext to a directly created ProjectInstance
No description provided.