File tree Expand file tree Collapse file tree 8 files changed +79
-0
lines changed
Expand file tree Collapse file tree 8 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 1+ * .nupkg
2+ * .dll
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <package >
3+ <metadata >
4+ <id >Spe.Abstractions</id >
5+ <version >$version</version >
6+ <title >Sitecore PowerShell Extensions</title >
7+ <authors >Alan Płócieniak</authors >
8+ <owners >Adam Najmanowicz, Michael West</owners >
9+ <requireLicenseAcceptance >false</requireLicenseAcceptance >
10+ <license type =" expression" >MIT</license >
11+ <licenseUrl >https://licenses.nuget.org/MIT</licenseUrl >
12+ <icon >icon.png</icon >
13+ <projectUrl >https://github.com/SitecorePowerShell/Console</projectUrl >
14+ <description >A command line and scripting tool built for the Sitecore platform.</description >
15+ <copyright >© 2010-$YTD Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions</copyright >
16+ <tags >Sitecore PowerShell</tags >
17+ <dependencies >
18+ <group targetFramework =" .NETFramework4.5.2" />
19+ </dependencies >
20+ </metadata >
21+ </package >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <package >
3+ <metadata >
4+ <id >Spe</id >
5+ <version >$version</version >
6+ <title >Sitecore PowerShell Extensions</title >
7+ <authors >Alan Płócieniak</authors >
8+ <owners >Adam Najmanowicz, Michael West</owners >
9+ <requireLicenseAcceptance >false</requireLicenseAcceptance >
10+ <license type =" expression" >MIT</license >
11+ <licenseUrl >https://licenses.nuget.org/MIT</licenseUrl >
12+ <icon >icon.png</icon >
13+ <projectUrl >https://github.com/SitecorePowerShell/Console</projectUrl >
14+ <description >A command line and scripting tool built for the Sitecore platform.</description >
15+ <copyright >© 2010-$YTD Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions</copyright >
16+ <tags >Sitecore PowerShell</tags >
17+ <dependencies >
18+ <group targetFramework =" .NETFramework4.5.2" >
19+ <dependency id =" Spe.Abstractions" version =" $version" />
20+ </group >
21+ </dependencies >
22+ </metadata >
23+ </package >
Original file line number Diff line number Diff line change 1+ # SitecorePowerShell.NuGet
2+
3+ Packages available via [ ** nuget.org** ] ( https://www.nuget.org )
4+
5+ - [ https://www.nuget.org/packages/Spe ] ( https://www.nuget.org/packages/Spe )
6+ - [ https://www.nuget.org/packages/Spe.Abstractions ] ( https://www.nuget.org/packages/Spe.Abstractions )
7+
Original file line number Diff line number Diff line change 1+ $version = " 6.3"
2+ function Expand-Variables {
3+ param (
4+ [Parameter (Mandatory = $true , Position = 0 , ValueFromPipeline = $true )]
5+ $File
6+ )
7+ $YTD = (Get-Date ).Year
8+ $template = Get-Content $File.FullName
9+ $template = $template.Replace (" `$ version" , $version )
10+ $template = $template.Replace (" `$ YTD" , $YTD )
11+ $template | Set-Content - Path $File.FullName
12+ }
13+
14+ " .\.nuspec\Spe" , " .\.nuspec\Spe.Abstractions" | % {
15+ Push-Location $_
16+ Get-Item * .nupkg | Remove-Item
17+ Get-Item * .nuspec | Expand-Variables
18+ nuget pack
19+ Pop-Location
20+ }
Original file line number Diff line number Diff line change 1+ Clear-Host
2+ $path = ' C:\repo\SitecorePowerShell\src\Spe\bin\Debug\Spe.dll'
3+ [Reflection.Assembly ]::ReflectionOnlyLoadFrom($path ).CustomAttributes | `
4+ ? { $_.AttributeType.Name -eq " TargetFrameworkAttribute" } | `
5+ Select-Object - ExpandProperty ConstructorArguments | `
6+ Select-Object - ExpandProperty value
You can’t perform that action at this time.
0 commit comments