mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed case of installing library from mismatched path
This commit is contained in:
parent
069960ad71
commit
e8678b8b82
1 changed files with 14 additions and 0 deletions
|
@ -183,6 +183,20 @@ namespace IDE.ui
|
|||
delete verSpec;
|
||||
return;
|
||||
}
|
||||
if (project.mProjectName != entry.mName)
|
||||
{
|
||||
gApp.OutputLineSmart("WARNING: Project directory name '{}' does not match project name '{}' specified in '{}'.\n Project will be referenced by relative path rather than by name.", entry.mName, project.mProjectName, project.mProjectPath);
|
||||
|
||||
String relProjectPath = scope .();
|
||||
Path.GetRelativePath(project.mProjectDir, gApp.mWorkspace.mDir, relProjectPath);
|
||||
for (var projectSpec in gApp.mWorkspace.mProjectSpecs)
|
||||
{
|
||||
if (projectSpec.mProjectName == project.mProjectName)
|
||||
{
|
||||
projectSpec.mVerSpec.SetPath(relProjectPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
project.mLocked = true;
|
||||
project.mLockedDefault = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue