Przeglądaj źródła

add nugets and build scripts

Dalibor Votruba 2 lat temu
rodzic
commit
8f4604ea19
44 zmienionych plików z 710 dodań i 50 usunięć
  1. 28 0
      Common/bootstrap.cmd
  2. 18 0
      Common/publishD.cmd
  3. 18 0
      Common/publishR.cmd
  4. 29 0
      Common/qdr.fnd.core.business/bootstrap.cmd
  5. 15 0
      Common/qdr.fnd.core.business/buildD.cmd
  6. 15 0
      Common/qdr.fnd.core.business/buildR.cmd
  7. 16 0
      Common/qdr.fnd.core.business/publishD.cmd
  8. 16 0
      Common/qdr.fnd.core.business/publishR.cmd
  9. 8 3
      Common/qdr.fnd.core.business/qdr.fnd.core.business.csproj
  10. 29 0
      Common/qdr.fnd.core.data.itfc/bootstrap.cmd
  11. 15 0
      Common/qdr.fnd.core.data.itfc/buildD.cmd
  12. 15 0
      Common/qdr.fnd.core.data.itfc/buildR.cmd
  13. 16 0
      Common/qdr.fnd.core.data.itfc/publishD.cmd
  14. 16 0
      Common/qdr.fnd.core.data.itfc/publishR.cmd
  15. 9 2
      Common/qdr.fnd.core.data.itfc/qdr.fnd.core.data.itfc.csproj
  16. 29 0
      Common/qdr.fnd.core.data/bootstrap.cmd
  17. 15 0
      Common/qdr.fnd.core.data/buildD.cmd
  18. 15 0
      Common/qdr.fnd.core.data/buildR.cmd
  19. 16 0
      Common/qdr.fnd.core.data/publishD.cmd
  20. 16 0
      Common/qdr.fnd.core.data/publishR.cmd
  21. 9 5
      Common/qdr.fnd.core.data/qdr.fnd.core.data.csproj
  22. 29 0
      Common/qdr.fnd.core.nlog/bootstrap.cmd
  23. 15 0
      Common/qdr.fnd.core.nlog/buildD.cmd
  24. 15 0
      Common/qdr.fnd.core.nlog/buildR.cmd
  25. 16 0
      Common/qdr.fnd.core.nlog/publishD.cmd
  26. 16 0
      Common/qdr.fnd.core.nlog/publishR.cmd
  27. 7 3
      Common/qdr.fnd.core.nlog/qdr.fnd.core.nlog.csproj
  28. 29 0
      Common/qdr.fnd.core.qconsole/bootstrap.cmd
  29. 15 0
      Common/qdr.fnd.core.qconsole/buildD.cmd
  30. 15 0
      Common/qdr.fnd.core.qconsole/buildR.cmd
  31. 16 0
      Common/qdr.fnd.core.qconsole/publishD.cmd
  32. 16 0
      Common/qdr.fnd.core.qconsole/publishR.cmd
  33. 9 2
      Common/qdr.fnd.core.qconsole/qdr.fnd.core.qconsole.csproj
  34. 29 0
      Common/qdr.fnd.core.web/bootstrap.cmd
  35. 15 0
      Common/qdr.fnd.core.web/buildD.cmd
  36. 15 0
      Common/qdr.fnd.core.web/buildR.cmd
  37. 16 0
      Common/qdr.fnd.core.web/publishD.cmd
  38. 16 0
      Common/qdr.fnd.core.web/publishR.cmd
  39. 9 5
      Common/qdr.fnd.core.web/qdr.fnd.core.web.csproj
  40. 29 0
      Common/qdr.fnd.core/bootstrap.cmd
  41. 1 7
      Common/qdr.fnd.core/buildD.cmd
  42. 1 7
      Common/qdr.fnd.core/buildR.cmd
  43. 2 16
      Common/qdr.fnd.core/publishD.cmd
  44. 16 0
      Common/qdr.fnd.core/publishR.cmd

