Skip to content

Commit ad68252

Browse files
authored
build: Move OpenFeature package out of Common. (#387)
Signed-off-by: André Silva <[email protected]>
1 parent 683a392 commit ad68252

File tree

10 files changed

+125
-116
lines changed

10 files changed

+125
-116
lines changed

build/Common.props

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,23 @@
11
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
5+
<NuGetAudit>true</NuGetAudit>
6+
<NuGetAuditMode>all</NuGetAuditMode>
7+
<NuGetAuditLevel>low</NuGetAuditLevel>
8+
</PropertyGroup>
29

3-
<ItemGroup>
4-
<PackageReference Include="OpenFeature" Version="$(OpenFeatureVer)" />
5-
</ItemGroup>
10+
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
11+
<DebugType>full</DebugType>
12+
<DebugSymbols>true</DebugSymbols>
13+
</PropertyGroup>
614

7-
<PropertyGroup>
8-
<LangVersion>latest</LangVersion>
9-
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
10-
<NuGetAudit>true</NuGetAudit>
11-
<NuGetAuditMode>all</NuGetAuditMode>
12-
<NuGetAuditLevel>low</NuGetAuditLevel>
13-
</PropertyGroup>
15+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
16+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
17+
</PropertyGroup>
1418

15-
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
16-
<DebugType>full</DebugType>
17-
<DebugSymbols>true</DebugSymbols>
18-
</PropertyGroup>
19-
20-
<PropertyGroup Condition="'$(Configuration)'=='Release'">
21-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
22-
</PropertyGroup>
23-
24-
<PropertyGroup Label="Package versions used in this repository">
25-
<!--
26-
Please sort alphabetically.
27-
Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax.
28-
-->
29-
<!-- 2.0-2.9999 -->
30-
<OpenFeatureVer>[2.0,3.0)</OpenFeatureVer>
31-
</PropertyGroup>
32-
33-
<ItemGroup Condition="'$(OS)' == 'Unix'">
34-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3"
35-
PrivateAssets="all" />
36-
</ItemGroup>
19+
<ItemGroup Condition="'$(OS)' == 'Unix'">
20+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3"
21+
PrivateAssets="all" />
22+
</ItemGroup>
3723
</Project>

src/OpenFeature.Contrib.Hooks.Otel/OpenFeature.Contrib.Hooks.Otel.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="OpenTelemetry.Api" Version="1.9.0" />
15+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
1516
</ItemGroup>
1617

17-
</Project>
18+
</Project>

src/OpenFeature.Contrib.Providers.ConfigCat/OpenFeature.Contrib.Providers.ConfigCat.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
</AssemblyAttribute>
1717
</ItemGroup>
1818
<ItemGroup>
19-
<PackageReference Include="ConfigCat.Client" Version="9.3.2"/>
19+
<PackageReference Include="ConfigCat.Client" Version="9.3.2" />
20+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
2021
</ItemGroup>
21-
</Project>
22+
</Project>
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<PackageId>OpenFeature.Contrib.Providers.EnvVar</PackageId>
5-
<VersionNumber>0.0.2</VersionNumber> <!--x-release-please-version -->
6-
<VersionPrefix>$(VersionNumber)</VersionPrefix>
7-
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
8-
<FileVersion>$(VersionNumber)</FileVersion>
9-
<Description>Environment Variable Provider for .NET</Description>
10-
<Authors>Octopus Deploy</Authors>
11-
</PropertyGroup>
3+
<PropertyGroup>
4+
<PackageId>OpenFeature.Contrib.Providers.EnvVar</PackageId>
5+
<VersionNumber>0.0.2</VersionNumber> <!--x-release-please-version -->
6+
<VersionPrefix>$(VersionNumber)</VersionPrefix>
7+
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
8+
<FileVersion>$(VersionNumber)</FileVersion>
9+
<Description>Environment Variable Provider for .NET</Description>
10+
<Authors>Octopus Deploy</Authors>
11+
</PropertyGroup>
1212

13-
</Project>
13+
<ItemGroup>
14+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
15+
</ItemGroup>
16+
17+
</Project>

src/OpenFeature.Contrib.Providers.FeatureManagement/OpenFeature.Contrib.Providers.FeatureManagement.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
<VersionSuffix>preview</VersionSuffix>
88
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
99
<FileVersion>$(VersionNumber)</FileVersion>
10-
<Description>An OpenFeature Provider built on top of the standard Microsoft FeatureManagement Library</Description>
10+
<Description>An OpenFeature Provider built on top of the standard Microsoft FeatureManagement
11+
Library</Description>
1112
<Authors>Eric Pattison</Authors>
1213
</PropertyGroup>
1314

1415
<ItemGroup>
1516
<PackageReference Include="Microsoft.FeatureManagement" Version="4.0.0" />
17+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
1618
</ItemGroup>
1719

18-
</Project>
20+
</Project>

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Description>flagd provider for .NET</Description>
1010
<Authors>Todd Baert</Authors>
1111
</PropertyGroup>
12-
12+
1313
<ItemGroup>
1414
<!-- make the internal methods visble to our test project -->
1515
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
@@ -20,7 +20,8 @@
2020
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.2" />
2121
</ItemGroup>
2222
<ItemGroup>
23-
<!-- The schema.proto file referenced here will be used to automatically generate the Grpc client when executing 'dotnet build' -->
23+
<!-- The schema.proto file referenced here will be used to automatically generate the Grpc
24+
client when executing 'dotnet build' -->
2425
<!-- The generated files will be placed in ./obj/Debug/netstandard2.0/Protos -->
2526
<PackageReference Include="JsonLogic" Version="5.4.0" />
2627
<PackageReference Include="murmurhash" Version="1.0.3" />
@@ -33,6 +34,8 @@
3334
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3435
<PrivateAssets>all</PrivateAssets>
3536
</PackageReference>
36-
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
37+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"
38+
Condition="'$(TargetFramework)' == 'netstandard2.0'" />
39+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
3740
</ItemGroup>
38-
</Project>
41+
</Project>

src/OpenFeature.Contrib.Providers.Flagsmith/OpenFeature.Contrib.Providers.Flagsmith.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@
2121
<PackageReference Include="Flagsmith" Version="5.4.3" />
2222
</ItemGroup>
2323

24-
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net5.0'">
24+
<ItemGroup>
25+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
26+
</ItemGroup>
27+
28+
<ItemGroup
29+
Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net5.0'">
2530
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2631
</ItemGroup>
2732

2833
<PropertyGroup>
2934
<LangVersion>latest</LangVersion>
3035
</PropertyGroup>
31-
</Project>
36+
</Project>
Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<PackageId>OpenFeature.Contrib.Providers.Flipt</PackageId>
5-
<VersionNumber>0.0.5</VersionNumber> <!--x-release-please-version -->
6-
<VersionPrefix>$(VersionNumber)</VersionPrefix>
7-
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
8-
<FileVersion>$(VersionNumber)</FileVersion>
9-
<Description>Flipt provider for .NET</Description>
10-
<Authors>Jean Andrei de la Cruz Austria</Authors>
11-
</PropertyGroup>
3+
<PropertyGroup>
4+
<PackageId>OpenFeature.Contrib.Providers.Flipt</PackageId>
5+
<VersionNumber>0.0.5</VersionNumber> <!--x-release-please-version -->
6+
<VersionPrefix>$(VersionNumber)</VersionPrefix>
7+
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
8+
<FileVersion>$(VersionNumber)</FileVersion>
9+
<Description>Flipt provider for .NET</Description>
10+
<Authors>Jean Andrei de la Cruz Austria</Authors>
11+
</PropertyGroup>
1212

13-
<ItemGroup>
14-
<!-- make the internal methods visble to our test project -->
15-
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
16-
<_Parameter1>$(MSBuildProjectName).Test</_Parameter1>
17-
</AssemblyAttribute>
18-
</ItemGroup>
13+
<ItemGroup>
14+
<!-- make the internal methods visble to our test project -->
15+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
16+
<_Parameter1>$(MSBuildProjectName).Test</_Parameter1>
17+
</AssemblyAttribute>
18+
</ItemGroup>
1919

20-
<ItemGroup
21-
Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'">
22-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
23-
</ItemGroup>
20+
<ItemGroup
21+
Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'">
22+
<PackageReference Include="System.Net.Http" Version="4.3.4" />
23+
</ItemGroup>
2424

25-
<ItemGroup>
26-
<PackageReference Include="NSwag.MSBuild" Version="14.3.0">
27-
<PrivateAssets>all</PrivateAssets>
28-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
29-
</PackageReference>
30-
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
31-
<Compile
32-
Include="$(ProjectDir)obj/$(ConfigurationName)/$(TargetFramework)/Flipt.Rest.Client.cs" />
33-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
34-
</ItemGroup>
25+
<ItemGroup>
26+
<PackageReference Include="NSwag.MSBuild" Version="14.3.0">
27+
<PrivateAssets>all</PrivateAssets>
28+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
29+
</PackageReference>
30+
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
31+
<Compile
32+
Include="$(ProjectDir)obj/$(ConfigurationName)/$(TargetFramework)/Flipt.Rest.Client.cs" />
33+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
34+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
35+
</ItemGroup>
3536

36-
<PropertyGroup>
37-
<LangVersion>latest</LangVersion>
38-
</PropertyGroup>
37+
<PropertyGroup>
38+
<LangVersion>latest</LangVersion>
39+
</PropertyGroup>
3940

40-
<Target Name="NSwag" BeforeTargets="BeforeBuild">
41-
<Exec
42-
Command="$(NSwagExe_Net90) openapi2csclient /className:FliptRestClient /namespace:Flipt.Rest /input:&quot;openapi.yaml&quot; /output:&quot;$(ProjectDir)obj/$(ConfigurationName)/$(TargetFramework)/Flipt.Rest.Client.cs&quot; /GenerateExceptionClasses:true /OperationGenerationMode:SingleClientFromPathSegments /JsonLibrary:SystemTextJson /GenerateOptionalParameters:true /GenerateDefaultValues:true /GenerateResponseClasses:true /GenerateClientInterfaces:true /GenerateClientClasses:true /GenerateDtoTypes:true /ExceptionClass:FliptRestException /GenerateNativeRecords:true /UseBaseUrl:false /GenerateBaseUrlProperty:false" />
43-
</Target>
41+
<Target Name="NSwag" BeforeTargets="BeforeBuild">
42+
<Exec
43+
Command="$(NSwagExe_Net90) openapi2csclient /className:FliptRestClient /namespace:Flipt.Rest /input:&quot;openapi.yaml&quot; /output:&quot;$(ProjectDir)obj/$(ConfigurationName)/$(TargetFramework)/Flipt.Rest.Client.cs&quot; /GenerateExceptionClasses:true /OperationGenerationMode:SingleClientFromPathSegments /JsonLibrary:SystemTextJson /GenerateOptionalParameters:true /GenerateDefaultValues:true /GenerateResponseClasses:true /GenerateClientInterfaces:true /GenerateClientClasses:true /GenerateDtoTypes:true /ExceptionClass:FliptRestException /GenerateNativeRecords:true /UseBaseUrl:false /GenerateBaseUrlProperty:false" />
44+
</Target>
4445
</Project>

src/OpenFeature.Contrib.Providers.GOFeatureFlag/OpenFeature.Contrib.Providers.GOFeatureFlag.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@
1010
<Authors>Thomas Poignant</Authors>
1111
</PropertyGroup>
1212

13-
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'">
14-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
15-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
13+
<ItemGroup
14+
Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'">
15+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
16+
<PackageReference Include="System.Net.Http" Version="4.3.4" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
1621
</ItemGroup>
1722

1823
<PropertyGroup>
1924
<LangVersion>8.0</LangVersion>
2025
</PropertyGroup>
2126

22-
</Project>
27+
</Project>
Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<PackageId>OpenFeature.Contrib.Providers.Statsig</PackageId>
5-
<VersionNumber>0.1.0</VersionNumber><!--x-release-please-version -->
6-
<VersionPrefix>$(VersionNumber)</VersionPrefix>
7-
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
8-
<FileVersion>$(VersionNumber)</FileVersion>
9-
<Description>Statsig provider for .NET</Description>
10-
<PackageReadmeFile>README.md</PackageReadmeFile>
11-
<Authors>Jens Kjær Henneberg</Authors>
12-
</PropertyGroup>
13-
<ItemGroup>
14-
<!-- make the internal methods visble to our test project -->
15-
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
16-
<_Parameter1>$(MSBuildProjectName).Test</_Parameter1>
17-
</AssemblyAttribute>
18-
</ItemGroup>
3+
<PropertyGroup>
4+
<PackageId>OpenFeature.Contrib.Providers.Statsig</PackageId>
5+
<VersionNumber>0.1.0</VersionNumber><!--x-release-please-version -->
6+
<VersionPrefix>$(VersionNumber)</VersionPrefix>
7+
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
8+
<FileVersion>$(VersionNumber)</FileVersion>
9+
<Description>Statsig provider for .NET</Description>
10+
<PackageReadmeFile>README.md</PackageReadmeFile>
11+
<Authors>Jens Kjær Henneberg</Authors>
12+
</PropertyGroup>
13+
<ItemGroup>
14+
<!-- make the internal methods visble to our test project -->
15+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
16+
<_Parameter1>$(MSBuildProjectName).Test</_Parameter1>
17+
</AssemblyAttribute>
18+
</ItemGroup>
1919

20-
<ItemGroup>
21-
<PackageReference Include="Statsig" Version="1.26.0" />
22-
</ItemGroup>
20+
<ItemGroup>
21+
<PackageReference Include="Statsig" Version="1.26.0" />
22+
<PackageReference Include="OpenFeature" Version="[2.0,3.0)" />
23+
</ItemGroup>
2324

24-
<ItemGroup>
25-
<None Include="README.md" Pack="true" PackagePath="\"/>
26-
</ItemGroup>
25+
<ItemGroup>
26+
<None Include="README.md" Pack="true" PackagePath="\" />
27+
</ItemGroup>
2728

28-
</Project>
29+
</Project>

0 commit comments

Comments
 (0)