File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const wstring Solution::solutionName(const Options &options)
4747
4848void Solution::write (const Options &options,const vector<Project> &projects)
4949{
50- wstring solutionFileName = options.rootDirectory + solutionName (options);
50+ wstring solutionFileName= options.rootDirectory + solutionName (options);
5151 wofstream file (solutionFileName);
5252 if (!file)
5353 throwException (L" Failed to open file: " + solutionFileName);
@@ -69,9 +69,13 @@ void Solution::write(const Options &options,const vector<Project> &projects)
6969
7070void Solution::writeConfigDirectory (wofstream &file,const Options& options)
7171{
72+ wstring binDirectory=options.rootDirectory + L" Artifacts\\ bin" ;
73+ if (!filesystem::exists (binDirectory))
74+ return ;
75+
7276 file << " Project(\" {2150E333-8FDC-42A3-9474-1A3956D46DE8}\" ) = \" Config\" , \" Config\" , \" {" << createGuid (L" Config" ) << " }\" " << endl;
7377 file << " \t ProjectSection(SolutionItems) = preProject" << endl;
74- for (const auto & entry : filesystem::directory_iterator (options. rootDirectory + L" Artifacts \\ bin " ))
78+ for (const auto & entry : filesystem::directory_iterator (binDirectory ))
7579 {
7680 if (!entry.is_regular_file ())
7781 continue ;
You can’t perform that action at this time.
0 commit comments