+ 28 - 0
Common/bootstrap.cmd

@@ -0,0 +1,28 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 18 - 0
Common/publishD.cmd

@@ -0,0 +1,18 @@
+@echo off
+call bootstrap.cmd
+echo **** Global publish started ****
+set curdir=%CD%
+
+for /D %%i in (*) do (
+cd %%i
+if exist publishD.cmd call publishD.cmd
+echo -----------------------------------------------------------------------------------
+echo .
+echo .
+cd %curdir% ) 
+
+goto done
+
+:done
+echo **** DONE ****
+:exit

+ 18 - 0
Common/publishR.cmd

@@ -0,0 +1,18 @@
+@echo off
+call bootstrap.cmd
+echo **** Global publish started ****
+set curdir=%CD%
+
+for /D %%i in (*) do (
+cd %%i
+if exist publishR.cmd call publishR.cmd
+echo -----------------------------------------------------------------------------------
+echo .
+echo .
+cd %curdir% ) 
+
+goto done
+
+:done
+echo **** DONE ****
+:exit

+ 29 - 0
Common/qdr.fnd.core.business/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 15 - 0
Common/qdr.fnd.core.business/buildD.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet build -c Debug
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 15 - 0
Common/qdr.fnd.core.business/buildR.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet build -c Release
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.business/publishD.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet pack -c Debug
+
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.business/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 8 - 3
Common/qdr.fnd.core.business/qdr.fnd.core.business.csproj

@@ -20,13 +20,18 @@
     <Version>0.0.1.0-alpha</Version>
   </PropertyGroup>
 
-  <ItemGroup>
-    <ProjectReference Include="..\qdr.fnd.core.data\qdr.fnd.core.data.csproj" />
-    <ProjectReference Include="..\qdr.fnd.core\qdr.fnd.core.csproj" />
+  <ItemGroup>
+    <None Include="..\quadarax_dll.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
   </ItemGroup>
 
   <ItemGroup>
     <PackageReference Include="NLog" Version="5.2.4" />
+    <PackageReference Include="qdr.fnd.core" Version="0.0.1-alpha" />
+    <PackageReference Include="qdr.fnd.core.data" Version="0.0.1-alpha" />
+    <PackageReference Include="qdr.fnd.core.data.itfc" Version="0.0.1-alpha" />
   </ItemGroup>
 
 </Project>

+ 29 - 0
Common/qdr.fnd.core.data.itfc/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 15 - 0
Common/qdr.fnd.core.data.itfc/buildD.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet build -c Debug
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 15 - 0
Common/qdr.fnd.core.data.itfc/buildR.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet build -c Release
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.data.itfc/publishD.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet pack -c Debug
+
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.data.itfc/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 9 - 2
Common/qdr.fnd.core.data.itfc/qdr.fnd.core.data.itfc.csproj

@@ -20,8 +20,15 @@
     <Version>0.0.1.0-alpha</Version>
   </PropertyGroup>
 
-  <ItemGroup>
-    <ProjectReference Include="..\qdr.fnd.core\qdr.fnd.core.csproj" />
+  <ItemGroup>
+    <None Include="..\quadarax_dll.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
+  </ItemGroup>
+
+  <ItemGroup>
+    <PackageReference Include="qdr.fnd.core" Version="0.0.1-alpha" />
   </ItemGroup>
 
 </Project>

+ 29 - 0
Common/qdr.fnd.core.data/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 15 - 0
Common/qdr.fnd.core.data/buildD.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet build -c Debug
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 15 - 0
Common/qdr.fnd.core.data/buildR.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet build -c Release
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.data/publishD.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet pack -c Debug
+
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.data/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 9 - 5
Common/qdr.fnd.core.data/qdr.fnd.core.data.csproj

@@ -20,14 +20,18 @@
     <Version>0.0.1.0-alpha</Version>
   </PropertyGroup>
 
-  <ItemGroup>
-    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.11" />
-    <PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
+  <ItemGroup>
+    <None Include="..\quadarax_dll.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
   </ItemGroup>
 
   <ItemGroup>
-    <ProjectReference Include="..\qdr.fnd.core.data.itfc\qdr.fnd.core.data.itfc.csproj" />
-    <ProjectReference Include="..\qdr.fnd.core\qdr.fnd.core.csproj" />
+    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.11" />
+    <PackageReference Include="qdr.fnd.core" Version="0.0.1-alpha" />
+    <PackageReference Include="qdr.fnd.core.data.itfc" Version="0.0.1-alpha" />
+    <PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
   </ItemGroup>
 
 </Project>

+ 29 - 0
Common/qdr.fnd.core.nlog/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 15 - 0
Common/qdr.fnd.core.nlog/buildD.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet build -c Debug
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 15 - 0
Common/qdr.fnd.core.nlog/buildR.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet build -c Release
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.nlog/publishD.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet pack -c Debug
+
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.nlog/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 7 - 3
Common/qdr.fnd.core.nlog/qdr.fnd.core.nlog.csproj

@@ -21,12 +21,16 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="NLog" Version="5.2.4" />
-    <PackageReference Include="NLog.Extensions.Logging" Version="5.3.4" />
+    <None Include="..\quadarax_dll.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
   </ItemGroup>
 
   <ItemGroup>
-    <ProjectReference Include="..\qdr.fnd.core\qdr.fnd.core.csproj" />
+    <PackageReference Include="NLog" Version="5.2.4" />
+    <PackageReference Include="NLog.Extensions.Logging" Version="5.3.4" />
+    <PackageReference Include="qdr.fnd.core" Version="0.0.1-alpha" />
   </ItemGroup>
 
 </Project>

+ 29 - 0
Common/qdr.fnd.core.qconsole/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 15 - 0
Common/qdr.fnd.core.qconsole/buildD.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet build -c Debug
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 15 - 0
Common/qdr.fnd.core.qconsole/buildR.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet build -c Release
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.qconsole/publishD.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet pack -c Debug
+
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.qconsole/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 9 - 2
Common/qdr.fnd.core.qconsole/qdr.fnd.core.qconsole.csproj

@@ -20,8 +20,15 @@
     <Version>0.0.1.0-alpha</Version>
   </PropertyGroup>
 
-  <ItemGroup>
-    <ProjectReference Include="..\qdr.fnd.core\qdr.fnd.core.csproj" />
+  <ItemGroup>
+    <None Include="..\quadarax_dll.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
+  </ItemGroup>
+
+  <ItemGroup>
+    <PackageReference Include="qdr.fnd.core" Version="0.0.1-alpha" />
   </ItemGroup>
 
 </Project>

+ 29 - 0
Common/qdr.fnd.core.web/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 15 - 0
Common/qdr.fnd.core.web/buildD.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet build -c Debug
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 15 - 0
Common/qdr.fnd.core.web/buildR.cmd

@@ -0,0 +1,15 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet build -c Release
+
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.web/publishD.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\debug
+
+rem ** build **
+dotnet pack -c Debug
+
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 16 - 0
Common/qdr.fnd.core.web/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit

+ 9 - 5
Common/qdr.fnd.core.web/qdr.fnd.core.web.csproj

@@ -20,14 +20,18 @@
     <Version>0.0.1.0-alpha</Version>
   </PropertyGroup>
 
-  <ItemGroup>
-    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
-    <PackageReference Include="NLog" Version="5.2.4" />
+  <ItemGroup>
+    <None Include="..\quadarax_dll.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
   </ItemGroup>
 
   <ItemGroup>
