<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Baki Gervalla</title>
    <description>The latest articles on DEV Community by Baki Gervalla (@bakigervalla).</description>
    <link>https://dev.to/bakigervalla</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4242469%2F9faa4483-fe71-4698-93dc-453719e63be3.JPG</url>
      <title>DEV Community: Baki Gervalla</title>
      <link>https://dev.to/bakigervalla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bakigervalla"/>
    <language>en</language>
    <item>
      <title>Your Excel/VBA tool outgrew Excel: 6 signs to rebuild it as a desktop or web app (and what to keep)</title>
      <dc:creator>Baki Gervalla</dc:creator>
      <pubDate>Wed, 25 Nov 2026 11:08:36 +0000</pubDate>
      <link>https://dev.to/bakigervalla/your-excelvba-tool-outgrew-excel-6-signs-to-rebuild-it-as-a-desktop-or-web-app-and-what-to-keep-1gib</link>
      <guid>https://dev.to/bakigervalla/your-excelvba-tool-outgrew-excel-6-signs-to-rebuild-it-as-a-desktop-or-web-app-and-what-to-keep-1gib</guid>
      <description>&lt;p&gt;Your Excel macro runs the factory. Then the one person who understands it goes on holiday.&lt;/p&gt;

&lt;p&gt;Most small firms have a workbook like this. It started as a sheet to track orders, stock or shifts. Then it got macros, then forms, then a button that emails the weekly report. Now the business runs on it, and nobody wants to touch it.&lt;/p&gt;

&lt;p&gt;Excel is a good tool. Many workbooks should stay workbooks. But some reach a point where every week you keep them in Excel costs more than a rebuild. Here are six signs, and what to keep when you rebuild.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvptt4vxrsn2rckeuynl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvptt4vxrsn2rckeuynl.png" alt="6 signs your Excel/VBA tool needs to become a real app" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Two people need it at the same time
&lt;/h2&gt;

&lt;p&gt;"Can you close the file? I need to save." If people take turns, or keep their own copies and merge them on Friday, the workbook is acting as a database. It is not one. A shared app with a real database lets ten people work at once, and nobody overwrites anybody.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. It holds the only copy of your business rules
&lt;/h2&gt;

&lt;p&gt;The pricing logic, the discount rules, the way you plan production: they live in nested formulas and in VBA modules that one person wrote. If that person leaves, the rules leave too. An app does not fix this by itself. But a rebuild forces someone to write the rules down, and that alone lowers the risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Macros break on every Office update
&lt;/h2&gt;

&lt;p&gt;A Windows or Office update, a move to 64-bit Office, a new security setting that blocks macros from the internet, or the move to the new Outlook, which has no VBA at all. Each one can stop the workbook on a Monday morning. If you fix the macros more than you change them, the platform is working against you.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Nobody can tell who changed a number
&lt;/h2&gt;

&lt;p&gt;A cost went from 1,200 to 12,000 and the order went out. Who changed it, and when? Excel does not record this in any useful way. An app can log every change with a user and a timestamp, and it can lock the fields that only managers should edit.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The data passed 100,000 rows
&lt;/h2&gt;

&lt;p&gt;Excel can hold about a million rows, but long before that, lookups get slow, the file takes a minute to open, and a crash can damage it. If you split the workbook into "2024", "2025" and "2025 new" to keep it fast, the data has outgrown the sheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Someone asks for a phone or web view
&lt;/h2&gt;

&lt;p&gt;The sales team wants to check stock at a customer site. The owner wants the numbers at home. A technician wants to fill in a job sheet on a tablet. You can email screenshots for a while, but a web app or an offline-first mobile app is the real answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to keep when you rebuild
&lt;/h2&gt;

&lt;p&gt;A rebuild does not mean you throw the workbook away. Three parts of it are worth more than any spec a consultant could write:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Keep&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;The formulas, as a written spec&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Every formula is a business rule that already works. Write each one down in plain language before you write code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;The sheet layout, as the first screens&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;People already know where to look. If the first version of the app looks like the sheets, training takes an hour, not a week.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Real data, as test data&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Run the old workbook and the new app on the same month of data. When the totals match, you can switch.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What you can usually drop: the workaround macros, the hidden helper sheets, and the copy-paste steps that only exist because Excel could not do the job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Desktop or web?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Desktop (C#/WPF and SQL Server)&lt;/strong&gt; fits when the tool runs in one office, talks to local hardware such as label printers and scales, or has to work without internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web (ASP.NET Core or Blazor)&lt;/strong&gt; fits when people work from several places, or need it on a phone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many tools need a bit of both: a web app for most people and an offline-first app for the people in the field.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start small
&lt;/h2&gt;

&lt;p&gt;You do not need to rebuild everything at once. Pick the one sheet that causes the most pain, often the one people share, and move only that part. The rest of the workbook can keep running until the new app has earned trust.&lt;/p&gt;




&lt;p&gt;I have built .NET desktop and web apps for 15+ years, including a field-service platform for a Swiss company. If your workbook shows three or more of these signs and you want a second opinion, you can find me on &lt;a href="https://www.upwork.com/freelancers/~01228fb99e8ff7431e" rel="noopener noreferrer"&gt;Upwork&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>excel</category>
      <category>vba</category>
      <category>dotnet</category>
      <category>legacy</category>
    </item>
    <item>
      <title>WinForms/WPF to .NET 10: the 6 breaking changes that actually bite</title>
      <dc:creator>Baki Gervalla</dc:creator>
      <pubDate>Wed, 25 Nov 2026 09:44:19 +0000</pubDate>
      <link>https://dev.to/bakigervalla/winformswpf-to-net-10-the-6-breaking-changes-that-actually-bite-2j5n</link>
      <guid>https://dev.to/bakigervalla/winformswpf-to-net-10-the-6-breaking-changes-that-actually-bite-2j5n</guid>
      <description>&lt;p&gt;Support for .NET 8 and .NET 9 ended on 10 November. The next stop is .NET 10, the LTS release supported until November 2028.&lt;/p&gt;

&lt;p&gt;Microsoft's &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/compatibility/10" rel="noopener noreferrer"&gt;breaking-changes list for .NET 10&lt;/a&gt; is long, and most of it is about ASP.NET Core, the SDK and the runtime. If you maintain a WinForms or WPF app, six items matter. Here they are, with the fix for each.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffu0d4c178142vkqog3qc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffu0d4c178142vkqog3qc.png" alt="The 6 breaking changes, with symptom and fix" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. New WinForms obsoletion warnings (WFDEV004, WFDEV005, WFDEV006)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptom:&lt;/strong&gt; new build warnings. With &lt;code&gt;TreatWarningsAsErrors&lt;/code&gt;, the build fails.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WFDEV004:&lt;/strong&gt; &lt;code&gt;Form.OnClosing&lt;/code&gt;, &lt;code&gt;Form.OnClosed&lt;/code&gt; and the &lt;code&gt;Closing&lt;/code&gt;/&lt;code&gt;Closed&lt;/code&gt; events. Use &lt;code&gt;OnFormClosing&lt;/code&gt;, &lt;code&gt;OnFormClosed&lt;/code&gt;, &lt;code&gt;FormClosing&lt;/code&gt; and &lt;code&gt;FormClosed&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WFDEV005:&lt;/strong&gt; &lt;code&gt;Clipboard.GetData(string)&lt;/code&gt;. Use &lt;code&gt;Clipboard.TryGetData&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WFDEV006:&lt;/strong&gt; &lt;code&gt;ContextMenu&lt;/code&gt;, &lt;code&gt;MainMenu&lt;/code&gt;, &lt;code&gt;Menu&lt;/code&gt;, &lt;code&gt;DataGrid&lt;/code&gt;, &lt;code&gt;StatusBar&lt;/code&gt;, &lt;code&gt;ToolBar&lt;/code&gt;. They exist only for binary compatibility with .NET Framework. Move to &lt;code&gt;ContextMenuStrip&lt;/code&gt;, &lt;code&gt;MenuStrip&lt;/code&gt;, &lt;code&gt;DataGridView&lt;/code&gt;, &lt;code&gt;StatusStrip&lt;/code&gt; and &lt;code&gt;ToolStrip&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; follow the link on each warning. If you can't fix one yet, suppress that ID only (&lt;code&gt;&amp;lt;NoWarn&amp;gt;$(NoWarn);WFDEV006&amp;lt;/NoWarn&amp;gt;&lt;/code&gt;), not all obsoletion warnings.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. MenuItem and ContextMenu are now ambiguous in mixed WinForms + WPF projects
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptom:&lt;/strong&gt; &lt;code&gt;CS0104 'ContextMenu' is an ambiguous reference between 'System.Windows.Controls.ContextMenu' and 'System.Windows.Forms.ContextMenu'&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;From .NET Core 3.1 to .NET 9 these types existed only in WPF. .NET 10 adds them back to WinForms, so a project with both &lt;code&gt;UseWindowsForms&lt;/code&gt; and &lt;code&gt;UseWPF&lt;/code&gt; (and implicit usings) no longer compiles. &lt;code&gt;Menu&lt;/code&gt;, &lt;code&gt;DataGrid&lt;/code&gt;, &lt;code&gt;ToolBar&lt;/code&gt; and &lt;code&gt;StatusBar&lt;/code&gt; have the same problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; add an alias for the one you mean:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;ContextMenu&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Windows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Controls&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ContextMenu&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. WPF: empty ColumnDefinitions and RowDefinitions don't compile
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptom:&lt;/strong&gt; &lt;code&gt;error MC3063: Property 'ColumnDefinitions' does not have a value.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A leftover empty &lt;code&gt;&amp;lt;Grid.ColumnDefinitions&amp;gt;&amp;lt;/Grid.ColumnDefinitions&amp;gt;&lt;/code&gt; used to compile. It doesn't any more, because of the new Grid shorthand syntax.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; delete the empty element, or give it at least one &lt;code&gt;&amp;lt;ColumnDefinition /&amp;gt;&lt;/code&gt; (or &lt;code&gt;&amp;lt;RowDefinition /&amp;gt;&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  4. WPF: a wrong DynamicResource type now crashes the app
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptom:&lt;/strong&gt; &lt;code&gt;XamlParseException: Set property 'System.Windows.ResourceDictionary.Source' threw an exception.&lt;/code&gt; at startup or when a window opens.&lt;/p&gt;

&lt;p&gt;Before, using the wrong resource type with &lt;code&gt;DynamicResource&lt;/code&gt; (for example a &lt;code&gt;SolidColorBrush&lt;/code&gt; where a &lt;code&gt;Color&lt;/code&gt; is expected) fell back to the default value and wrote an exception to the output window. Nobody noticed. Now it crashes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; use the right type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;Color&lt;/span&gt; &lt;span class="na"&gt;x:Key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"RedColor"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;#FFFF0000&lt;span class="nt"&gt;&amp;lt;/Color&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;SolidColorBrush&lt;/span&gt; &lt;span class="na"&gt;x:Key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ResourceName"&lt;/span&gt; &lt;span class="na"&gt;Color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{DynamicResource RedColor}"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This one doesn't show up at compile time, so open every window and theme once.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. System.Drawing throws ExternalException, not OutOfMemoryException
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptom:&lt;/strong&gt; a corrupt or unsupported image used to throw &lt;code&gt;OutOfMemoryException&lt;/code&gt;, which your code caught. Now GDI+ errors throw &lt;code&gt;ExternalException&lt;/code&gt;, and your catch block misses it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; search for &lt;code&gt;catch (OutOfMemoryException&lt;/code&gt; around &lt;code&gt;Image.FromFile&lt;/code&gt;, &lt;code&gt;Bitmap&lt;/code&gt; and other &lt;code&gt;System.Drawing&lt;/code&gt; calls, and catch &lt;code&gt;ExternalException&lt;/code&gt; too.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. TreeView checkboxes are cut off in owner-draw mode
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptom:&lt;/strong&gt; with &lt;code&gt;CheckBoxes = true&lt;/code&gt;, &lt;code&gt;DrawMode = OwnerDrawText&lt;/code&gt; and &lt;code&gt;DrawDefault = true&lt;/code&gt;, the checkbox images are cut off on the right.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; it's opt-in. Add this to &lt;code&gt;runtimeconfig.template.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"configProperties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"System.Windows.Forms.TreeView.MoveTreeViewTextLocationOnePixel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Coming from .NET 9, not .NET 8?&lt;/strong&gt; &lt;code&gt;StatusStrip&lt;/code&gt; goes back to &lt;code&gt;RenderMode = System&lt;/code&gt; by default in .NET 10, so it can look slightly different. Set &lt;code&gt;RenderMode&lt;/code&gt; explicitly if the look matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  The order to do it in
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Change the target framework to &lt;code&gt;net10.0-windows&lt;/code&gt; and update your control vendor packages (DevExpress, Telerik, Syncfusion) to versions that support .NET 10.&lt;/li&gt;
&lt;li&gt;Fix the compile errors: the CS0104 ambiguities and MC3063 grids.&lt;/li&gt;
&lt;li&gt;Fix or suppress the WFDEV warnings, one ID at a time.&lt;/li&gt;
&lt;li&gt;Fix the runtime changes: &lt;code&gt;DynamicResource&lt;/code&gt; types and &lt;code&gt;OutOfMemoryException&lt;/code&gt; catch blocks. Open every window once.&lt;/li&gt;
&lt;li&gt;Test on a clean machine with the .NET 10 Desktop Runtime and update the installer's runtime check.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On an app that already runs on .NET 8, this usually takes a few days, not weeks. Coming from .NET Framework 4.x is a bigger job; see my &lt;a href="https://dev.to/bakigervalla/net-8-support-ended-on-10-november-a-migration-checklist-for-winforms-wpf-and-office-add-ins-47b8"&gt;.NET 8 migration checklist&lt;/a&gt; for the extra steps.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Don't want to do this yourself?&lt;/strong&gt; We migrate WinForms and WPF apps to .NET 10 at a fixed price: &lt;a href="https://www.upwork.com/services/product/development-it-a-winforms-or-wpf-app-migrated-from-net-framework-or-net-8-to-net-10-2121267767517101659" rel="noopener noreferrer"&gt;WinForms/WPF to .NET 10 migration on Upwork&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>winforms</category>
      <category>wpf</category>
    </item>
    <item>
      <title>.NET 8 support ended on 10 November: a migration checklist for WinForms, WPF and Office add-ins</title>
      <dc:creator>Baki Gervalla</dc:creator>
      <pubDate>Fri, 13 Nov 2026 14:10:43 +0000</pubDate>
      <link>https://dev.to/bakigervalla/net-8-support-ended-on-10-november-a-migration-checklist-for-winforms-wpf-and-office-add-ins-47b8</link>
      <guid>https://dev.to/bakigervalla/net-8-support-ended-on-10-november-a-migration-checklist-for-winforms-wpf-and-office-add-ins-47b8</guid>
      <description>&lt;p&gt;.NET 8 and .NET 9 stopped getting security patches on &lt;strong&gt;10 November 2026&lt;/strong&gt;. .NET 10 is the current LTS and is supported until November 2028.&lt;/p&gt;

&lt;p&gt;Most upgrade guides are about ASP.NET. Desktop apps break in different places: the clipboard, designer resources, third-party controls, installers and Office add-ins. Here is the checklist I use for WinForms and WPF apps, roughly in the order things go wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  0. Find out where you actually are
&lt;/h2&gt;

&lt;p&gt;Open each &lt;code&gt;.csproj&lt;/code&gt; and look at the target:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;net8.0-windows&lt;/code&gt; or &lt;code&gt;net9.0-windows&lt;/code&gt;: affected, keep reading.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;TargetFrameworkVersion&amp;gt;v4.x&amp;lt;/TargetFrameworkVersion&amp;gt;&lt;/code&gt;: this is .NET Framework. It is &lt;strong&gt;not&lt;/strong&gt; affected by this deadline, because .NET Framework 4.8.1 is supported as part of Windows. Moving to .NET 10 is still worth it, but it is a bigger project (see step 8).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run &lt;code&gt;dotnet --list-runtimes&lt;/code&gt; on a typical user machine too. You will often find several runtimes installed that nobody remembers adding.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Buy time with a roll-forward, if you need to
&lt;/h2&gt;

&lt;p&gt;A framework-dependent .NET 8 app will not start on the .NET 10 runtime by default. If you can't migrate this month, you can let it run on a newer major version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;RollForward&amp;gt;&lt;/span&gt;Major&lt;span class="nt"&gt;&amp;lt;/RollForward&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a stopgap, not a migration. The app still runs code compiled against .NET 8 APIs, and every behaviour change in steps 3 to 5 can hit you at runtime instead of at compile time. Test it before you ship it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Retarget and pin the SDK
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;TargetFramework&amp;gt;&lt;/span&gt;net10.0-windows&lt;span class="nt"&gt;&amp;lt;/TargetFramework&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;UseWindowsForms&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/UseWindowsForms&amp;gt;&lt;/span&gt; &lt;span class="c"&gt;&amp;lt;!-- or &amp;lt;UseWPF&amp;gt;true&amp;lt;/UseWPF&amp;gt; --&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a &lt;code&gt;global.json&lt;/code&gt; so that everyone on the team, and your CI, builds with the same SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"sdk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"10.0.100"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"rollForward"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"latestFeature"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you use &lt;code&gt;Directory.Build.props&lt;/code&gt;, change the target framework there once instead of in 40 project files.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. BinaryFormatter is gone
&lt;/h2&gt;

&lt;p&gt;BinaryFormatter was removed in .NET 9. If you skipped .NET 9, this is the change that will hurt the most. Look for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;BinaryFormatter&lt;/code&gt; used directly to save state, cache objects or deep-clone them&lt;/li&gt;
&lt;li&gt;custom types stored in &lt;code&gt;.resx&lt;/code&gt; files or user settings&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;EnableUnsafeBinaryFormatterSerialization&lt;/code&gt; in a project file (on .NET 8 it hid the problem; now it does nothing)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Replace it with &lt;code&gt;System.Text.Json&lt;/code&gt;. For data files you have to read again, write a one-time converter before you remove the old code path.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Clipboard and drag-and-drop (WinForms)
&lt;/h2&gt;

&lt;p&gt;In .NET 10, &lt;code&gt;Clipboard.GetData&lt;/code&gt; and &lt;code&gt;DataObject.GetData&lt;/code&gt; are obsolete (warning &lt;strong&gt;WFDEV005&lt;/strong&gt;). Worse, &lt;code&gt;Clipboard.SetData&lt;/code&gt; with a custom type now fails silently: nothing lands on the clipboard and no exception is thrown.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// before&lt;/span&gt;
&lt;span class="nc"&gt;Clipboard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SetData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MyApp.Order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nc"&gt;Clipboard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;GetData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MyApp.Order"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// after&lt;/span&gt;
&lt;span class="nc"&gt;Clipboard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SetDataAsJson&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MyApp.Order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Clipboard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;TryGetData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"MyApp.Order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;out&lt;/span&gt; &lt;span class="nc"&gt;Order&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="cm"&gt;/* ... */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Search the whole solution for &lt;code&gt;GetData(&lt;/code&gt; and &lt;code&gt;SetData(&lt;/code&gt;, including in-app copy and paste between grids. Users notice this one first.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Builds that suddenly fail
&lt;/h2&gt;

&lt;p&gt;Two .NET 10 SDK changes break builds that use &lt;code&gt;TreatWarningsAsErrors&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New obsoletion warnings&lt;/strong&gt; (SYSLIB and WFDEV codes). Fix them; suppress one only with a comment that explains why.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NuGet now audits transitive packages&lt;/strong&gt; for projects targeting .NET 10. An old version of some JSON or HTTP library, deep in your dependency graph, now shows up as an error. &lt;code&gt;dotnet package update --vulnerable&lt;/code&gt; fixes most of them. If you really need it, &lt;code&gt;&amp;lt;NuGetAuditMode&amp;gt;direct&amp;lt;/NuGetAuditMode&amp;gt;&lt;/code&gt; restores the old behaviour.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Third-party controls and licences
&lt;/h2&gt;

&lt;p&gt;DevExpress, Telerik, Infragistics, Syncfusion and others support new runtimes only in newer releases. Before you start:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;find the first version of each suite that lists .NET 10 support&lt;/li&gt;
&lt;li&gt;check that your licence or subscription covers it (this is usually the slowest step, and it isn't technical)&lt;/li&gt;
&lt;li&gt;read the vendor's breaking-change notes for the versions you skip&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Old abandoned controls with no .NET 10 build are the most common reason a "one-day retarget" turns into a project.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Office add-ins: check what you actually have
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;VSTO add-ins&lt;/strong&gt; run on .NET Framework only. They were never on .NET 8, so this deadline doesn't affect them, and you can't move them to .NET 10 as they are. Your options are to stay on .NET Framework or to rewrite as a COM add-in on modern .NET or as an Office web add-in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;COM add-ins on .NET 8&lt;/strong&gt; (for example built with Excel-DNA or a custom COM shim): retarget them like any other project, then check that your add-in framework version supports the new runtime, and re-test registration with both 32-bit and 64-bit Office.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. Coming from .NET Framework 4.x?
&lt;/h2&gt;

&lt;p&gt;Then you also need SDK-style project files, &lt;code&gt;packages.config&lt;/code&gt; converted to &lt;code&gt;PackageReference&lt;/code&gt;, &lt;code&gt;app.config&lt;/code&gt; settings reviewed, and WCF clients moved to the &lt;code&gt;System.ServiceModel.*&lt;/code&gt; packages. Some APIs simply don't exist anymore (AppDomains, .NET Remoting, parts of &lt;code&gt;System.Web&lt;/code&gt;). Do an assessment before you estimate anything.&lt;/p&gt;

&lt;p&gt;About tools: Microsoft has &lt;strong&gt;deprecated the .NET Upgrade Assistant&lt;/strong&gt; in favour of GitHub Copilot app modernization, which needs a paid Copilot plan. The old Upgrade Assistant can still be turned on in Visual Studio 2026 (Tools &amp;gt; Options &amp;gt; Projects and Solutions &amp;gt; Modernization). Both handle the mechanical part well. Neither one knows that your grid vendor changed an event signature.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Deployment
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework-dependent:&lt;/strong&gt; user machines need the &lt;strong&gt;.NET 10 Desktop Runtime&lt;/strong&gt;. Update your installer's prerequisite check, or users get a "you must install .NET" dialog on day one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-contained:&lt;/strong&gt; larger install, but no runtime dependency. This is often the easier choice for apps installed on locked-down PCs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ClickOnce and MSIX&lt;/strong&gt; both work with .NET 10. Bump the version and test an update from the old version, not only a clean install.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. What to test by hand
&lt;/h2&gt;

&lt;p&gt;Automated tests rarely cover these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;high-DPI and mixed-DPI monitors (forms laid out at 100% and opened at 150%)&lt;/li&gt;
&lt;li&gt;printing and print preview&lt;/li&gt;
&lt;li&gt;opening every form in the designer (resx problems show up here first)&lt;/li&gt;
&lt;li&gt;copy and paste, and drag-and-drop, between your app and Excel&lt;/li&gt;
&lt;li&gt;first start after an update from the old version (settings, caches, files in the user profile)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;For a .NET 8 app with modern dependencies, all of this is usually a day or two of work. For a .NET Framework app with old third-party controls, COM interop and an add-in or two, it is a project, and a short assessment before you start saves the most time.&lt;/p&gt;

&lt;p&gt;If you'd like a second pair of eyes on your solution, we do fixed-price WinForms and WPF migration assessments at &lt;a href="https://www.fiverr.com/bakigervalla/migrate-your-winforms-or-wpf-app-from-dotnet-framework-to-dotnet-10" rel="noopener noreferrer"&gt;IntellyCode&lt;/a&gt;. Questions are welcome in the comments, too.&lt;br&gt;
&lt;a href="https://www.fiverr.com/bakigervalla/migrate-your-winforms-or-wpf-app-from-dotnet-framework-to-dotnet-10" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frrvz9m0x7tc7chbxb7ln.png" alt="WinForms and WPF migration to .NET 10: fixed-price assessment by IntellyCode" width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>winforms</category>
      <category>wpf</category>
    </item>
  </channel>
</rss>
