-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1816 from Krypton-Suite/1813-feature-request-lts-…
…configuration-v85 * LTS Configuration
- Loading branch information
Showing
13 changed files
with
288 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@echo off | ||
|
||
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin" goto vs17prev | ||
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin" goto vs17ent | ||
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin" goto vs17pro | ||
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin" goto vs17com | ||
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin" goto vs17build | ||
|
||
echo "Unable to detect suitable environment. Check if VS 2022 is installed." | ||
|
||
goto end | ||
|
||
:vs17prev | ||
set msbuildpath=%ProgramFiles%\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin | ||
goto build | ||
|
||
:vs17ent | ||
set msbuildpath=%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin | ||
goto build | ||
|
||
:vs17pro | ||
set msbuildpath=%ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin | ||
goto build | ||
|
||
:vs17com | ||
set msbuildpath=%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin | ||
goto build | ||
|
||
:vs17build | ||
set msbuildpath=%ProgramFiles%\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin | ||
goto build | ||
|
||
:build | ||
for /f "tokens=* usebackq" %%A in (`tzutil /g`) do ( | ||
set "zone=%%A" | ||
) | ||
|
||
echo Started: %date% %time% %zone% | ||
echo | ||
set targets=Build | ||
if not "%~1" == "" set targets=%~1 | ||
"%msbuildpath%\msbuild.exe" /t:%targets% longtermstable.proj /fl /flp:logfile=longtermstable.log | ||
|
||
echo Build Completed: %date% %time% %zone% | ||
|
||
pause | ||
|
||
@echo Do you want to return to complete another task? (Y/N) | ||
set /p answer="Enter input: " | ||
if %answer%==Y (goto run) | ||
if %answer%==y (goto run) | ||
if %answer%==N exit | ||
if %answer%==n exit | ||
|
||
@echo Invalid input, please try again. | ||
|
||
:run | ||
cd .. | ||
|
||
run.cmd | ||
|
||
:end | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<Project> | ||
<Import Project="..\Directory.Build.props" /> | ||
|
||
<PropertyGroup> | ||
<RootFolder>$(MSBuildProjectDirectory)</RootFolder> | ||
<Configuration>Release</Configuration> | ||
</PropertyGroup> | ||
|
||
<Target Name="Clean"> | ||
<ItemGroup> | ||
<Projects Include="..\Source\Krypton Components\Krypton.*\*.csproj" /> | ||
</ItemGroup> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" Targets="Clean" /> | ||
</Target> | ||
|
||
<Target Name="Restore"> | ||
<ItemGroup> | ||
<Projects Include="..\Source\Krypton Components\Krypton.*\*.csproj" /> | ||
</ItemGroup> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" Targets="Restore" /> | ||
</Target> | ||
|
||
<Target Name="Build" DependsOnTargets="Restore"> | ||
<ItemGroup> | ||
<Projects Include="..\Source\Krypton Components\Krypton.*\*.csproj" /> | ||
</ItemGroup> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" /> | ||
</Target> | ||
|
||
<Target Name="CleanPackages"> | ||
<ItemGroup> | ||
<NugetPkgs Include="..\Bin\Release\*.nupkg" /> | ||
</ItemGroup> | ||
<Delete Files="@(NugetPkgs)" /> | ||
</Target> | ||
|
||
<Target Name="PackLite"> | ||
<ItemGroup> | ||
<Projects Include="..\Source\Krypton Components\Krypton.*\*.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.json" /> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.cache" /> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.g.targets" /> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.g.props" /> | ||
</ItemGroup> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" Targets="Clean" /> | ||
<Delete Files="@(NugetAssets)" /> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=lite" Targets="Restore" /> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=lite" Targets="Pack" /> | ||
</Target> | ||
|
||
<Target Name="PackAll"> | ||
<ItemGroup> | ||
<Projects Include="..\Source\Krypton Components\Krypton.*\*.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.json" /> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.cache" /> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.g.targets" /> | ||
<NugetAssets Include="..\Source\Krypton Components\Krypton.*\obj\*.g.props" /> | ||
</ItemGroup> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" Targets="Clean" /> | ||
<Delete Files="@(NugetAssets)" /> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" Targets="Restore" /> | ||
<MSBuild Projects="@(Projects)" Properties="Configuration=$(Configuration);TFMs=all" Targets="Pack" /> | ||
</Target> | ||
|
||
<Target Name="Pack" DependsOnTargets="CleanPackages;PackLite;PackAll" /> | ||
|
||
<Target Name="Push"> | ||
<ItemGroup> | ||
<NugetPkgs Include="..\Bin\Release\*.$(LibraryVersion).nupkg" /> | ||
</ItemGroup> | ||
<Exec Command="nuget.exe push %(NugetPkgs.Identity)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.