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

Generate targets in metaproj #1497

Merged
merged 3 commits into from
Jan 3, 2017
Merged

Generate targets in metaproj #1497

merged 3 commits into from
Jan 3, 2017

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Dec 19, 2016

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

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; }
Copy link
Contributor

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.

@jeffkl
Copy link
Contributor Author

jeffkl commented Dec 20, 2016

@cdmihai Please review

@@ -7,6 +7,7 @@

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
Copy link
Contributor

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>();
Copy link
Contributor

@cdmihai cdmihai Dec 20, 2016

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, not all paths write to this fields. Ignore.


In reply to: 93343487 [](ancestors = 93343487)

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.

5 participants