зеркало из https://github.com/microsoft/AMBROSIA.git
Added a copy instruction for AmbrosiaCS.csproj
This commit is contained in:
Родитель
3f6027483b
Коммит
b0cd27270d
|
@ -102,4 +102,10 @@
|
|||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ContentWithTargetPath Include="AmbrosiaCS.csproj">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<TargetPath>AmbrosiaCS.csproj</TargetPath>
|
||||
</ContentWithTargetPath>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -159,12 +159,7 @@ namespace Ambrosia
|
|||
|
||||
var conditionToPackageInfo = new Dictionary<string, List<Tuple<string, string, string>>>();
|
||||
|
||||
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 projFile = $@"{Assembly.GetExecutingAssembly().GetName().Name}.csproj";
|
||||
var doc = XDocument.Load(projFile);
|
||||
|
||||
foreach (var itemGroup in doc.Descendants("ItemGroup"))
|
||||
|
|
Загрузка…
Ссылка в новой задаче