Skip to content

Commit

Permalink
Merge pull request #6 from xenoinc/feature/NuGet1
Browse files Browse the repository at this point in the history
Merge feature/NuGet1 into master
  • Loading branch information
DamianSuess authored Aug 10, 2020
2 parents 11d3999 + 002b906 commit 4beb61c
Show file tree
Hide file tree
Showing 31 changed files with 79 additions and 36 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ TestResult.xml


## USER DEFINED

/source/TestResults
/docs/*.csv
/docs/backup
/tests
/tools
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("SqlMigrator.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("LiteMigrator.Tests")]
[assembly: AssemblyDescription("LiteMigrator System Tests")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SqlMigrator.Tests")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCompany("Xeno Innovations")]
[assembly: AssemblyProduct("LiteMigrator.Tests")]
[assembly: AssemblyCopyright("Copyright © Xeno Innovations, Inc. 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SqlMigrator\Xeno.LiteMigrator.csproj">
<ProjectReference Include="..\LiteMigrator\Xeno.LiteMigrator.csproj">
<Project>{c96b0d25-5aa2-421e-983b-44cbffe82129}</Project>
<Name>Xeno.LiteMigrator</Name>
</ProjectReference>
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions source/LiteMigrator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29209.62
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xeno.LiteMigrator", "SqlMigrator\Xeno.LiteMigrator.csproj", "{C96B0D25-5AA2-421E-983B-44CBFFE82129}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xeno.LiteMigrator", "LiteMigrator\Xeno.LiteMigrator.csproj", "{C96B0D25-5AA2-421E-983B-44CBFFE82129}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xeno.LiteMigrator.SystemTests", "SqlMigrator.Tests\Xeno.LiteMigrator.SystemTests.csproj", "{EF065792-4818-4B3F-AF82-2347F67A6ABB}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xeno.LiteMigrator.SystemTests", "LiteMigrator.Tests\Xeno.LiteMigrator.SystemTests.csproj", "{EF065792-4818-4B3F-AF82-2347F67A6ABB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{157447EB-A133-4D28-8722-C5FD04367688}"
EndProject
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public LiteMigration(string databasePath, string baseNamespace, DatabaseType dat
break;
}

VersionInitializeAsync().Wait();
//// Task.Run(async () => await VersionInitializeAsync());
VersionInitialize();

_isInitialized = true;
}

Expand Down Expand Up @@ -344,6 +346,7 @@ public async Task<bool> ReinitializeAsync()
// Maybe use Lazy loading?
////Versions = new VersionFactory();
////Versions.Initialize();

await VersionInitializeAsync();

return true;
Expand Down Expand Up @@ -451,6 +454,22 @@ public async Task RegisterVersionAsync(SQLiteAsyncConnection db, IMigration migr
AddVersion(migration);
}

public void VersionInitialize()
{
try
{
Versions = new Versions();

SQLiteAsyncConnection db = new SQLiteAsyncConnection(DatabasePath);
db.CreateTableAsync<VersionInfo>();
db.CloseAsync();
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine("ERROR: " + ex.Message);
}
}

public async Task VersionInitializeAsync()
{
try
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions source/LiteMigrator/Xeno.LiteMigrator.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Xeno.LiteMigrator</AssemblyName>
<RootNamespace>Xeno.LiteMigrator</RootNamespace>
<Authors>Damian Suess</Authors>
<Company>Xeno Innovations</Company>
<Description>LiteMigrator is a tiny SQLite Migration framework for crossplatform projects. Built for Xamarin mobile projects!</Description>
<Copyright>Copyright 2020 Xeno Innovations, Inc.</Copyright>
<Product>LiteMigrator</Product>
<PackageTags>LiteMigrator, sqlite, lite migrator, light migrator, xamarin, fluent migrator, database migration</PackageTags>
<PackageProjectUrl>https://github.com/xenoinc/LiteMigrator</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<RepositoryUrl>https://github.com/xenoinc/LiteMigrator</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>Basic sqlite migration utility</PackageReleaseNotes>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>license.txt</PackageLicenseFile>
<Version>0.5.0.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\..\output</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\output</OutputPath>
</PropertyGroup>

<ItemGroup>
<Folder Include="Factory\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="sqlite-net-pcl" Version="1.7.335" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\docs\logo.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\license.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
25 changes: 0 additions & 25 deletions source/SqlMigrator/Xeno.LiteMigrator.csproj

This file was deleted.

0 comments on commit 4beb61c

Please sign in to comment.