diff --git a/build.proj b/build.proj index d19f226339cba..44120e1cb61c6 100644 --- a/build.proj +++ b/build.proj @@ -171,14 +171,15 @@ - + - + + diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/FilterOutAutoRestLibraries.cs b/tools/Microsoft.WindowsAzure.Build.Tasks/FilterOutAutoRestLibraries.cs index 6cfdae1bde6ed..97bbeb8c973b1 100644 --- a/tools/Microsoft.WindowsAzure.Build.Tasks/FilterOutAutoRestLibraries.cs +++ b/tools/Microsoft.WindowsAzure.Build.Tasks/FilterOutAutoRestLibraries.cs @@ -51,6 +51,14 @@ public class FilterOutAutoRestLibraries : Task public override bool Execute() { + System.Text.StringBuilder sb = new System.Text.StringBuilder(); + foreach (ITaskItem sln in AllLibraries) + { + sb.AppendFormat("{0},", sln.GetMetadata("FullPath")); + } + + Log.LogMessage(MessageImportance.High, "We have found {0}", sb.ToString()); + var nonNetCoreAutoRestLibraries = new List(); var netCoreAutoRestLibraries = new List(); var netCoreLibraryTestOnes = new List(); @@ -95,9 +103,11 @@ public override bool Execute() if (nPkgsList != null) { //We need to filter out projects from the final output to build and publish limited set of projects - string projectDirPath = Path.GetDirectoryName(nugetProjects[0]); - string projectDirName = Path.GetFileName(projectDirPath); - string match = nPkgsList.Find((pn) => pn.Equals(projectDirName, System.StringComparison.OrdinalIgnoreCase)); + //Here we need to get to the name of the nuget.proj file with .nuget.proj + string nugetProjName = Path.GetFileName(nugetProjects[0]); + string projNameWithoutExt = Path.GetFileNameWithoutExtension(nugetProjName); + projNameWithoutExt = Path.GetFileNameWithoutExtension(projNameWithoutExt); + string match = nPkgsList.Find((pn) => pn.Equals(projNameWithoutExt, System.StringComparison.OrdinalIgnoreCase)); if (!string.IsNullOrEmpty(match)) { nonNetCoreAutoRestLibraries.Add(solution); diff --git a/tools/nuget.targets b/tools/nuget.targets index e450a11bf51e7..94dbdcfee7817 100644 --- a/tools/nuget.targets +++ b/tools/nuget.targets @@ -95,7 +95,9 @@ - + + + -Source $(NuGetPublishingSource)