-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cmd
27 lines (21 loc) · 903 Bytes
/
setup.cmd
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
@ECHO OFF
:: This file can now be deleted!
:: It was used when setting up the package solution (using https://github.com/LottePitcher/opinionated-package-starter)
:: set up git
git init
git branch -M main
git remote add origin https://github.com/KevinJump/Backchat.git
:: ensure latest Umbraco templates used
dotnet new install Umbraco.Templates --force
:: use the umbraco-extension dotnet template to add the package project
cd src
dotnet new umbraco-extension -n "BackChat" --site-domain 'https://localhost:44322' --include-example --allow-scripts Yes
:: replace package .csproj with the one from the template so has nuget info
cd BackChat
del BackChat.csproj
ren BackChat_nuget.csproj BackChat.csproj
:: add project to solution
cd..
dotnet sln add "BackChat"
:: add reference to project from test site
dotnet add "BackChat.TestSite/BackChat.TestSite.csproj" reference "BackChat/BackChat.csproj"