Skip to content
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

WinUI #548

Merged
merged 105 commits into from
Mar 25, 2021
Merged

WinUI #548

Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
44c8725
WinUI3 Desktop Head
PureWeen Mar 18, 2021
7a003f3
- Fix up Compatibility Proiect
PureWeen Mar 18, 2021
6cc08c2
- fix conditionals
PureWeen Mar 18, 2021
0c79a57
- temp remove windows pack restriction
PureWeen Mar 18, 2021
449cda8
- namespace fixes
PureWeen Mar 19, 2021
c2db3cf
- winui
PureWeen Mar 19, 2021
4e46a9c
- add WinUI to SLN
PureWeen Mar 22, 2021
70fbbe6
- change handlers to windows
PureWeen Mar 22, 2021
a4f44f1
- fixes
PureWeen Mar 22, 2021
b2852ed
- additional handlers
PureWeen Mar 22, 2021
8a1951b
- essentials fixes
PureWeen Mar 22, 2021
4fe62ca
- msbuild
PureWeen Mar 22, 2021
351ade9
Merge branch 'main' into winui
PureWeen Mar 22, 2021
a01ce1c
- add more
PureWeen Mar 22, 2021
089f1a6
- fix comment
PureWeen Mar 22, 2021
ecd003a
- transitive
PureWeen Mar 23, 2021
3da6a43
- check for windows
PureWeen Mar 23, 2021
35ec6f0
- windows conditional
PureWeen Mar 23, 2021
7d3dcb4
- vs path
PureWeen Mar 23, 2021
747ce7c
- restore;build
PureWeen Mar 23, 2021
dc9c748
- remove target
PureWeen Mar 23, 2021
3753842
- build first
PureWeen Mar 23, 2021
ae81009
-remove
PureWeen Mar 23, 2021
3ff5436
Merge branch 'main' into winui
mattleibow Mar 23, 2021
475ae82
Building again!
mattleibow Mar 23, 2021
36b08c9
- add global.json file
PureWeen Mar 23, 2021
b4a5ab2
- set MauiPlatforms
PureWeen Mar 23, 2021
6f66c5a
- remove things
PureWeen Mar 23, 2021
f40e46d
Make it at least run
mattleibow Mar 23, 2021
49f8f34
Merge branch 'winui' of https://github.com/dotnet/maui into winui
mattleibow Mar 23, 2021
b24612f
- split out restore/build
PureWeen Mar 23, 2021
133bf06
- magic?
PureWeen Mar 23, 2021
191090e
- 5
PureWeen Mar 23, 2021
299b7cf
Put stuff here and try more
mattleibow Mar 23, 2021
765bcec
- add restore
PureWeen Mar 23, 2021
259855c
Merge branch 'main' into winui
PureWeen Mar 23, 2021
7d6cdeb
- fix essentials
PureWeen Mar 23, 2021
469b27b
Get it closer
mattleibow Mar 23, 2021
97ce309
Merge remote-tracking branch 'origin/winui' into dev/windows
mattleibow Mar 23, 2021
42fb133
Go simple or go home
mattleibow Mar 23, 2021
872de4d
diffs
mattleibow Mar 23, 2021
f22494c
- net5 checks
PureWeen Mar 23, 2021
01c5d59
- winui fixes
PureWeen Mar 23, 2021
fe47f9a
- files
PureWeen Mar 23, 2021
5ee27aa
- preview versions
PureWeen Mar 23, 2021
86f3840
- maybe?
PureWeen Mar 23, 2021
213bcd2
- add code back in
PureWeen Mar 23, 2021
26c7bba
Update package.ps1
jonathanpeppers Mar 23, 2021
2a13e1c
Whoops
jonathanpeppers Mar 23, 2021
ff1dfb4
Update package.ps1
jonathanpeppers Mar 23, 2021
4666feb
- fixed pri runtime paths
PureWeen Mar 23, 2021
fe3ca1a
- copy xbf files around
PureWeen Mar 24, 2021
8836ce7
- fix
PureWeen Mar 24, 2021
78303c3
- fix path
PureWeen Mar 24, 2021
ff54c43
Fonts
mattleibow Mar 24, 2021
82a53f1
Merge branch 'winui' of https://github.com/dotnet/maui into winui
mattleibow Mar 24, 2021
ea5f659
- windows only nugets
PureWeen Mar 24, 2021
2b960d3
- fix targets
PureWeen Mar 24, 2021
c9e91e5
Fonts now working
mattleibow Mar 24, 2021
6190da8
Merge branch 'winui' of https://github.com/dotnet/maui into winui
mattleibow Mar 24, 2021
0522276
ws
mattleibow Mar 24, 2021
094e23a
//TODO WINUI3
mattleibow Mar 24, 2021
e4a844b
More mappings
mattleibow Mar 24, 2021
ca2deb9
- builds
PureWeen Mar 24, 2021
acb654a
- remove props
PureWeen Mar 24, 2021
40a2621
- props
PureWeen Mar 24, 2021
da5d290
Merge branch 'main' into winui
PureWeen Mar 24, 2021
bc771fb
Button has all the things done so far
mattleibow Mar 24, 2021
c3262c6
Merge branch 'winui' of https://github.com/dotnet/maui into winui
mattleibow Mar 24, 2021
8fd0d17
- layout basics
PureWeen Mar 24, 2021
6923f5a
Don't reference the build tasks, then all is well
mattleibow Mar 24, 2021
7f479cf
- shims
PureWeen Mar 24, 2021
c6fd03f
- fix shim measuring
PureWeen Mar 24, 2021
787274c
- fix resource loading
PureWeen Mar 24, 2021
02ca62c
Uncomment the things in Forms
mattleibow Mar 24, 2021
f6d7466
Merge remote-tracking branch 'origin/main' into winui
mattleibow Mar 24, 2021
8a39caf
- tweak measure
PureWeen Mar 24, 2021
619e88c
update
mattleibow Mar 24, 2021
a6060d7
Merge branch 'winui' of https://github.com/dotnet/maui into winui
mattleibow Mar 24, 2021
2b63eba
Remove old code
mattleibow Mar 24, 2021
066ec89
Merge branch 'winui' of github.com:dotnet/maui into winui
mattleibow Mar 24, 2021
880b6a8
Revert "Remove old code"
mattleibow Mar 24, 2021
bf2da32
Add image for goodness
mattleibow Mar 24, 2021
26e3e5f
- measure
PureWeen Mar 24, 2021
4283cd8
- always build winui for core
PureWeen Mar 25, 2021
c808070
Merge branch 'main' into winui
PureWeen Mar 25, 2021
c16fdcc
- add created handlers
PureWeen Mar 25, 2021
8cb16c6
- add mappers
PureWeen Mar 25, 2021
cecc83c
Build windows and macos now
mattleibow Mar 25, 2021
90eda34
Always pack
mattleibow Mar 25, 2021
95133d9
Merge remote-tracking branch 'origin/main' into winui
mattleibow Mar 25, 2021
006957b
- call arrange on the children again
PureWeen Mar 25, 2021
8ec53c8
- fix
PureWeen Mar 25, 2021
6e0f118
- embrace it
PureWeen Mar 25, 2021
0fbc21c
- fix condition
PureWeen Mar 25, 2021
8a2c868
- maybe
PureWeen Mar 25, 2021
b087b26
This might work
mattleibow Mar 25, 2021
b10a57d
that
mattleibow Mar 25, 2021
b640aad
Merge branch 'winui' of https://github.com/dotnet/maui into winui
mattleibow Mar 25, 2021
bc76dd3
- fix
PureWeen Mar 25, 2021
42902bf
- fix
PureWeen Mar 25, 2021
6511745
- no more
PureWeen Mar 25, 2021
8dea3a9
Use the correct path to the image
mattleibow Mar 25, 2021
8a48536
No more SimpleApp
mattleibow Mar 25, 2021
66f3f10
This actually works...
mattleibow Mar 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 18 additions & 15 deletions .nuspec/Microsoft.Maui.Controls.MultiTargeting.targets
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
<Compile Remove="**\Standard\*.cs" />
<None Include="**\Standard\*.cs" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('netcoreapp')) != true ">
<Compile Remove="**\*.Win32.cs" />
<None Include="**\*.Win32.cs" />
<ItemGroup Condition="$(TargetFramework.Contains('-windows')) != true ">
<Compile Remove="**\*.Windows.cs" />
<None Include="**\*.Windows.cs" />
<Compile Remove="**\*.xaml.cs" />
<None Include="**\*.xaml.cs" />
<Compile Remove="**\*.xaml" />
<None Include="**\*.xaml" />
<Compile Remove="**\Win32\*.cs" />
<None Include="**\Win32\*.cs" />
<Compile Remove="**\Windows\*.cs" />
<None Include="**\Windows\*.cs" />
</ItemGroup>

