Changes all occurences of %(RelativePath) to %(RelativeDir) in src/csharp/BUILD-INTEGRATION.md

pull/21584/head
simo9000 5 years ago
parent 40d8986827
commit 3e7f680742
  1. 6
      src/csharp/BUILD-INTEGRATION.md

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

Loading…
Cancel
Save