Skip to content
Snippets Groups Projects

366: Resolve "tap package create: Cannot resolve OpenTap dependency if manually specified and not running from the OpenTAP folder"

+ 6
6
@@ -41,12 +41,12 @@ namespace OpenTap.Package
// Add normal package from OpenTAP folder
package_files.AddRange(PackageDef.GetPackageMetadataFilesInTapInstallation(TapPath));
//if (!package_files.Any())
//{
// // Add packages from executing folder ie. location of tap.exe if working directory does not contain OpenTap packages
// var executingTapPath = Path.GetDirectoryName(this.GetType().Assembly.Location);
// package_files.AddRange(PackageDef.GetPackageMetadataFilesInTapInstallation(executingTapPath));
//}
if (!package_files.Any())
{
// Add packages from executing folder ie. location of tap.exe if working directory does not contain OpenTap packages
var executingTapPath = Path.GetDirectoryName(this.GetType().Assembly.Location);
package_files.AddRange(PackageDef.GetPackageMetadataFilesInTapInstallation(executingTapPath));
}
// Add system wide packages
package_files.AddRange(PackageDef.GetSystemWidePackages());
Loading