Skip to content

Commit

Permalink
📍Pin C# Version to 12 in all projects; Target .NET Standard 2.0/2.1 i…
Browse files Browse the repository at this point in the history
…n all packages; Use only .NET8 for CI and Testing+Packaging (#516)


---------

Co-authored-by: Konstantin <[email protected]>
  • Loading branch information
hf-kklein and Konstantin authored Sep 5, 2024
1 parent 9e4258f commit 0c9a4ad
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 328 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_unit_tests_only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["6.0.201", "7.0.100", "8.0.100"]
dotnet-version: ["8.0.401"]
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
Expand Down
4 changes: 2 additions & 2 deletions BO4E.Extensions/BO4E.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<PackageId>Hochfrequenz.BO4E.Extensions</PackageId>
<Authors>Hochfrequenz Unternehmensberatung GmbH</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<LangVersion>9</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>12</LangVersion>
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions BO4E.Reporting/BO4E.Reporting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder
>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<LangVersion>9</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>12</LangVersion>
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
196 changes: 98 additions & 98 deletions BO4E/BO4E.csproj
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>BO4E</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Hochfrequenz.BO4Enet</PackageId>
<Authors>Hochfrequenz Untenehmensberatung GmbH</Authors>
<Product>BO4E .net core bindings</Product>
<RepositoryUrl>https://github.com/Hochfrequenz/BO4E-dotnet/</RepositoryUrl>

<VersionPrefix>0.2.50</VersionPrefix>
<AssemblyName>BO4Enet</AssemblyName>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageProjectUrl>https://github.com/Hochfrequenz/BO4E-dotnet/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>

<RepositoryType>git</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<DebugType>Embedded</DebugType>
<EmbedAllSources>True</EmbedAllSources>
<LangVersion>latest</LangVersion>
<DocumentationFile>BO4Enet.xml</DocumentationFile>
<Nullable>annotations</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<Optimize>false</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>DEBUG</DefineConstants>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<Compile Remove="BO\NewFolder\**" />
<Compile Remove="json-schema-files\**" />
<EmbeddedResource Remove="BO\NewFolder\**" />
<EmbeddedResource Remove="json-schema-files\**" />
<None Remove="BO\NewFolder\**" />
<None Remove="json-schema-files\**" />
<None Include="..\LICENSE.txt">
<Pack>True</Pack>
<PackagePath />
</None>
</ItemGroup>

<ItemGroup>
<None Remove="CentralEuropeStandardTime.json" />
<None Remove="protobuf-files\BO4E.BO.Angebot.proto" />
<None Remove="protobuf-files\BO4E.BO.Ansprechpartner.proto" />
<None Remove="protobuf-files\BO4E.BO.Benachrichtigung.proto" />
<None Remove="protobuf-files\BO4E.BO.Energiemenge.proto" />
<None Remove="protobuf-files\BO4E.BO.Geschaeftspartner.proto" />
<None Remove="protobuf-files\BO4E.BO.Kosten.proto" />
<None Remove="protobuf-files\BO4E.BO.Marktlokation.proto" />
<None Remove="protobuf-files\BO4E.BO.Messlokation.proto" />
<None Remove="protobuf-files\BO4E.BO.Preisblatt.proto" />
<None Remove="protobuf-files\BO4E.BO.Rechnung.proto" />
<None Remove="protobuf-files\BO4E.BO.Region.proto" />
<None Remove="protobuf-files\BO4E.BO.Vertrag.proto" />
<None Remove="protobuf-files\BO4E.BO.Zaehler.proto" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="meta\CentralEuropeStandardTime.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Enums.NET" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Newtonsoft.Json.Schema" Version="4.0.1" />
<PackageReference Include="Polyfill" Version="6.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Portable.System.DateTimeOnly" Version="8.0.1" />
<PackageReference Include="protobuf-net" Version="3.2.30" />
<PackageReference Include="SourceLink.Copy.PdbFiles" Version="2.8.3" PrivateAssets="All" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>BO4E</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Hochfrequenz.BO4Enet</PackageId>
<Authors>Hochfrequenz Untenehmensberatung GmbH</Authors>
<Product>BO4E .net core bindings</Product>
<RepositoryUrl>https://github.com/Hochfrequenz/BO4E-dotnet/</RepositoryUrl>

<VersionPrefix>0.2.50</VersionPrefix>
<AssemblyName>BO4Enet</AssemblyName>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageProjectUrl>https://github.com/Hochfrequenz/BO4E-dotnet/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>

<RepositoryType>git</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<DebugType>Embedded</DebugType>
<EmbedAllSources>True</EmbedAllSources>
<LangVersion>12</LangVersion>
<DocumentationFile>BO4Enet.xml</DocumentationFile>
<Nullable>annotations</Nullable>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<Optimize>false</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>DEBUG</DefineConstants>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<Compile Remove="BO\NewFolder\**" />
<Compile Remove="json-schema-files\**" />
<EmbeddedResource Remove="BO\NewFolder\**" />
<EmbeddedResource Remove="json-schema-files\**" />
<None Remove="BO\NewFolder\**" />
<None Remove="json-schema-files\**" />
<None Include="..\LICENSE.txt">
<Pack>True</Pack>
<PackagePath />
</None>
</ItemGroup>

<ItemGroup>
<None Remove="CentralEuropeStandardTime.json" />
<None Remove="protobuf-files\BO4E.BO.Angebot.proto" />
<None Remove="protobuf-files\BO4E.BO.Ansprechpartner.proto" />
<None Remove="protobuf-files\BO4E.BO.Benachrichtigung.proto" />
<None Remove="protobuf-files\BO4E.BO.Energiemenge.proto" />
<None Remove="protobuf-files\BO4E.BO.Geschaeftspartner.proto" />
<None Remove="protobuf-files\BO4E.BO.Kosten.proto" />
<None Remove="protobuf-files\BO4E.BO.Marktlokation.proto" />
<None Remove="protobuf-files\BO4E.BO.Messlokation.proto" />
<None Remove="protobuf-files\BO4E.BO.Preisblatt.proto" />
<None Remove="protobuf-files\BO4E.BO.Rechnung.proto" />
<None Remove="protobuf-files\BO4E.BO.Region.proto" />
<None Remove="protobuf-files\BO4E.BO.Vertrag.proto" />
<None Remove="protobuf-files\BO4E.BO.Zaehler.proto" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="meta\CentralEuropeStandardTime.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Enums.NET" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Newtonsoft.Json.Schema" Version="4.0.1" />
<PackageReference Include="Polyfill" Version="6.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Portable.System.DateTimeOnly" Version="8.0.1" />
<PackageReference Include="protobuf-net" Version="3.2.30" />
<PackageReference Include="SourceLink.Copy.PdbFiles" Version="2.8.3" PrivateAssets="All" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

</Project>
Loading

0 comments on commit 0c9a4ad

Please sign in to comment.