-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Generate targets in metaproj #1497
Conversation
This allows users to access any target when building a solution. The target may or may not exist but this will create the corresponding targets in the `.metaproj`. I had to pass along the target names from the build request all the way down to the solution generator via ReadOnlyCollections. Closes dotnet#1275
@@ -140,6 +142,8 @@ internal class BuildRequestConfiguration : IEquatable<BuildRequestConfiguration> | |||
|
|||
#endregion | |||
|
|||
internal IReadOnlyCollection<string> TargetNames { get; } |
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.
This could probably use a doc comment.
@cdmihai Please review |
@@ -7,6 +7,7 @@ | |||
|
|||
using System; | |||
using System.Collections.Generic; | |||
using System.Collections.ObjectModel; |
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.
Who needs this namespace?
@@ -104,6 +112,11 @@ internal class SolutionProjectGenerator | |||
private ILoggingService _loggingService; | |||
|
|||
/// <summary> | |||
/// The list of targets specified to use. | |||
/// </summary> | |||
private readonly IReadOnlyCollection<string> _targetNames = new Collection<string>(); |
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.
Is it worth instantiating this? It gets overwritten in the constructor
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.
This reverts commit bdb4af3.
This allows users to access any target when building a solution. The target may or may not exist but this will create the corresponding targets in the
.metaproj
.I had to pass along the target names from the build request all the way down to the solution generator via ReadOnlyCollections.
Closes #1275