-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename NETSTANDARD1_3 to NETCOREAPP1_0 in tests * Add netstandard2.0 and netcoreapp2.0 to target frameworks * Build scripts for netstandard2.0 * Add netstandard2.0 to AppVeyor
- Loading branch information
Showing
12 changed files
with
97 additions
and
23 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
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,58 @@ | ||
@setlocal | ||
|
||
@rem Argument "--with-tests" forces the build of test project | ||
@set arg1=%1 | ||
|
||
@rem Argument "--skip-cleaning" skips solution cleaning | ||
@set arg2=%2 | ||
|
||
@rem Initialize build environment of Visual Studio 2017 Community/Professional/Enterprise | ||
@set tools= | ||
@set tmptools="c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat" | ||
@if exist %tmptools% set tools=%tmptools% | ||
@set tmptools="c:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsMSBuildCmd.bat" | ||
@if exist %tmptools% set tools=%tmptools% | ||
@set tmptools="c:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsMSBuildCmd.bat" | ||
@if exist %tmptools% set tools=%tmptools% | ||
@if not defined tools goto :error | ||
call %tools% | ||
@echo on | ||
|
||
@rem Delete output directory | ||
rmdir /S /Q netstandard2.0 | ||
|
||
@if not "%arg2%"=="--skip-cleaning" ( | ||
@rem Clean solution | ||
msbuild ..\src\Pkcs11Interop.NetStandard\Pkcs11Interop.NetStandard.sln ^ | ||
/p:Configuration=Release /p:Platform="Any CPU" /target:Clean || goto :error | ||
) | ||
|
||
@rem Restore dependencies for the solution | ||
msbuild ..\src\Pkcs11Interop.NetStandard\Pkcs11Interop.NetStandard.sln ^ | ||
/p:Configuration=Release /p:Platform="Any CPU" /target:Restore || goto :error | ||
|
||
@rem Build Pkcs11Interop project | ||
msbuild ..\src\Pkcs11Interop.NetStandard\Pkcs11Interop\Pkcs11Interop.csproj ^ | ||
/p:Configuration=Release /p:Platform=AnyCPU /p:TargetFramework=netstandard2.0 ^ | ||
/target:Build || goto :error | ||
|
||
@if "%arg1%"=="--with-tests" ( | ||
@rem Build Pkcs11Interop.DotNetCore.Tests project | ||
msbuild ..\src\Pkcs11Interop.NetStandard\Pkcs11Interop.DotNetCore.Tests\Pkcs11Interop.DotNetCore.Tests.csproj ^ | ||
/p:Configuration=Release /p:Platform=AnyCPU /p:TargetFramework=netcoreapp2.0 ^ | ||
/target:Build || goto :error | ||
) | ||
|
||
@rem Copy result to output directory | ||
mkdir netstandard2.0 || goto :error | ||
copy ..\src\Pkcs11Interop.NetStandard\Pkcs11Interop\bin\Release\netstandard2.0\Pkcs11Interop.dll netstandard2.0 || goto :error | ||
copy ..\src\Pkcs11Interop.NetStandard\Pkcs11Interop\bin\Release\netstandard2.0\Pkcs11Interop.xml netstandard2.0 || goto :error | ||
|
||
@echo *** BUILD NETSTANDARD2.0 SUCCESSFUL *** | ||
@endlocal | ||
@exit /b 0 | ||
|
||
:error | ||
@echo *** BUILD NETSTANDARD2.0 FAILED *** | ||
@endlocal | ||
@exit /b 1 |
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
5 changes: 2 additions & 3 deletions
5
...1Interop.NetStandard/Pkcs11Interop.DotNetCore.Tests/Pkcs11Interop.DotNetCore.Tests.csproj
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
6 changes: 3 additions & 3 deletions
6
src/Pkcs11Interop.NetStandard/Pkcs11Interop.Mock/Pkcs11Interop.Mock.csproj
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* Jaroslav IMRICH <[email protected]> | ||
*/ | ||
|
||
#if (!NETSTANDARD1_3) | ||
#if (!NETCOREAPP1_0) | ||
|
||
using System.IO; | ||
using System.Runtime.Serialization.Formatters.Binary; | ||
|
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