void GetAssemblyPath()
{
if (File.Exists(MetadataAssembly))
{
return;
}
var combine = Path.Combine(Environment.CurrentDirectory, MetadataAssembly);
if (File.Exists(combine))
{
MetadataAssembly = combine;
return;
}
if (!MetadataAssembly.Contains(Path.DirectorySeparatorChar))
{
var assemblyPath = Directory.GetFiles(PackageDirectory, MetadataAssembly, SearchOption.AllDirectories).FirstOrDefault();
if (assemblyPath != null)
{
MetadataAssembly= assemblyPath;
return;
}
}
throw new ExpectedException(string.Format("Could not find MetadataAssembly file matching '{0}'.", MetadataAssembly));
}