Skip to content

Commit

Permalink
fix: opening solutions in subfolders is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
iadonkey committed Sep 6, 2024
1 parent d96711e commit 09236c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TwinpackCore/Core/VisualStudio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ public IAutomationInterface Open(Config config, string tcversion="TC3.1")

OutputTcVersion = tcversion;
var remoteManagerTcVersion = FindTargetSystem(tcversion);
var filepath = Path.GetFullPath($"{config.WorkingDirectory}\\{config.Solution.Replace("/", "\\")}");
if (!File.Exists(filepath))
throw new FileNotFoundException("Solution could not be found in " + filepath);

_solution.Open(Path.GetFullPath($"{config.WorkingDirectory}\\{config.Solution.Replace("/", "\\")}"));
_solution.Open(filepath);
CloseAllWindows();
var projects = WaitProjects();

Expand Down

0 comments on commit 09236c4

Please sign in to comment.