mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
This commit is contained in:
parent
596dc568a7
commit
e58cc3d1db
1 changed files with 2 additions and 2 deletions
|
|
@ -77,9 +77,9 @@ namespace Cosmos.Compiler.Builder {
|
||||||
int xPos = xCalculatedPath.LastIndexOf("source");
|
int xPos = xCalculatedPath.LastIndexOf("source");
|
||||||
if (xPos == -1)
|
if (xPos == -1)
|
||||||
{
|
{
|
||||||
xPos = xCalculatedPath.LastIndexOf("BuildOutput");
|
xPos = xCalculatedPath.LastIndexOf("buildoutput");
|
||||||
if(xPos == -1) {
|
if(xPos == -1) {
|
||||||
throw new Exception("Unable to find directory named 'source' when using CurrentDirectory.");
|
throw new Exception("Unable to find directory named 'BuildOutput' or 'Source' when using CurrentDirectory. (CurrentDirectory = '" +Environment.CurrentDirectory + "')");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xCalculatedPath = xCalculatedPath.Substring(0, xPos) + @"Build\";
|
xCalculatedPath = xCalculatedPath.Substring(0, xPos) + @"Build\";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue