error MC1000: Unknown build error, 'Object reference not set to an instance of an object.'
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
WPF/XAML project fails to build with this error:
> error MC1000: Unknown build error, 'Object reference not set to an instance of an object.'
Detailed build log is here:
https://raw.githubusercontent.com/matthew-a-thomas/dotnet-error-mc1000/7cb13040dd16ffff5a772a288fc7c1972abb582c/log.txt
Everything builds fine if `` is empty (in `Example.xaml`):
```xml
delete these contents of "Node" to make it compile
```
### Reproduction Steps
https://github.com/matthew-a-thomas/dotnet-error-mc1000/tree/7cb13040dd16ffff5a772a288fc7c1972abb582c
`dotnet build` fails with this error.
`dotnet build` succeeds if `Example.xaml` is changed to:
```xml
```
### Expected behavior
Successful build
### Actual behavior
Error
### Regression?
Not sure. I tried uninstalling .NET 8 SDK and I still get the error when building with .NET 7 SDK
### Known Workarounds
_No response_
### Configuration
> dotnet --version
> 8.0.100-rc.2.23502.2
> dotnet --version
> 8.0.100-rc.1.23463.5
> dotnet --version
> 7.0.403
(Happens with all three of these SDKs)
Windows 11
x64
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.