relatedFiles = tempRelatedFiles.Values.ToArray ();
resolvedDependencyFiles = tempResolvedDepFiles.Values.ToArray ();
+#if XBUILD_14
+ DependsOnSystemRuntime = resolvedDependencyFiles.Any (x => Path.GetFileName (x.ItemSpec) == "System.Runtime.dll").ToString ();
+#endif
+
tempResolvedFiles.Clear ();
tempCopyLocalFiles.Clear ();
tempSatelliteFiles.Clear ();
var spath_index = 0;
foreach (string spath in search_paths) {
+ if (string.IsNullOrEmpty (spath))
+ continue;
assembly_resolver.LogSearchMessage ("For searchpath {0}", spath);
-
+
// The first value of search_paths can be the parent assembly directory.
// In that case the value would be treated as a directory.
// This code checks if we should treat the value as a TargetFramework assembly.
// Doing so avoids CopyLocal beeing set to true.
if (spath_index++ == 0 && targetFrameworkDirectories != null) {
foreach (string fpath in targetFrameworkDirectories) {
+ if (string.IsNullOrEmpty (fpath))
+ continue;
if (String.Compare (
Path.GetFullPath (spath).TrimEnd (Path.DirectorySeparatorChar),
Path.GetFullPath (fpath).TrimEnd (Path.DirectorySeparatorChar),
public ITaskItem[] CopyLocalFiles {
get { return copyLocalFiles; }
}
+
+#if XBUILD_14
+ [Output]
+ public string DependsOnSystemRuntime {
+ get; private set;
+ }
+#endif
[Output]
public ITaskItem[] FilesWritten {