-    <ProjectReference Include="..\qdr.fnd.core.business\qdr.fnd.core.business.csproj" />
-    <ProjectReference Include="..\qdr.fnd.core\qdr.fnd.core.csproj" />
+    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
+    <PackageReference Include="NLog" Version="5.2.4" />
+    <PackageReference Include="qdr.fnd.core" Version="0.0.1-alpha" />
+    <PackageReference Include="qdr.fnd.core.business" Version="0.0.1-alpha" />
   </ItemGroup>
 
 </Project>

+ 29 - 0
Common/qdr.fnd.core/bootstrap.cmd

@@ -0,0 +1,29 @@
+@echo off
+echo * Bootstrap started to setup environment
+set nuget=D:\Projects\nuget.exe
+set nugetrepo=D:\Projects\quadarax\@nuget.repo
+
+rem ** check if directories exists **
+if not exist "bin" goto err_bin_not_found
+if not exist "%nuget%" goto err_locnuget_not_found
+if not exist "%nugetrepo%" goto err_locnugetrepo_not_found
+
+
+goto done
+
+:err_bin_not_found
+echo ERR: missing 'bin' directory in current location
+goto exit
+
+:err_locnuget_not_found
+echo ERR: cannot find nuget.exe '%nuget%' or path is invalid.
+goto exit
+
+:err_locnugetrepo_not_found
+echo ERR: cannot find nuget repository '%nugetrepo%' or path is invalid.
+goto exit
+
+
+:done
+echo * Bootstrap succesfuly set
+:exit

+ 1 - 7
Common/qdr.fnd.core/buildD.cmd

@@ -1,7 +1,5 @@
 @echo off
-
-rem ** check if directories exists **
-if not exist "bin" goto err_bin_not_found
+call bootstrap.cmd
 
 rem ** cleanup **
 rmdir /s /q bin\debug
@@ -12,10 +10,6 @@ dotnet build -c Debug
 
 goto done
 
-:err_bin_not_found
-echo ERR: missing 'bin' directory in current location
-goto exit
-
 :done
 echo *** DONE ***
 :exit

+ 1 - 7
Common/qdr.fnd.core/buildR.cmd

@@ -1,7 +1,5 @@
 @echo off
-
-rem ** check if directories exists **
-if not exist "bin" goto err_bin_not_found
+call bootstrap.cmd
 
 rem ** cleanup **
 rmdir /s /q bin\release
@@ -12,10 +10,6 @@ dotnet build -c Release
 
 goto done
 
-:err_bin_not_found
-echo ERR: missing 'bin' directory in current location
-goto exit
-
 :done
 echo *** DONE ***
 :exit

+ 2 - 16
Common/qdr.fnd.core/publishD.cmd

@@ -1,30 +1,16 @@
 @echo off
+call bootstrap.cmd
 
-set nuget=D:\Projects\nuget.exe
-
-rem ** check if directories exists **
-if not exist "bin" goto err_bin_not_found
-if not exists %LOCAL_NUGET_REPO% goto err_locnuget_not_found
 rem ** cleanup **
 rmdir /s /q bin\debug
 
-%nuget%
-
 rem ** build **
 dotnet pack -c Debug
 
-for %i in (bin\debug) do nuget 
+for %%i in (bin\debug\*.nupkg) do nuget add %%i -source %nugetrepo%
 
 goto done
 
-:err_bin_not_found
-echo ERR: missing 'bin' directory in current location
-goto exit
-
-:err_locnuget_not_found
-echo ERR: cannot access directory stored in enviromental variable 'LOCAL_NUGET_REPO' or path is invalid.
-goto exit
-
 :done
 echo *** DONE ***
 :exit

+ 16 - 0
Common/qdr.fnd.core/publishR.cmd

@@ -0,0 +1,16 @@
+@echo off
+call bootstrap.cmd
+
+rem ** cleanup **
+rmdir /s /q bin\release
+
+rem ** build **
+dotnet pack -c Release
+
+for %%i in (bin\release\*.nupkg) do nuget add %%i -source %nugetrepo%
+
+goto done
+
+:done
+echo *** DONE ***
+:exit