You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Used: VS 17.9.6 Compiler version 4.9.0-3.24121.1 (a98c90d) .NET 8 C#12
Steps to Reproduce:
Create a new project with the template VisualStudio.Extensibility Extension without VSSDK Compatibility
In the Command1.cs file inside the ExecuteCommandAsync method try to open a project/solution, here's a sample
public override async Task ExecuteCommandAsync(IClientContext context, CancellationToken cancellationToken)
{
try
{
// I've tried several versions, the behaviour does not change
MSBuildLocator.RegisterDefaults();
using var workspace = MSBuildWorkspace.Create();
// Does not open the project neither returns some error
var project = await workspace.OpenProjectAsync("{path to some project}");
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
Expected Behavior:
open the project or throw some error.
I don't know if what I am trying to do is possible or if it is the right way to do it but I would have expected at least an error of some kind.
Actual Behavior:
the process does not go on, it seems to go on an endless wait
The text was updated successfully, but these errors were encountered:
Version Used: VS 17.9.6 Compiler version 4.9.0-3.24121.1 (a98c90d) .NET 8 C#12
Steps to Reproduce:
Expected Behavior:
open the project or throw some error.
I don't know if what I am trying to do is possible or if it is the right way to do it but I would have expected at least an error of some kind.
Actual Behavior:
the process does not go on, it seems to go on an endless wait
The text was updated successfully, but these errors were encountered: