Using visual studio code for WPF c# app development?

Boom Ba 166 Reputation points
2022-10-06T11:08:34.417+00:00

Can I use visual studio code to create and develop c# based WPF windows applications ?

If so, what else do I need to install alongside visual studio code and how?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,781 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,963 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
812 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Juan C. Alvarez 6 Reputation points
    2022-12-27T16:41:52.033+00:00

    If I'm not mistaken there is a way using PowerShell Pro Tools, as documented here: https://blog.ironmansoftware.com/wpf-vs-code-powershell/

    Note that the extension requires a license (although it has a 14 days trial period)

    1 person found this answer helpful.
    0 comments No comments

  2. Karen Payne MVP 35,426 Reputation points
    2022-10-06T11:28:05.84+00:00

    You can create WPF in VS Code but there is no preview for XAMAL., install the plugin for C# support. To create WPF projects use dotnet CLI new command


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.