You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: uwp/dotnet-native/modernize-uwp-apps-with-dotnet.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ UWP modern .NET projects use SDK-style .csproj files with key properties:
101
101
-**UseUwp**: References WinRT projections for Windows.UI.Xaml types and configures CsWinRT for UWP compatibility
102
102
-**UseUwpTools**: Enables UWP-specific tooling including XAML compiler, project capabilities, and MSIX packaging. Note this property is enabled by default when `UseUwp` is enabled.
103
103
-**EnableMsixTooling**: Enables single-project MSIX support (no separate packaging project needed)
104
-
-**PublishAot**: Enables Native AOT compilation (required for Microsoft Store publication)
104
+
-**PublishAot**: Enables Native AOT compilation
105
105
-**DisableRuntimeMarshalling**: Optimizes performance for Native AOT scenarios
106
106
107
107
## Migrating Existing UWP Apps to Modern .NET
@@ -111,7 +111,7 @@ To migrate an existing UWP app from [.NET Native](index.md) to modern .NET:
111
111
### Step 1: Update Project File
112
112
113
113
1. Convert your existing .csproj to SDK-style format
114
-
2. Add the required properties (`UseUwp`, `EnableMsixTooling`, `PublishAot`)
114
+
2. Add the required properties - `UseUwp`, `EnableMsixTooling`, then `PublishAot` or `SelfContained`
115
115
3. Update NuGet package references to versions compatible with the latest .NET
116
116
117
117
### Step 2: Address Native AOT Compatibility
@@ -146,7 +146,7 @@ The following can be set in library projects:
146
146
If your existing app uses a [runtime directives (rd.xml) file](runtime-directives-rd-xml-configuration-file-reference.md) for .NET Native, you'll need to address reflection and trimming requirements differently with Native AOT using attributes and analyzers instead.
147
147
148
148
> [!TIP]
149
-
Use `[GeneratedBindableCustomProperty]` classes that need `{Binding}` in XAML. These classes should be marked as `partial`.
149
+
> Use `[GeneratedBindableCustomProperty]`on classes that need `{Binding}` in XAML. These classes should be marked as `partial`.
0 commit comments