-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1383 from cnurse/dev
Convert Database projects so they build installable Packages
- Loading branch information
Showing
81 changed files
with
434 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<LangVersion>9</LangVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>1.0.0</Version> | ||
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
<PackageName>$(MSBuildProjectName).$(Version).nupkg</PackageName> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.0" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Shared\Oqtane.Shared.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Server\Oqtane.Server.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="CopyPackage" AfterTargets="Pack"> | ||
<Copy SourceFiles="$(OutputPath)..\$(PackageName)" DestinationFiles="..\Oqtane.Server\wwwroot\Packages\$(PackageName).bak" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>Oqtane.Database.MySQL</id> | ||
<version>1.0.0</version> | ||
<authors>Shaun Walker</authors> | ||
<owners>.NET Foundation</owners> | ||
<title>Oqtane MySQL Provider</title> | ||
<description>Add support for MySQL to the Oqtane Framework</description> | ||
<copyright>.NET Foundation</copyright> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/oqtane/oqtane.framework</projectUrl> | ||
<iconUrl>https://www.oqtane.org/Portals/0/icon.jpg</iconUrl> | ||
<tags>oqtane</tags> | ||
<releaseNotes>https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.2</releaseNotes> | ||
<summary>Add support for MySQL to the Oqtane Framework</summary> | ||
</metadata> | ||
<files> | ||
<file src="bin\net5.0\Oqtane.Database.MySQL.dll" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Oqtane.Database.MySQL.pdb" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Mysql.EntityFrameworkCore.dll" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Mysql.Data.dll" target="lib\net5.0" /> | ||
</files> | ||
</package> |
40 changes: 28 additions & 12 deletions
40
Oqtane.Database.PostgreSQL/Oqtane.Database.PostgreSQL.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<LangVersion>9</LangVersion> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>1.0.0</Version> | ||
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
<PackageName>$(MSBuildProjectName).$(Version).nupkg</PackageName> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="EFCore.NamingConventions" Version="5.0.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.4" /> | ||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.2" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Shared\Oqtane.Shared.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="EFCore.NamingConventions" Version="5.0.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.4" /> | ||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Server\Oqtane.Server.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="CopyPackage" AfterTargets="Pack"> | ||
<Copy SourceFiles="$(OutputPath)..\$(PackageName)" DestinationFiles="..\Oqtane.Server\wwwroot\Packages\$(PackageName).bak" /> | ||
</Target> | ||
</Project> |
26 changes: 26 additions & 0 deletions
26
Oqtane.Database.PostgreSQL/Oqtane.Database.PostgreSQL.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>Oqtane.Database.PostgreSQL</id> | ||
<version>1.0.0</version> | ||
<authors>Shaun Walker</authors> | ||
<owners>.NET Foundation</owners> | ||
<title>Oqtane PostgreSQL Provider</title> | ||
<description>Add support for PostgreSQL to the Oqtane Framework</description> | ||
<copyright>.NET Foundation</copyright> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/oqtane/oqtane.framework</projectUrl> | ||
<iconUrl>https://www.oqtane.org/Portals/0/icon.jpg</iconUrl> | ||
<tags>oqtane</tags> | ||
<releaseNotes>https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.2</releaseNotes> | ||
<summary>Add support for PostgreSQL to the Oqtane Framework</summary> | ||
</metadata> | ||
<files> | ||
<file src="bin\net5.0\Oqtane.Database.PostgreSQL.dll" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Oqtane.Database.PostgreSQL.pdb" target="lib\net5.0" /> | ||
<file src="bin\net5.0\EFCore.NamingConventions.dll" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Npgsql.EntityFrameworkCore.PostgreSQL.dll" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Npgsql.dll" target="lib\net5.0" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 27 additions & 9 deletions
36
Oqtane.Database.SqlServer/Oqtane.Database.SqlServer.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>1.0.0</Version> | ||
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
<PackageName>$(MSBuildProjectName).$(Version).nupkg</PackageName> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.4" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Shared\Oqtane.Shared.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.4" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Server\Oqtane.Server.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="CopyPackage" AfterTargets="Pack"> | ||
<Copy SourceFiles="$(OutputPath)..\$(PackageName)" DestinationFiles="..\Oqtane.Server\wwwroot\Packages\$(PackageName).bak" /> | ||
</Target> | ||
|
||
</Project> |
24 changes: 24 additions & 0 deletions
24
Oqtane.Database.SqlServer/Oqtane.Database.SqlServer.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>Oqtane.Database.SqlServer</id> | ||
<version>1.0.0</version> | ||
<authors>Shaun Walker</authors> | ||
<owners>.NET Foundation</owners> | ||
<title>Oqtane SqlServer Provider</title> | ||
<description>Add support for SqlServer to the Oqtane Framework</description> | ||
<copyright>.NET Foundation</copyright> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/oqtane/oqtane.framework</projectUrl> | ||
<iconUrl>https://www.oqtane.org/Portals/0/icon.jpg</iconUrl> | ||
<tags>oqtane</tags> | ||
<releaseNotes>https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.2</releaseNotes> | ||
<summary>Add support for SqlServer to the Oqtane Framework</summary> | ||
</metadata> | ||
<files> | ||
<file src="bin\net5.0\Oqtane.Database.SqlServer.dll" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Oqtane.Database.SqlServer.pdb" target="lib\net5.0" /> | ||
<file src="bin\net5.0\Microsoft.EntityFrameworkCore.SqlServer.dll" target="lib\net5.0" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>1.0.0</Version> | ||
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
<PackageName>$(MSBuildProjectName).$(Version).nupkg</PackageName> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.4" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Shared\Oqtane.Shared.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<OutputPath>bin</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.4" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Oqtane.Server\Oqtane.Server.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="CopyPackage" AfterTargets="Pack"> | ||
<Copy SourceFiles="$(OutputPath)..\$(PackageName)" DestinationFiles="..\Oqtane.Server\wwwroot\Packages\$(PackageName).bak" /> | ||
</Target> | ||
|
||
</Project> |
Oops, something went wrong.