Skip to content

Conversation

rladuca
Copy link
Member

@rladuca rladuca commented Dec 28, 2019

Fixes #2363

Ensure the WindowsDesktopSdk RepoLocation overrides all others. This is key to packaging PresentationBuildTasks and associated files.

…is key to packaging PresentationBuildTasks and associated files.
@rladuca rladuca added this to the 5.0 milestone Dec 28, 2019
@rladuca rladuca self-assigned this Dec 28, 2019
@ghost ghost requested a review from vatsan-madhavan December 28, 2019 07:10
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Dec 28, 2019
@ghost ghost requested a review from SamBent December 28, 2019 07:10

<!-- WindowsDesktopSdk overrides Internal, External etc. -->
<RepoLocation Condition="'$(RepoLocation)' == '' And $(WindowsDesktopSdkProject.Contains('$(NormalizedMSBuildProjectName)'))">WindowsDesktopSdk</RepoLocation>
<RepoLocation Condition="$(WindowsDesktopSdkProject.Contains('$(NormalizedMSBuildProjectName)'))">WindowsDesktopSdk</RepoLocation>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vatsan-madhavan I was thinking of adding something here to specifically check for overriding internal or external, but I felt that was overkill and we always want the SDK to package properly.

@rladuca rladuca added the auto_merge bot-command label Jan 6, 2020
@ghost
Copy link

ghost commented Jan 6, 2020

Hello @rladuca!

Because this pull request has the auto_merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 89536e1 into dotnet:master Jan 6, 2020
@rladuca
Copy link
Member Author

rladuca commented Jan 6, 2020

Looks like the bot just up and merged this. @vatsan-madhavan if there are any comments you have on this I'll update with a new PR, for now I think this should just solve the immediate problem.

@vatsan-madhavan
Copy link
Member

vatsan-madhavan commented Jan 13, 2020

Why was targets being picked up but not props - what makes props different?

<!--
Incorporate Microsoft.WinFx.targets in nuget packages under
content\targets\
-->
<ItemGroup>
<PackagingContent Include="$(MSBuildThisFileDirectory)Microsoft.WinFx.props" SubFolder="root\targets" />
<PackagingContent Include="$(MSBuildThisFileDirectory)Microsoft.WinFx.targets" SubFolder="root\targets" />
</ItemGroup>

@rladuca
Copy link
Member Author

rladuca commented Jan 13, 2020

Why was targets being picked up but not props - what makes props different?

<!--
Incorporate Microsoft.WinFx.targets in nuget packages under
content\targets\
-->
<ItemGroup>
<PackagingContent Include="$(MSBuildThisFileDirectory)Microsoft.WinFx.props" SubFolder="root\targets" />
<PackagingContent Include="$(MSBuildThisFileDirectory)Microsoft.WinFx.targets" SubFolder="root\targets" />
</ItemGroup>

Nothing in PBT was packaged properly. If you look at the WindowsDesktop SDK package, you'll see everything PBT (including WinFX) was missing. They were landing in our private transport package.

@vatsan-madhavan
Copy link
Member

I just changed your code back and packaged it locally - windowsdesktop.nupkg built correctly for me.

vatsan-madhavan pushed a commit that referenced this pull request Feb 12, 2020
…is key to packaging PresentationBuildTasks and associated files. (#2366)
@rladuca rladuca deleted the fixuppbtinc branch March 5, 2020 20:46
@ghost ghost locked as resolved and limited conversation to collaborators Apr 13, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure auto_merge bot-command PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.Net.Sdk.WindowsDesktop missing Mifcrosoft.WinFx.props

2 participants