-
Notifications
You must be signed in to change notification settings - Fork 5
/
misc.txt
42 lines (24 loc) · 1.29 KB
/
misc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
dotnet tool update --global dotnet-ef
SQL Server Migrations
dotnet ef migrations add InitialCreate --context ZauberDbContext -o "Data/Migrations/SqlServer"
"DatabaseProvider": "SqlServer",
"ConnectionString": "Server=MORPHEUS;Database=ZauberCMS;Trusted_Connection=True;Connect Timeout=200;TrustServerCertificate=True;",
SQLite Migrations
dotnet ef migrations add InitialCreate --context SqliteZauberDbContext -o "Data/Migrations/SqLite"
"DatabaseProvider": "Sqlite",
"ConnectionString": "DataSource=app.db;Cache=Shared",
-- Create release nuget packages
dotnet build ZauberCMS.sln -c Release
-- Template
dotnet pack
-- When testing new Nuget packages, clear the caches first
dotnet nuget locals all --clear
-- Templates
Navigate to the root directory of your project (where your .template.config folder is located).
Run the following command to install your template locally:
dotnet new install ./
Then install the template locally
dotnet new zaubercms -n MyTestProject
To remove the templates. Navigate to the root directory of your project (where your .template.config folder is located).
dotnet new uninstall ./
Haven't figured out the template nuget package, for now, create the nuget package and then change extension to .zip, copy in the .template.config folder in the root and change extension back