dotnet / dotnet/wpf

Building a project after deleting a XAML file results in an error

Open
#2,156 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Copied from https://github.com/microsoft/microsoft-ui-xaml/issues/811

VSF_TYPE_MARKDOWNRepro steps
File -> New -> WPF App (.NET Framework)
Build the project once
Delete MainWindow.xaml
Without saving, build the project
Expected: No error
Actual: error
Severity Code Description Project File Line Suppression State
Error Unknown build error, 'Object reference not set to an instance of an object.' WpfApp36
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/595515/building-a-project-after-deleting-a-xaml-file-resu.html
VSTS ticketId: 905549
These are the original issue comments:
David Kean [MSFT] on 6/5/2019, 00:14 AM (10 hours ago):
This was also raised here: dotnet/project-system#4728

Visual Studio Feedback System on 6/5/2019, 03:16 AM (7 hours ago):
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

These are the original issue solutions:
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.