Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #127 from NoxOrg/feature/package-entityFwk
Browse files Browse the repository at this point in the history
pack Nox.Types.EntityFramework into nuget
  • Loading branch information
rochar authored Jun 30, 2023
2 parents d30d73a + f49bff3 commit 3a16c62
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@ jobs:
additionalArguments: '/showConfig'

- name: Build
run: dotnet build ./src/Nox.Types --warnaserror --configuration Release
run: dotnet build ./src/ --warnaserror --configuration Release

- name: Pack Nox.Types
run: dotnet pack --no-build ./src/Nox.Types --configuration Release -o ./artifacts

- name: Pack Nox.EntityFramework.Types
run: dotnet pack --no-build ./src/Nox.Types.EntityFramework --configuration Release -o ./artifacts

- name: Publish Nox.Lib
if: contains(github.ref,'refs/tags/v') || contains(github.ref,'refs/heads/main')
run: dotnet nuget push ./artifacts/Nox.Types.*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
Expand Down
51 changes: 35 additions & 16 deletions src/Nox.Types.EntityFramework/Nox.Types.EntityFramework.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.7" />
</ItemGroup>
<PropertyGroup>
<PackageId>Nox.Types.EntityFramework</PackageId>
<Authors>Andre Sharpe,Jan Schutte</Authors>
<Description>Nox types entity framework support library</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Copyright>Copyright (c) Andre Sharpe 2022</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/NoxOrg/Nox</PackageProjectUrl>
<RepositoryUrl>https://github.com/NoxOrg/Nox.Types.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIcon>nox.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Nox.Types\Nox.Types.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.7" />
</ItemGroup>

<ItemGroup>
<Folder Include="Extensions\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Nox.Types\Nox.Types.csproj" />
</ItemGroup>

</Project>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\images\nox.png" Pack="true" PackagePath="" />
</ItemGroup>
</Project>
6 changes: 6 additions & 0 deletions src/Nox.Types/Nox.Types.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@
<None Include="..\..\images\nox.png" Pack="true" PackagePath="" />
<InternalsVisibleTo Include="Nox.Types.Tests" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
</Project>

0 comments on commit 3a16c62

Please sign in to comment.