Skip to content

Commit d912cff

Browse files
authored
Merge pull request #15 from sharwell/update-readme
Update the readme
2 parents 594260c + b9dbae4 commit d912cff

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,32 @@ IL weaver for adding nullability annotations to .NET Framework and .NET Standard
88

99
[![Join the chat at https://gitter.im/tunnelvisionlabs/ReferenceAssemblyAnnotator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tunnelvisionlabs/ReferenceAssemblyAnnotator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1010

11+
## Requirements
12+
13+
* Build: C# compiler version 3.2 Beta 2 or newer (ships with Visual Studio 2019 version 16.3 Preview 2 and newer). Older
14+
versions of the compiler interpret nullable metadata differently, which can lead to incorrect build warnings.
15+
* Editing experience: Visual Studio 2019 version 16.3 Preview 2 or newer.
16+
1117
## Usage
1218

19+
### Assemblies included by default
20+
21+
* .NET Framework targets
22+
* mscorlib
23+
* .NET Standard targets
24+
* All assemblies which are defined by the .NET Standard
25+
26+
### Example configuration
27+
1328
```xml
1429
<PropertyGroup>
1530
<!-- Specifies the version of this rewriter to use -->
16-
<TunnelVisionLabsReferenceAssemblyAnnotatorVersion>1.0.0-alpha.10</TunnelVisionLabsReferenceAssemblyAnnotatorVersion>
31+
<TunnelVisionLabsReferenceAssemblyAnnotatorVersion>1.0.0-alpha.31</TunnelVisionLabsReferenceAssemblyAnnotatorVersion>
1732
<!-- Specifies the version of Microsoft.NETCore.App.Ref to obtain nullability information from -->
1833
<AnnotatedReferenceAssemblyVersion>3.0.0-preview8-28405-07</AnnotatedReferenceAssemblyVersion>
34+
<!-- Includes the nullable attributes from dotnet/coreclr as source code with 'internal' accessibility. Set this to
35+
false if the attributes are included from another source and/or are not needed. -->
36+
<GenerateNullableAttributes>true</GenerateNullableAttributes>
1937
</PropertyGroup>
2038

2139
<ItemGroup>
@@ -26,7 +44,6 @@ IL weaver for adding nullability annotations to .NET Framework and .NET Standard
2644

2745
<ItemGroup>
2846
<!-- Specifies the reference assemblies to rewrite -->
29-
<UnannotatedReferenceAssembly Include="mscorlib" />
3047
<UnannotatedReferenceAssembly Include="System" />
3148
<UnannotatedReferenceAssembly Include="System.Core" />
3249
</ItemGroup>

0 commit comments

Comments
 (0)