Finish package changes for autosigning

This commit is contained in:
Michael C. Fanning 2018-08-13 14:32:03 -07:00
Родитель c193112e1e
Коммит f8e80c9d29
3 изменённых файлов: 56 добавлений и 9 удалений

Просмотреть файл

@ -19,11 +19,11 @@ set Platform=AnyCPU
) )
set BinaryOutputDirectory=%BinaryOutputDirectory%\%Platform%_%Configuration%\ set BinaryOutputDirectory=%BinaryOutputDirectory%\%Platform%_%Configuration%\
set LayoutForSigningDirectory=%BinaryOutputDirectory%\..\LayoutForSigning set SigningDirectory=%BinaryOutputDirectory%\..\Signing
call :CreateDirIfNotExist %LayoutForSigningDirectory% call :CreateDirIfNotExist %SigningDirectory%
call :CreateDirIfNotExist %LayoutForSigningDirectory%\net461\ call :CreateDirIfNotExist %SigningDirectory%\net461\
call :CreateDirIfNotExist %LayoutForSigningDirectory%\netcoreapp2.0 call :CreateDirIfNotExist %SigningDirectory%\netcoreapp2.0
call :CopyFilesForMultitargeting Json.Schema.dll || goto :ExitFailed call :CopyFilesForMultitargeting Json.Schema.dll || goto :ExitFailed
call :CopyFilesForMultitargeting Json.Pointer.dll || goto :ExitFailed call :CopyFilesForMultitargeting Json.Pointer.dll || goto :ExitFailed
@ -33,15 +33,12 @@ call :CopyFilesForMultitargeting Json.Schema.Validation.dll || goto :ExitFailed
goto :Exit goto :Exit
:CopyFilesForMultitargeting :CopyFilesForMultitargeting
echo xcopy /Y %BinaryOutputDirectory%\%~n1\netstandard2.0\%1 %LayoutForSigningDirectory%\netcoreapp2.0\ xcopy /Y %BinaryOutputDirectory%\%~n1\netstandard2.0\Microsoft.%1 %SigningDirectory%\netcoreapp2.0\
xcopy /Y %BinaryOutputDirectory%\%~n1\netstandard2.0\Microsoft.%1 %LayoutForSigningDirectory%\netcoreapp2.0\
if "%ERRORLEVEL%" NEQ "0" (echo %1 assembly copy failed. && goto :CopyFilesExit) if "%ERRORLEVEL%" NEQ "0" (echo %1 assembly copy failed. && goto :CopyFilesExit)
echo xcopy /Y %BinaryOutputDirectory%\%~n1\net461\Microsoft.%1 %LayoutForSigningDirectory%\netcoreapp2.0\ xcopy /Y %BinaryOutputDirectory%\%~n1\net461\Microsoft.%1 %SigningDirectory%\net461\
xcopy /Y %BinaryOutputDirectory%\%~n1\net461\Microsoft.%1 %LayoutForSigningDirectory%\netcoreapp2.0\
if "%ERRORLEVEL%" NEQ "0" (echo %1 assembly copy failed. && goto :CopyFilesExit) if "%ERRORLEVEL%" NEQ "0" (echo %1 assembly copy failed. && goto :CopyFilesExit)
:CopyFilesExit :CopyFilesExit
Exit /B %ERRORLEVEL% Exit /B %ERRORLEVEL%

Просмотреть файл

@ -0,0 +1,50 @@
::Build NuGet packages step
@ECHO off
SETLOCAL
set BinaryOutputDirectory=%1
set Configuration=%1
set Platform=%2
if "%BinaryOutputDirectory%" EQU "" (
set BinaryOutputDirectory=.\bld\bin\
)
if "%Configuration%" EQU "" (
set Configuration=Release
)
if "%Platform%" EQU "" (
set Platform=AnyCpu
)
set BinaryOutputDirectory=%BinaryOutputDirectory%\%Platform%_%Configuration%\
set SigningDirectory=%BinaryOutputDirectory%\..\Signing
:: Copy all multitargeted assemblies to their locations
call :CopyFilesForMultitargeting Json.Schema.dll || goto :ExitFailed
call :CopyFilesForMultitargeting Json.Pointer.dll || goto :ExitFailed
call :CopyFilesForMultitargeting Json.Schema.ToDotNet.dll || goto :ExitFailed
call :CopyFilesForMultitargeting Json.Schema.Validation.dll || goto :ExitFailed
goto :Exit
:CopyFilesForMultitargeting
xcopy /Y %SigningDirectory%\netcoreapp2.0\Microsoft.%1 %BinaryOutputDirectory%\%~n1\netstandard2.0\
if "%ERRORLEVEL%" NEQ "0" (echo %1 assembly copy failed. && goto :CopyFilesExit)
echo xcopy /Y %SigningDirectory%\net461\Microsoft.%1 %BinaryOutputDirectory%\%~n1\net461\
xcopy /Y %SigningDirectory%\net461\Microsoft.%1 %BinaryOutputDirectory%\%~n1\net461\
if "%ERRORLEVEL%" NEQ "0" (echo %1 assembly copy failed. && goto :CopyFilesExit)
:CopyFilesExit
Exit /B %ERRORLEVEL%
:ExitFailed
@echo.
@echo Build NuGet packages from layout directory step failed.
exit /b 1
:Exit

Двоичные данные
jschema.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 38 KiB