-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore PackageReferences in temporary assembly projects to import build extensions #1056
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
<UsingTask TaskName="Microsoft.Build.Tasks.Windows.FileClassifier" AssemblyFile="$(_PresentationBuildTasksAssembly)" /> | ||
<UsingTask TaskName="Microsoft.Build.Tasks.Windows.MarkupCompilePass2" AssemblyFile="$(_PresentationBuildTasksAssembly)" /> | ||
<UsingTask TaskName="Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly" AssemblyFile="$(_PresentationBuildTasksAssembly)" /> | ||
<UsingTask TaskName="Microsoft.Build.Tasks.Windows.CreateTemporaryTargetAssemblyProject" AssemblyFile="$(_PresentationBuildTasksAssembly)" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason you chose |
||
<UsingTask TaskName="Microsoft.Build.Tasks.Windows.RunProjectBuildTarget" AssemblyFile="$(_PresentationBuildTasksAssembly)" /> | ||
<UsingTask TaskName="Microsoft.Build.Tasks.Windows.MergeLocalizationDirectives" AssemblyFile="$(_PresentationBuildTasksAssembly)" /> | ||
|
||
|
||
|
@@ -380,6 +382,8 @@ | |
<PropertyGroup> | ||
|
||
<MarkupCompilePass2ForMainAssemblyDependsOn> | ||
CreateTemporaryTargetAssemblyProject; | ||
RestoreTemporaryTargetAssemblyProject; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would recommend renaming this target as "RunRestoreTargetOnTemporaryTargetAssemblyProject" |
||
GenerateTemporaryTargetAssembly; | ||
MarkupCompilePass2; | ||
AfterMarkupCompilePass2; | ||
|
@@ -400,6 +404,57 @@ | |
|
||
</Target> | ||
|
||
<!-- | ||
|
||
========================================== | ||
CreateTemporaryTargetAssemblyProject | ||
========================================== | ||
|
||
Name : CreateTemporaryTargetAssemblyProject | ||
|
||
--> | ||
|
||
<Target Name="CreateTemporaryTargetAssemblyProject" | ||
Condition="'$(_RequireMCPass2ForMainAssembly)' == 'true' " > | ||
|
||
<CreateTemporaryTargetAssemblyProject | ||
CurrentProject="$(MSBuildProjectFullPath)" | ||
GeneratedCodeFiles="@(_GeneratedCodeFiles)" | ||
CompileTypeName="Compile" | ||
ReferencePath="@(ReferencePath)" | ||
ReferencePathTypeName="ReferencePath" > | ||
<Output TaskParameter="TemporaryTargetAssemblyProjectName" PropertyName="_TemporaryTargetAssemblyProjectName"/> | ||
</CreateTemporaryTargetAssemblyProject> | ||
|
||
<Message Text="GenerateTemporaryTargetAssembyProject project is $(_TemporaryTargetAssemblyProjectName)" /> | ||
|
||
</Target> | ||
|
||
<!-- | ||
|
||
========================================== | ||
RestoreTemporaryTargetAssemblyProject | ||
========================================== | ||
|
||
Name : RestoreTemporaryTargetAssemblyProject | ||
|
||
--> | ||
|
||
<Target Name="RestoreTemporaryTargetAssemblyProject" | ||
Condition="'$(_RequireMCPass2ForMainAssembly)' == 'true' " > | ||
|
||
<Message Text="RestoreTemporaryTargetAssemblyProject project is $(_TemporaryTargetAssemblyProjectName)" Condition="'$(MSBuildTargetsVerbose)' == 'true'" /> | ||
|
||
<RunProjectBuildTarget | ||
ProjectName="$(_TemporaryTargetAssemblyProjectName)" | ||
BuildTarget="Restore" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use a pattern similar to that in |
||
/> | ||
|
||
<CreateItem Include="$(IntermediateOutputPath)$(TargetFileName)" > | ||
<Output TaskParameter="Include" ItemName="AssemblyForLocalTypeReference" /> | ||
</CreateItem> | ||
|
||
</Target> | ||
|
||
<!-- | ||
|
||
|
@@ -418,13 +473,9 @@ | |
|
||
<GenerateTemporaryTargetAssembly | ||
CurrentProject="$(MSBuildProjectFullPath)" | ||
MSBuildBinPath="$(MSBuildBinPath)" | ||
ReferencePathTypeName="ReferencePath" | ||
CompileTypeName="Compile" | ||
GeneratedCodeFiles="@(_GeneratedCodeFiles)" | ||
ReferencePath="@(ReferencePath)" | ||
IntermediateOutputPath="$(IntermediateOutputPath)" | ||
AssemblyName="$(AssemblyName)" | ||
TemporaryTargetAssemblyProjectName="$(_TemporaryTargetAssemblyProjectName)" | ||
CompileTargetName="$(_CompileTargetNameForLocalType)" | ||
GenerateTemporaryTargetAssemblyDebuggingInformation="$(GenerateTemporaryTargetAssemblyDebuggingInformation)" | ||
> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a larger unrelated questions we should try to address - namely whether ref-assembly for PresentationBuildTasks needs to be rolled into the ref-pack for .NET Core 3.0.
@nguerrera?