-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackageMvcDashboardLocalize.cmd
26 lines (24 loc) · 1.49 KB
/
PackageMvcDashboardLocalize.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
@ECHO OFF
:: SEE ALSO: https://docs.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-template-package
:: SEE ALSO: https://github.com/sayedihashimi/template-sample#how-to-ship-a-template-inside-of-a-visual-studio-extension-vsix
:: SEE ALSO: https://www.c-sharpcorner.com/article/how-to-create-a-vsix-extension-for-a-custom-template-project/
XCOPY /S /Y "%~dp0MyMvcApp\Areas\MvcDashboardLocalize" "%~dp0packaging\MvcDashboardLocalize\templates\MvcDashboardLocalize\Areas\MvcDashboardLocalize\"
XCOPY /S /Y "%~dp0MyMvcApp\Data\Localize" "%~dp0packaging\MvcDashboardLocalize\templates\MvcDashboardLocalize\Data\Localize\"
XCOPY /S /Y "%~dp0MyMvcApp\Localize" "%~dp0packaging\MvcDashboardLocalize\templates\MvcDashboardLocalize\Localize\"
COPY /Y "%~dp0MyMvcApp\ModelStateLocalization.json" "%~dp0packaging\MvcDashboardLocalize\templates\MvcDashboardLocalize\ModelStateLocalization.json"
ECHO.
ECHO Edit the template file then save and close to proceed.
NOTEPAD "%~dp0packaging\MvcDashboardLocalize\templates\MvcDashboardLocalize\.template.config\template.json"
ECHO Edit the project file (version nr etc) then save and close to proceed.
NOTEPAD "%~dp0packaging\MvcDashboardLocalize\templatepack.csproj"
ECHO Edit the README file then save and close to proceed.
NOTEPAD "%~dp0packaging\MvcDashboardLocalize\docs\README.md"
PUSHD "%~dp0packaging\MvcDashboardLocalize"
DOTNET pack
ECHO.
ECHO Package(s) created:
DIR bin\Debug\*.nupkg /b /s
ECHO.
POPD
PAUSE
EXPLORER /root,"%~dp0packaging\MvcDashboardLocalize\bin"