-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare release 1.1.0 * Update animation examples * Update Readme file
- Loading branch information
1 parent
0914aae
commit a0e979b
Showing
8 changed files
with
122 additions
and
50 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
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,20 @@ | ||
Function Build-Solution{ | ||
param( | ||
[Parameter(Mandatory=$true)] | ||
[String] $Path | ||
) | ||
process | ||
{ | ||
$MsBuildExe = 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe' | ||
|
||
Write-Host "Building $($Path)" -foregroundcolor green | ||
& "$($MsBuildExe)" "$($Path)" /t:clean,restore,rebuild,pack /p:Configuration=Release /p:Platform="Any CPU" /m | ||
} | ||
} | ||
|
||
$NuGetPath = '..\MagicGradients\**\Release\*.nupkg' | ||
|
||
Remove-Item $NuGetPath | ||
Build-Solution('..\MagicGradients\MagicGradients.csproj') | ||
|
||
Get-ChildItem -Path $NuGetPath -Recurse | Copy-Item -Destination 'C:\Packages' |
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,34 @@ | ||
Function Update-NuGetVersion{ | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(Mandatory=$true)] | ||
[string]$Version, | ||
[Parameter(Mandatory=$true)] | ||
[String]$File | ||
) | ||
Replace-LineInFile $Version $File | ||
} | ||
|
||
Function Replace-LineInFile{ | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(Mandatory=$true)] | ||
[String]$Version, | ||
[String]$File | ||
) | ||
Write-Host "Set new $Version version for $File" | ||
$Regex = '(?<=<Version>)[^<]*' | ||
(Get-Content $File) -replace $Regex, $Version | Set-Content $File | ||
} | ||
|
||
Function Update-AllNuGetVersions{ | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(Mandatory=$true)] | ||
[String]$Version | ||
) | ||
|
||
Update-NuGetVersion $Version '..\MagicGradients\MagicGradients.csproj'; | ||
} | ||
|
||
Update-AllNuGetVersions |