microsoft / microsoft/VSExtensibility

Access Project Solutions

Open
#508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
440
Forks
63
Avg merge
2d 12h
Merged PRs (30d)
1

Description

I'm trying to write an extension which rebuilds all Project Solutions.
According to the official docs it's done using querySpace and RebuildAsync.
One of the Github Issues here suggests that
one can also access all Solutions using querySpace, like:

var solutions = await querySpace
     .Solutions

I'm trying this on the default Extensibility Template with the following code:

public override async Task ExecuteCommandAsync(IClientContext context, CancellationToken cancellationToken)
{
        var result = await querySpace.Solutions
                .RebuildAsync(cancellationToken);
}

However, querySpace throws an error, not appearing in the current context.

Could it be that docs and its features are out of sync, as of VS Version 17.14?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the default Extensibility Template's ExecuteCommandAsync entry point and reproduce the querySpace.Solutions.RebuildAsync call in Visual Studio 17.14. Compare the available context with the official action-query documentation and the referenced issue 392. Done means confirming whether this API is supported in the template and documenting the correct behavior or the documentation mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.