Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit f817c7a

Browse files
committed
PackageRequireLicenseAcceptance
1 parent c21695f commit f817c7a

5 files changed

+24
-84
lines changed

.editorconfig

-77
This file was deleted.

readme.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add support for [NServiceBus](https://docs.particular.net/nservicebus/) message
2929

3030
## Community backed
3131

32-
**It is expected that all developers [become a Patron](https://opencollective.com/nservicebusextensions/order/6976) to use any of these libraries. [Go to licensing FAQ](https://github.com/NServiceBusExtensions/Home/blob/master/readme.md#licensingpatron-faq)**
32+
**It is expected that all developers [become a Patron](https://opencollective.com/nservicebusextensions/order/6976) to use any of these libraries. [Go to licensing FAQ](https://github.com/NServiceBusExtensions/Home/#licensingpatron-faq)**
3333

3434

3535
### Sponsors
@@ -48,12 +48,17 @@ Thanks to all the backing developers! Support this project by [becoming a patron
4848
<a href="#" id="endofbacking"></a>
4949

5050

51+
## NuGet package
52+
53+
https://nuget.org/packages/NServiceBus.ProtoBuf/
54+
55+
5156
## Usage
5257

5358
<!-- snippet: ProtobufSerialization -->
5459
<a id='snippet-protobufserialization'/></a>
5560
```cs
56-
endpointConfiguration.UseSerialization<ProtoBufSerializer>();
61+
configuration.UseSerialization<ProtoBufSerializer>();
5762
```
5863
<sup><a href='/src/Tests/Snippets/Usage.cs#L9-L13' title='File snippet `protobufserialization` was extracted from'>snippet source</a> | <a href='#snippet-protobufserialization' title='Navigate to start of snippet `protobufserialization`'>anchor</a></sup>
5964
<!-- endsnippet -->
@@ -77,7 +82,7 @@ Customizes the `SerializerOptions` used for serialization.
7782
```cs
7883
var runtimeTypeModel = TypeModel.Create();
7984
runtimeTypeModel.IncludeDateTimeKind = true;
80-
var serialization = endpointConfiguration.UseSerialization<ProtoBufSerializer>();
85+
var serialization = configuration.UseSerialization<ProtoBufSerializer>();
8186
serialization.RuntimeTypeModel(runtimeTypeModel);
8287
```
8388
<sup><a href='/src/Tests/Snippets/Usage.cs#L18-L25' title='File snippet `protobufcustomsettings` was extracted from'>snippet source</a> | <a href='#snippet-protobufcustomsettings' title='Navigate to start of snippet `protobufcustomsettings`'>anchor</a></sup>
@@ -91,7 +96,7 @@ When using [additional deserializers](https://docs.particular.net/nservicebus/se
9196
<!-- snippet: ProtoBufContentTypeKey -->
9297
<a id='snippet-protobufcontenttypekey'/></a>
9398
```cs
94-
var serialization = endpointConfiguration.UseSerialization<ProtoBufSerializer>();
99+
var serialization = configuration.UseSerialization<ProtoBufSerializer>();
95100
serialization.ContentTypeKey("custom-key");
96101
```
97102
<sup><a href='/src/Tests/Snippets/Usage.cs#L30-L35' title='File snippet `protobufcontenttypekey` was extracted from'>snippet source</a> | <a href='#snippet-protobufcontenttypekey' title='Navigate to start of snippet `protobufcontenttypekey`'>anchor</a></sup>

readme.source.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toc
1414

1515
## Community backed
1616

17-
**It is expected that all developers [become a Patron](https://opencollective.com/nservicebusextensions/order/6976) to use any of these libraries. [Go to licensing FAQ](https://github.com/NServiceBusExtensions/Home/blob/master/readme.md#licensingpatron-faq)**
17+
**It is expected that all developers [become a Patron](https://opencollective.com/nservicebusextensions/order/6976) to use any of these libraries. [Go to licensing FAQ](https://github.com/NServiceBusExtensions/Home/#licensingpatron-faq)**
1818

1919

2020
### Sponsors
@@ -33,6 +33,11 @@ Thanks to all the backing developers! Support this project by [becoming a patron
3333
<a href="#" id="endofbacking"></a>
3434

3535

36+
## NuGet package
37+
38+
https://nuget.org/packages/NServiceBus.ProtoBuf/
39+
40+
3641
## Usage
3742

3843
snippet: ProtobufSerialization

src/Directory.Build.props

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>3.0.3</Version>
4+
<Version>3.0.4</Version>
55
<PackageTags>NServiceBus, ProtoBuf</PackageTags>
6+
<PackageLicenseFile>license.txt</PackageLicenseFile>
7+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
68
</PropertyGroup>
9+
<ItemGroup>
10+
<None Include="$(MSBuildThisFileFullPath)\..\..\license.txt"
11+
Pack="true"
12+
PackagePath="license.txt"/>
13+
</ItemGroup>
714
</Project>

src/mdsnippets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"TocExcludes": [ "Release Notes", "Icon" ],
2+
"TocExcludes": [ "NuGet package", "Release Notes", "Icon" ],
33
"MaxWidth": 80
44
}

0 commit comments

Comments
 (0)