-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.ps1
19 lines (14 loc) · 862 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Write-Host 'NativeLibNugetStuff' -ForegroundColor Blue
Write-Host 'Building native library (Rust)' -ForegroundColor Cyan
cargo build --manifest-path=native/Cargo.toml --release
Write-Host 'Copying native library to wrapper project' -ForegroundColor Cyan
cp .\native\target\release\native.dll .\NativeLibNugetStuff.Wrapper\
Write-Host 'Building NativeLibNugetStuff.Wrapper' -ForegroundColor Cyan
dotnet pack .\NativeLibNugetStuff.Wrapper\ -o .\nugets
Write-Host 'Building NativeLibNugetStuff.Lib' -ForegroundColor Cyan
dotnet pack .\NativeLibNugetStuff.Lib\ -o .\nugets
Write-Host 'Publishing NativeLibNugetStuff.Consumer' -ForegroundColor Cyan
dotnet publish .\NativeLibNugetStuff.Consumer\ -o .\output
Write-Host 'Running published NativeLibNugetStuff.Consumer' -ForegroundColor Cyan
Write-Host
.\output\NativeLibNugetStuff.Consumer.exe