From 9f6cc81ee0cffc064741edd9fa8d2e1dc9fe11fa Mon Sep 17 00:00:00 2001 From: "Ryland 41491307+ryalanms@users.noreply.github.com" <41491307+ryalanms@users.noreply.github.com> Date: Fri, 14 Jun 2019 15:36:18 -0700 Subject: [PATCH 1/2] Restore PackageReferences in temporary assembly projects --- .../PresentationBuildTasks-Net48.baseline.txt | 12 +- .../Microsoft.WinFx.targets | 61 ++- .../CreateTemporaryTargetAssemblyProject.cs | 391 ++++++++++++++++++ .../GenerateTemporaryTargetAssembly.cs | 381 ++--------------- .../Tasks/Windows/RunProjectBuildTarget.cs | 90 ++++ .../PresentationBuildTasks.csproj | 2 + 6 files changed, 578 insertions(+), 359 deletions(-) create mode 100644 src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/CreateTemporaryTargetAssemblyProject.cs create mode 100644 src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/RunProjectBuildTarget.cs diff --git a/src/Microsoft.DotNet.Wpf/ApiCompat/Baselines/PresentationBuildTasks-Net48.baseline.txt b/src/Microsoft.DotNet.Wpf/ApiCompat/Baselines/PresentationBuildTasks-Net48.baseline.txt index 1f116a8e11d..ae81db9e325 100644 --- a/src/Microsoft.DotNet.Wpf/ApiCompat/Baselines/PresentationBuildTasks-Net48.baseline.txt +++ b/src/Microsoft.DotNet.Wpf/ApiCompat/Baselines/PresentationBuildTasks-Net48.baseline.txt @@ -1,3 +1,13 @@ Compat issues with assembly PresentationBuildTasks: +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.CompileTypeName.get()' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.CompileTypeName.set(System.String)' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.GeneratedCodeFiles.get()' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.GeneratedCodeFiles.set(Microsoft.Build.Framework.ITaskItem[])' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.MSBuildBinPath.get()' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.MSBuildBinPath.set(System.String)' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.ReferencePath.get()' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.ReferencePath.set(Microsoft.Build.Framework.ITaskItem[])' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.ReferencePathTypeName.get()' does not exist in the implementation but it does exist in the contract. +MembersMustExist : Member 'Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly.ReferencePathTypeName.set(System.String)' does not exist in the implementation but it does exist in the contract. TypesMustExist : Type 'Microsoft.Build.Tasks.Windows.GetWinFXPath' does not exist in the implementation but it does exist in the contract. -Total Issues: 1 +Total Issues: 11 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFx.targets b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFx.targets index 5496449671b..e1a7f495417 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFx.targets +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFx.targets @@ -20,6 +20,8 @@ + + @@ -380,6 +382,8 @@ + CreateTemporaryTargetAssemblyProject; + RestoreTemporaryTargetAssemblyProject; GenerateTemporaryTargetAssembly; MarkupCompilePass2; AfterMarkupCompilePass2; @@ -400,6 +404,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + +