public async Task<string> GetSolutionFileName()
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
IVsSolution sol = (IVsSolution)_sccProvider.GetService(typeof(SVsSolution));
string solutionDirectory, solutionFile, solutionUserOptions;
if (sol.GetSolutionInfo(out solutionDirectory, out solutionFile, out solutionUserOptions) == VSConstants.S_OK)
{
return solutionFile;
}
else
{
return null;
}
}