Skip to content

Commit

Permalink
Small documentation update for CodeGeneration for Durable Functions (#…
Browse files Browse the repository at this point in the history
…1864)

Add EmitCompilerGeneratedFiles to PropertyGroup so actually emit generated files and removed instructions for marking project reference
  • Loading branch information
KeesV authored Jun 4, 2021
1 parent c60bc0e commit cc7f8b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DurableFunctions.TypedInterfaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Automatically generates method stubs that correspond to the contracts of Orchest

## How to use

1. Add the project's nuget package as a dependency. Mark the reference with `OutputItemType="Analyzer"` and `ReferenceOutputAssembly="false"`.
1. Add the project's nuget package as a dependency.

For example:

Expand All @@ -20,9 +20,10 @@ For example:

*The project should now automatically generate code for Orchestration/Activity functions.*

2. *Optionally*, add the following statement to a property group in your project's csproj in order to see the generated files.
2. *Optionally*, add the following statements to a property group in your project's csproj in order to see the generated files.

```xml
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)Generated</CompilerGeneratedFilesOutputPath>
```

Expand Down

0 comments on commit cc7f8b2

Please sign in to comment.