dotnet / dotnet/project-system

CPS errors when updating a configuration dependant property if there are no conditions on the element

Open
#5,573 4 comments 0 reactions 0 assignees View on GitHub
Feature-Rules/Properties Needs-CPS-work Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

*(title was: Visual Studio error when changing proto properties in gRPC template)*

1. Create a new gRPC service using VS template
2. View the `greet.proto` properties in Visual Studio

![image](https://user-images.githubusercontent.com/303201/66433319-99483000-ea7c-11e9-8f4b-c1869292e316.png)

3. Change `gRPC Stub Classes` from `Server only` to `Client only`.
4. Visual Studio errors

![image](https://user-images.githubusercontent.com/303201/66433509-f5ab4f80-ea7c-11e9-8127-f6746e795f8c.png)

Details in the error popup:

> An error has occurred while saving the edited properties listed below:
> gRPC Stub Classes
> One or more values are invalid. MSBuild returned the following error: The element beneath element is invalid because a child element with that name already exists C:\Users\James\source\repos\GrpcService11\GrpcService11\GrpcService11.csproj

Visual Studio 16.3.3 & 16.4 Preview 1

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.