зеркало из https://github.com/microsoft/AMBROSIA.git
AmbrosiaCS to look for Ambrosia.csproj in bin path instead of dependencies dir
This commit is contained in:
Родитель
923757747c
Коммит
3f6027483b
|
@ -159,7 +159,12 @@ namespace Ambrosia
|
|||
|
||||
var conditionToPackageInfo = new Dictionary<string, List<Tuple<string, string, string>>>();
|
||||
|
||||
var projFile = Path.Combine(_binPath, $@"{Assembly.GetExecutingAssembly().GetName().Name}.csproj");
|
||||
var execAssembly = Assembly.GetExecutingAssembly();
|
||||
var projFile = Path.Combine(Path.GetDirectoryName(execAssembly.Location), $@"{execAssembly.GetName().Name}.csproj");
|
||||
if (!File.Exists(projFile))
|
||||
{
|
||||
throw new Exception($"Unable to find {Path.GetFileName(projFile)} in bin path: {Path.GetDirectoryName(projFile)}");
|
||||
}
|
||||
var doc = XDocument.Load(projFile);
|
||||
|
||||
foreach (var itemGroup in doc.Descendants("ItemGroup"))
|
||||
|
|
Загрузка…
Ссылка в новой задаче