dotnet / dotnet/msbuild

PropertyGroup with value that starts with "ProjectTypeGuids" causes project to not load correctly in Visual Studio

Open
#3,710 3 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Steps to reproduce

1. Create a new project file and add a PropertyGroup with a value that starts with "ProjectTypeGuids", e.g.:
Project file
```xml


ProjectTypeGuidsANYTHINGCANGOHERE

```
2. Try to load the project file in Visual Studio

### Expected behavior

Project would be loaded normally, as can be seen with any other value:
![image](https://user-images.githubusercontent.com/1757521/45175827-23133300-b1c3-11e8-999a-bf6d66df7df1.png)

### Actual behavior
Error MessageBox is displayed:
![image](https://user-images.githubusercontent.com/1757521/45175911-5f469380-b1c3-11e8-8ad9-4d2686226e16.png)

and the project fails to load:
![image](https://user-images.githubusercontent.com/1757521/45175949-71283680-b1c3-11e8-9801-bf40721aa457.png)

### Environment data
![image](https://user-images.githubusercontent.com/1757521/45176017-a3d22f00-b1c3-11e8-903f-e1745c8d1b50.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.