Skip to content

Sample WPF application using the new csproj format (.NET Core project system https://github.com/dotnet/project-system/ ). Targering .NET Framework 4.6.2 or higher.

License

Notifications You must be signed in to change notification settings

aienabled/WpfNewProjectSystemSample

Repository files navigation

Wpf sample application for new Project System

This is a sample WPF application using the new csproj format. Targeting .NET Framework (4.6.2 or higher). It could be used to for porting WPF applications to new csproj format until official support is implemented. Please note that Microsoft is aware of the WPF porting problems and included WPF support of the new csproj format for the upcoming VS 16.0 release according the official roadmap.

It works perfectly well with VS IntelliSense and ReSharper. XAML edit & continue also supported. Basically, it should work in the same way as a regular WPF project, but based on the new Project System. However, there are some issues described below.

It includes following workarounds:

Important issues

Please note that this solution doesn't use two-pass XAML building routine, so if you're referencing any elements by name from code-behind it will require you to compile the solution twice (so it will generate the required .g.cs files in intermediate (obj) folder during the first compilation). The problem was discussed there with a known workaround (which is not incorporated into this repository yet) dotnet/project-system#1467 (comment)

About

Sample WPF application using the new csproj format (.NET Core project system https://github.com/dotnet/project-system/ ). Targering .NET Framework 4.6.2 or higher.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages