Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! Import Windows Forms related props and targets into Windows De…
…sktop
  • Loading branch information
RussKie committed Jul 23, 2021
commit 67fdbea2feb65c222b85a8d3469aad92532a7674
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PackagingContent Include="useSharedDesignerContext.txt" SubFolder="root" />
</ItemGroup>

<!-- Windows Forms specific -->
<Import Project="$(RepositoryEngineeringDir)WindowsFormsImports.targets" />
<!-- Windows Forms validation and packaging -->
<Import Project="Microsoft.NET.Sdk.WindowsDesktop.WinForms.Packaging.targets" />

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Target Name="_ValidateWindowsFormsPackagingContent">
<PropertyGroup>
<_WindowsFormsContentPath>$(_WindowsFormsNuGetPath)\sdk\dotnet-wpf\*</_WindowsFormsContentPath>
<_WindowsFormsRequiredFileName>Microsoft.NET.SDk.WindowsDesktop.WindowsForms</_WindowsFormsRequiredFileName>
<_WindowsFormsRequiredFileName>Microsoft.NET.Sdk.WindowsDesktop.WindowsForms</_WindowsFormsRequiredFileName>
</PropertyGroup>

<Error Text="Unable to resolve path to Microsoft.Private.Winforms NuGet package. Is %24(PkgMicrosoft_Private_Winforms) defined?"
Expand All @@ -23,7 +23,7 @@
<ItemGroup>
<!-- Enumerate all transported files -->
<_WindowsFormsContent Include="$(_WindowsFormsContentPath)" />
<!-- ...and verify Microsoft.NET.SDk.WindowsDesktop.WindowsForms.props/.targets are present -->
<!-- ...and verify Microsoft.NET.Sdk.WindowsDesktop.WindowsForms.props/.targets are present -->
<_WindowsFormsContentFiles Include="@(_WindowsFormsContent->'%(FileName)%(Extension)')"
Condition=" '%(FileName)%(Extension)' == '$(_WindowsFormsRequiredFileName).props'
or '%(FileName)%(Extension)' == '$(_WindowsFormsRequiredFileName).targets' "/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@
These come via the Windows Forms transport package, that can be found under
https://github.com/dotnet/winforms/tree/main/pkg/Microsoft.Private.Winforms/sdk
-->
<Import Project="Microsoft.NET.SDk.WindowsDesktop.WindowsForms.props" />
<Import Project="Microsoft.NET.Sdk.WindowsDesktop.WindowsForms.props" />

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@
These come via the Windows Forms transport package, that can be found under
https://github.com/dotnet/winforms/tree/main/pkg/Microsoft.Private.Winforms/sdk
-->
<Import Project="Microsoft.NET.SDk.WindowsDesktop.WindowsForms.targets" Condition="'$(UseWindowsForms)' == 'true'"/>
<Import Project="Microsoft.NET.Sdk.WindowsDesktop.WindowsForms.targets" Condition="'$(UseWindowsForms)' == 'true'"/>

</Project>