Merge pull request #21584 from simo9000/documentation-fix-csharp-build-integration

Changes all occurences of %(RelativePath) to %(RelativeDir) in csharp doc
pull/22886/head
Jan Tattermusch 5 years ago committed by GitHub
commit 67bafdfc9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/csharp/BUILD-INTEGRATION.md

@ -135,7 +135,7 @@ following stanza under the `<Project>` xml node:
```xml
<ItemGroup>
<Protobuf Include="**/*.proto" OutputDir="%(RelativePath)" CompileOutputs="false" />
<Protobuf Include="**/*.proto" OutputDir="%(RelativeDir)" CompileOutputs="false" />
</ItemGroup>
```
@ -144,7 +144,7 @@ and its subdirectories (`**`) include all files matching the wildcard `*.proto`.
You can instead selectively include your files or selectively exclude files from
the glob pattern; [MSBuild documentation explains
that](https://docs.microsoft.com/visualstudio/msbuild/msbuild-items). The
`OutputDir="%(RelativePath)"` orders the output directory for each .cs file be
`OutputDir="%(RelativeDir)"` orders the output directory for each .cs file be
same as the corresponding .proto directory. Finally, `CompileOutputs="false"`
prevents compiling the generated files into an assembly.
@ -188,7 +188,7 @@ directories according to their service use, for example:
```xml
<ItemGroup>
<Protobuf Include="**/*.proto" OutputDir="%(RelativePath)"
<Protobuf Include="**/*.proto" OutputDir="%(RelativeDir)"
CompileOutputs="false" GrpcServices="None" />
<Protobuf Update="**/hello/*.proto;**/bye/*.proto" GrpcServices="Both" />
</ItemGroup>

Loading…
Cancel
Save