<PropertyGroup>
Expand Down Expand Up @@ -65,10 +65,8 @@
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0-maccatalyst' ">
<DefineConstants>$(DefineConstants);MACCATALYST;IOS</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp')) == true ">
<UseWpf>true</UseWpf>
</PropertyGroup>


<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
Expand All @@ -78,13 +76,18 @@
<PackageReference Include="Xamarin.Google.Android.Material" />
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4" />
</ItemGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net5.0-windows')) == true">
<TargetPlatformMinVersion>10.0.17134.0</TargetPlatformMinVersion>
<PropertyGroup Condition="$(TargetFramework.Contains('-windows')) == true ">
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<DefineConstants>$(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;UWP_16299;UWP_18362;UWP_17134</DefineConstants>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('net5.0-windows')) == true">
<PackageReference Include="Microsoft.WinUI" Version="3.0.0-preview3.201113.0" />
<ItemGroup Condition="$(TargetFramework.Contains('-windows')) == true ">
<PackageReference Include="Microsoft.ProjectReunion" Version="0.5.0-prerelease" />
<PackageReference Include="Microsoft.ProjectReunion.Foundation" Version="0.5.0-prerelease" />
<PackageReference Include="Microsoft.ProjectReunion.WinUI" Version="0.5.0-prerelease" />
</ItemGroup>
<Target Name="Net6WinUIWorkaround" BeforeTargets="_GetSdkToolsPathsFromSdk" Condition="$(TargetFramework.Contains('-windows')) == true ">
<PropertyGroup>
<TargetPlatformIdentifierAdjusted>UAP</TargetPlatformIdentifierAdjusted>
</PropertyGroup>
</Target>
</Project>
2 changes: 1 addition & 1 deletion .nuspec/Microsoft.Maui.Controls.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<Target Name="_ValidateNETFrameworkVersion"
BeforeTargets="_CheckForInvalidConfigurationAndPlatform"
Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' AND '$(TargetFrameworkVersion.Substring(1))' &lt; '4.6.1' AND '$(MauiDisableFrameworkVersionValidation)' != 'True'">
Condition="'$(ProjectExt)' != '.wapproj' AND '$(TargetFrameworkIdentifier)' == '.NETFramework' AND '$(TargetFrameworkVersion.Substring(1))' &lt; '4.6.1' AND '$(MauiDisableFrameworkVersionValidation)' != 'True'">
<Error Code="XF004"
Text="Microsoft.Maui requires .NETFramework >= v4.6.1. You have '$(TargetFrameworkVersion)'" />
</Target>
Expand Down
6 changes: 6 additions & 0 deletions .nuspec/Microsoft.Maui.Core.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="$(TargetFramework.Contains('-windows')) == true AND OutputType == 'WinExe'">
<!-- This tells Maui.Controls to not process the WinUI Xaml files -->
<EnableDefaultXamlItems>false</EnableDefaultXamlItems>
</PropertyGroup>
</Project>
9 changes: 9 additions & 0 deletions .nuspec/Microsoft.Maui.Core.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Net6WinUIWorkaround"
BeforeTargets="_GetSdkToolsPathsFromSdk"
Condition="$(TargetFramework.Contains('-windows')) == true ">
<PropertyGroup>
<TargetPlatformIdentifierAdjusted>UAP</TargetPlatformIdentifierAdjusted>
</PropertyGroup>
</Target>
</Project>
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<Project>
<Import Project="eng\Version.props" />
<PropertyGroup>
<BuildForWinUI>false</BuildForWinUI>
<BuildForWinUI Condition="'$(SolutionFileName)' == 'Microsoft.Maui.WinUI.sln'">true</BuildForWinUI>
<MauiPlatforms>net6.0-android;net6.0-ios;net6.0-maccatalyst</MauiPlatforms>
<MauiPlatforms Condition="'$(BuildForWinUI)' == 'true'">net6.0-windows10.0.19041.0</MauiPlatforms>
<_MauiBuildTasksLocation>$(_MauiBuildTasksLocation)</_MauiBuildTasksLocation>
<_MauiBuildTasksLocation Condition="'$(_MauiBuildTasksLocation)' == ''">$(MSBuildThisFileDirectory).nuspec\</_MauiBuildTasksLocation>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Loading