Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WAF Change version number to 4.1.0.7; Fix UWP NuGet package creation
- Loading branch information
Showing
12 changed files
with
96 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
param( | ||
[Parameter(mandatory=$true)][string] $Nuspec, | ||
[Parameter(mandatory=$true)][string] $TemplateNupkg, | ||
[Parameter(mandatory=$true)][string] $TemplateNuspec | ||
) | ||
|
||
$Nuspec = Resolve-Path $Nuspec | ||
$TemplateNupkg = Resolve-Path $TemplateNupkg | ||
|
||
Add-Type -Assembly System.IO.Compression.FileSystem | ||
$ZipArchive = [System.IO.Compression.ZipFile]::OpenRead($TemplateNupkg) | ||
$ZipArchiveEntry = $ZipArchive.GetEntry($TemplateNuspec) | ||
$EntryStream = $ZipArchiveEntry.Open() | ||
$TemplateXml = New-Object System.Xml.XmlDocument | ||
$TemplateXml.Load($EntryStream) | ||
|
||
[xml] $TargetXml = Get-Content $Nuspec | ||
$TargetXml.package.metadata.id = $TemplateXml.package.metadata.id | ||
$TargetXml.package.metadata.version = $TemplateXml.package.metadata.version | ||
$TargetXml.package.metadata.title = $TemplateXml.package.metadata.title | ||
$TargetXml.package.metadata.description = $TemplateXml.package.metadata.description | ||
$TargetXml.package.metadata.authors = $TemplateXml.package.metadata.authors | ||
$TargetXml.package.metadata.owners = $TemplateXml.package.metadata.owners | ||
$TargetXml.package.metadata.copyright = $TemplateXml.package.metadata.copyright | ||
|
||
$newDependencies = $TargetXml.ImportNode($TemplateXml.package.metadata.dependencies, $true) | ||
$TargetXml.package.metadata.ReplaceChild($newDependencies, $TargetXml.package.metadata.dependencies) | ||
|
||
$TargetXml.Save($Nuspec) | ||
|
||
$EntryStream.Dispose() | ||
$ZipArchive.Dispose() |
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
2 changes: 1 addition & 1 deletion
2
src/System.Waf/System.Waf/System.Waf.Core/System.Waf.Core.nuspec
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
2 changes: 1 addition & 1 deletion
2
src/System.Waf/System.Waf/System.Waf.UnitTesting.Core/System.Waf.UnitTesting.Core.nuspec
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
2 changes: 1 addition & 1 deletion
2
src/System.Waf/System.Waf/System.Waf.UnitTesting.Wpf/System.Waf.UnitTesting.Wpf.nuspec
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
33 changes: 33 additions & 0 deletions
33
src/System.Waf/System.Waf/System.Waf.Uwp/System.Waf.Uwp-2.nuspec
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,33 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata> | ||
<id>System.Waf.Uwp</id> | ||
<version>4.1.0-alpha7</version> | ||
<title>System.Waf.Uwp</title> | ||
<description>System.Waf is a lightweight framework that helps you to create well-structured XAML applications. This package contains the UWP (Universal Windows Platform) specific types.</description> | ||
<authors>jbe2277</authors> | ||
<owners>jbe2277</owners> | ||
<copyright>Copyright © 2017 jbe2277</copyright> | ||
<projectUrl>https://github.com/jbe2277/waf</projectUrl> | ||
<licenseUrl>https://raw.githubusercontent.com/jbe2277/waf/master/LICENSE</licenseUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<tags>WAF WPF MVVM XAML UWP Model-View-ViewModel UI MVC ViewModel PresentationModel Architecture Module Layered</tags> | ||
<releaseNotes>https://github.com/jbe2277/waf/releases</releaseNotes> | ||
<dependencies> | ||
<group targetFramework="UAP10.0"> | ||
<dependency id="Microsoft.NETCore.UniversalWindowsPlatform" version="5.1.0" exclude="Build,Analyzers" /> | ||
<dependency id="System.Waf.Core" version="4.1.0-alpha7" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\..\..\..\out\System.Waf\Release\System.Waf.Uwp.dll" target="lib\uap10.0" /> | ||
<file src="..\..\..\..\out\System.Waf\Release\System.Waf.Uwp.xml" target="lib\uap10.0" /> | ||
<file src="..\..\..\..\out\System.Waf\Release\System.Waf.Uwp.pdb" target="lib\uap10.0" /> | ||
<file src="..\..\..\..\out\System.Waf\Release\System.Waf.Uwp.pri" target="lib\uap10.0" /> | ||
<file src="..\..\..\..\out\System.Waf\Release\System.Waf.Uwp.xr.xml" target="lib\uap10.0\System.Waf.Uwp" /> | ||
<file src="..\..\..\..\out\System.Waf\Release\Themes\Generic.xbf" target="lib\uap10.0\System.Waf.Uwp\Themes" /> | ||
<file src="**\*.cs" target="src" /> | ||
<file src="**\*.xaml" target="src" /> | ||
</files> | ||
</package> |
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