Skip to content

Commit c9a677b

Browse files
authored
build: Add README to package and deprecation notice (#549)
Signed-off-by: André Silva <[email protected]>
1 parent 6a822a1 commit c9a677b

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/OpenFeature.Contrib.Providers.Flagd/OpenFeature.Contrib.Providers.Flagd.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<Description>flagd provider for .NET</Description>
1111
<Authors>Todd Baert</Authors>
1212
<GenerateDocumentationFile>true</GenerateDocumentationFile>
13+
<PackageReadmeFile>README.md</PackageReadmeFile>
14+
<OpenFeatureVersion>[2.9,2.99999]</OpenFeatureVersion>
1315
</PropertyGroup>
1416

1517
<PropertyGroup Label="SourceLink">
@@ -24,10 +26,9 @@
2426
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
2527
<_Parameter1>$(MSBuildProjectName).Test</_Parameter1>
2628
</AssemblyAttribute>
29+
<None Include="README.md" Pack="true" PackagePath="\" />
2730
</ItemGroup>
28-
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
29-
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.2" />
30-
</ItemGroup>
31+
3132
<ItemGroup>
3233
<!-- The schema.proto file referenced here will be used to automatically generate the Grpc
3334
client when executing 'dotnet build' -->
@@ -47,8 +48,6 @@
4748
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
4849
<PackageReference Include="OpenFeature" Version="$(OpenFeatureVersion)" />
4950
<PackageReference Include="OpenFeature.Hosting" Version="$(OpenFeatureVersion)" />
51+
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.2" Condition="'$(TargetFramework)' == 'net462'" />
5052
</ItemGroup>
51-
<PropertyGroup>
52-
<OpenFeatureVersion>[2.9,2.99999]</OpenFeatureVersion>
53-
</PropertyGroup>
5453
</Project>

src/OpenFeature.Contrib.Providers.Flagd/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# flagd .NET Provider
22

3-
The flagd Flag provider allows you to connect to your flagd instance.
3+
> **⚠️ DEPRECATED**: This package will be renamed to `OpenFeature.Providers.Flagd` (removing the "Contrib" suffix) in a future release. The current package name will be deprecated in favour of the new package name.
44
5-
# .Net SDK usage
5+
The flagd Flag provider allows you to connect to your flagd instance.
66

77
## Requirements
88

@@ -189,7 +189,7 @@ Alternatively, if you would like to pass the URI directly, you can initialise it
189189
var flagdProvider = new FlagdProvider(new Uri("http://localhost:8013"));
190190

191191
// ... or use the unix:// prefix if the provider should communicate via a unix socket
192-
var unixFlagdProvider = new FlagdProvider(new Uri("unix://socket.tmp"));
192+
var unixFlagdProvider = new FlagdProvider(new Uri("unix://socket.tmp"));
193193
```
194194

195195
## In-process resolver type
@@ -241,10 +241,9 @@ namespace OpenFeatureTestApp
241241

242242
By default the in-process provider will attempt to validate the flag configurations against the [Flags](https://flagd.dev/schema/v0/flags.json) and [targeting](https://flagd.dev/schema/v0/targeting.json) schemas. If validation fails a warning log will be generated. You must configure a logger using the FlagdConfigBuilder. The in-process provider uses the Microsoft.Extensions.Logging abstractions.
243243

244-
```
244+
```csharp
245245
var logger = loggerFactory.CreateLogger<Program>();
246246
var flagdConfig = new FlagdConfigBuilder()
247247
.WithLogger(logger)
248248
.Build();
249249
```
250-

0 commit comments

Comments
 (0)