Skip to content

Can I debug standalone .Net Core tool with Visual Studio 2022? #260

Answered by JarLob
matteo-tosi asked this question in Q&A
Discussion options

You must be logged in to vote

I also use VS2022 and don't have this issue. Since you can reproduce I would appreciate if you found what is going on and fixed it. Maybe it is related to

// Attempt to set the version of MSBuild.
var visualStudioInstances = MSBuildLocator.QueryVisualStudioInstances().ToArray();
var instance = visualStudioInstances.OrderByDescending(x => x.Version).FirstOrDefault();
if (instance != null)
{
if (parsedOptions.verbose)
Console.WriteLine($"Using MSBuild at '{instance.MSBuildPath}' to load projects.");
MSBuildLocator.RegisterInstance(instance);
}
?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@JarLob
Comment options

@JarLob
Comment options

@matteo-tosi
Comment options

@JarLob
Comment options

@JarLob
Comment options

Answer selected by matteo-tosi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants