mirror of
https://github.com/Ellpeck/GameBundle.git
synced 2024-11-25 18:08:34 +01:00
this is also the current directory
This commit is contained in:
parent
ee2c51e648
commit
347aa17333
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ namespace GameBundle {
|
|||
private static FileInfo GetProjectFile(Options options) {
|
||||
if (!string.IsNullOrEmpty(options.SourceFile))
|
||||
return new FileInfo(options.SourceFile);
|
||||
var dir = new DirectoryInfo(Environment.CurrentDirectory);
|
||||
var dir = new DirectoryInfo(".");
|
||||
foreach (var file in dir.EnumerateFiles()) {
|
||||
if (Path.GetExtension(file.FullName).Contains("proj"))
|
||||
return file;
|
||||
|
|
Loading…
Reference in a new issue