This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ceca9
commit 27184b1
Showing
17 changed files
with
233 additions
and
389 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ rcf | |
.vs | ||
project.lock.json | ||
src/Microsoft.Fx.Portability.Offline/data/ | ||
/nupkg |
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 @@ | ||
[CmdletBinding()] # Needed to support -Verbose | ||
param( | ||
[string][ValidateSet("Release","Debug")]$flavor = "Release", | ||
[string]$outdir = "$PSScriptRoot\..\nupkg" | ||
) | ||
|
||
$root = $PSScriptRoot | ||
$src = "$root\..\src" | ||
|
||
# Download a unique nuget | ||
$guid = [System.Guid]::NewGuid() | ||
$nuget = Join-Path ([System.IO.Path]::GetTempPath()) "nuget-$guid.exe" | ||
Write-Verbose "Downloading nuget to $nuget" | ||
Invoke-WebRequest "http://nuget.org/nuget.exe" -OutFile $nuget | ||
|
||
Remove-Item $outdir -Recurse -Force | ||
New-Item $outdir -ItemType Directory | Out-Null | ||
|
||
[object[]]$nuspecs = Get-ChildItem $root -Filter *.nuspec ` | ||
| % { New-Object PSObject -Property @{"Name" = [System.IO.Path]::GetFileNameWithoutExtension($_.Name); "Path" = $_.FullName } } | ||
|
||
$count = 0 | ||
foreach($nuspec in $nuspecs) | ||
{ | ||
Write-Progress -Activity "Creating portability nupkgs" -Status "Packing '$($nuspec.Name)" -PercentComplete ($count / $nuspecs.Count * 100) | ||
$bin = [System.IO.Path]::Combine($src, $nuspec.Name, "bin", $flavor) | ||
|
||
if(!(Test-Path $bin)) | ||
{ | ||
Write-Warning "Could not find path: $($nuspec.Name)" | ||
continue | ||
} | ||
|
||
Copy-Item $nuspec.Path $bin | ||
Push-Location $bin | ||
|
||
[string]$output = & $nuget pack | ||
|
||
if($output -Match "Attempting to build package from '(.*)'. Successfully created package '(.*)'.") | ||
{ | ||
$item = New-Object PSObject -Property @{"Name" = $matches[1]; "Path" = $matches[2]} | ||
|
||
Copy-Item "$($item.Path)" $outdir -Force | ||
|
||
$item | ||
} | ||
else | ||
{ | ||
Write-Warning "There was an error packing nuget. Output was: '$output'" | ||
} | ||
|
||
Pop-Location | ||
$count++ | ||
} | ||
|
||
Write-Progress -Activity "Creating portability nupkgs" -Status "Complete" -PercentComplete 100 | ||
|
||
Remove-Item $nuget |
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,28 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata minClientVersion="3.0"> | ||
<id>Microsoft.Fx.Portability.MetadataReader</id> | ||
<version>1.0.0-alpha</version> | ||
<title>Microsoft.Fx.Portability.MetadataReader</title> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<licenseUrl>https://github.com/Microsoft/dotnet-apiport/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/Microsoft/dotnet-apiport</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>The core data structures and network calls for .NET Portability Analyzer</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2015</copyright> | ||
<tags>.NET portability apiport</tags> | ||
<dependencies> | ||
<dependency id="Microsoft.Fx.Portability" version="1.0.0-alpha" /> | ||
<dependency id="System.Reflection.Metadata" version="1.1.0-alpha-00008" /> | ||
<dependency id="System.Security.Cryptography.Hashing.Algorithms" version="4.0.0-beta-23123" /> | ||
<dependency id="System.Diagnostics.FileVersionInfo" version="4.0.0-beta-23123" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="dotnet\Microsoft.Fx.Portability.MetadataReader.dll" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.MetadataReader.pdb" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.MetadataReader.xml" target="lib\dotnet" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata minClientVersion="3.0"> | ||
<id>Microsoft.Fx.Portability.Offline</id> | ||
<version>1.0.0-alpha</version> | ||
<title>Microsoft.Fx.Portability.Offline</title> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<licenseUrl>https://github.com/Microsoft/dotnet-apiport/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/Microsoft/dotnet-apiport</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>The core data structures and network calls for .NET Portability Analyzer</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2015</copyright> | ||
<tags>.NET portability apiport</tags> | ||
<dependencies> | ||
<dependency id="Microsoft.Fx.Portability" version="1.0.0-alpha" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="dotnet\Microsoft.Fx.Portability.Offline.dll" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.Offline.pdb" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.Offline.xml" target="lib\dotnet" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata minClientVersion="3.0"> | ||
<id>Microsoft.Fx.Portability.Reports.Html</id> | ||
<version>1.0.0-alpha</version> | ||
<title>Microsoft.Fx.Portability.Reports.Html</title> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<licenseUrl>https://github.com/Microsoft/dotnet-apiport/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/Microsoft/dotnet-apiport</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>An HTML formatter for ApiPort reports</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2015</copyright> | ||
<tags>.NET portability apiport</tags> | ||
<dependencies> | ||
<dependency id="Microsoft.Fx.Portability" version="1.0.0-alpha" /> | ||
<dependency id="MarkdownDeep.NET-Signed" version="1.5" /> | ||
<dependency id="RazorEngine" version="3.6.1" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="net46\Microsoft.Fx.Portability.Reports.Html.dll" target="lib\net46" /> | ||
<file src="net46\Microsoft.Fx.Portability.Reports.Html.pdb" target="lib\net46" /> | ||
<file src="net46\Microsoft.Fx.Portability.Reports.Html.xml" target="lib\net46" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata minClientVersion="3.0"> | ||
<id>Microsoft.Fx.Portability.Reports.Json</id> | ||
<version>1.0.0-alpha</version> | ||
<title>Microsoft.Fx.Portability.Reports.Json</title> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<licenseUrl>https://github.com/Microsoft/dotnet-apiport/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/Microsoft/dotnet-apiport</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>An HTML formatter for ApiPort reports</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2015</copyright> | ||
<tags>.NET portability apiport</tags> | ||
<dependencies> | ||
<dependency id="Microsoft.Fx.Portability" version="1.0.0-alpha" /> | ||
<dependency id="Newtonsoft.Json" version="6.0.8" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="dotnet\Microsoft.Fx.Portability.Reports.Json.dll" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.Reports.Json.pdb" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.Reports.Json.xml" target="lib\dotnet" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<requireLicenseAcceptance>true</requireLicenseAcceptance> | ||
<licenseUrl>http://go.microsoft.com/fwlink/?LinkId=329770</licenseUrl> | ||
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> | ||
<copyright>Copyright © Microsoft Corporation</copyright> | ||
<tags>Microsoft</tags> | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata minClientVersion="3.0"> | ||
<id>Microsoft.Fx.Portability</id> | ||
<version>1.0.0-alpha</version> | ||
<title>Microsoft.Fx.Portability</title> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<licenseUrl>https://github.com/Microsoft/dotnet-apiport/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/Microsoft/dotnet-apiport</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>The core data structures and network calls for .NET Portability Analyzer</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2015</copyright> | ||
<tags>.NET portability apiport</tags> | ||
<dependencies> | ||
<dependency id="Newtonsoft.Json" version="6.0.8" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="net45\Microsoft.Fx.Portability.dll" target="lib\net45" /> | ||
<file src="net45\Microsoft.Fx.Portability.pdb" target="lib\net45" /> | ||
<file src="net45\Microsoft.Fx.Portability.xml" target="lib\net45" /> | ||
|
||
<file src="dnx451\Microsoft.Fx.Portability.dll" target="lib\dnx451" /> | ||
<file src="dnx451\Microsoft.Fx.Portability.pdb" target="lib\dnx451" /> | ||
<file src="dnx451\Microsoft.Fx.Portability.xml" target="lib\dnx451" /> | ||
|
||
<file src="dnxcore50\Microsoft.Fx.Portability.dll" target="lib\dnxcore50" /> | ||
<file src="dnxcore50\Microsoft.Fx.Portability.pdb" target="lib\dnxcore50" /> | ||
<file src="dnxcore50\Microsoft.Fx.Portability.xml" target="lib\dnxcore50" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.dll" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.pdb" target="lib\dotnet" /> | ||
<file src="dotnet\Microsoft.Fx.Portability.xml" target="lib\dotnet" /> | ||
</files> | ||
</package> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.