Skip to content

Commit

Permalink
update target frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
304NotModified committed Oct 25, 2016
1 parent 275ac7b commit 50debc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
21 changes: 15 additions & 6 deletions Core/Utility/VersionUtility.cs
Expand Up @@ -59,6 +59,15 @@ public static class VersionUtility
{ "dnxcore", "DNXCore" },
{ "Xamarin.ios", "Xamarin iOS" },
{ "Xamarin.mac", "Xamarin Mac" },
{ "xamarinmac", "Xamarin Mac"},
{ "xamarinios", "Xamarin iOs"},
{ "xamarinpsthree", "Xamarin on Playstation 3"},
{ "xamarinpsfour", "Xamarin on Playstation 4"},
{ "xamarinpsvita", "Xamarin on PS Vita"},
{ "xamarinwatchos", "Xamarin for Watch OS"},
{ "xamarintvos", "Xamarin for TV OS"},
{ "xamarinxboxthreesixty", "Xamarin for XBox 360"},
{ "xamarinxboxone", "Xamarin for XBox One"},
{ "uap", "Windows 10 Universal App Platform" },
};

Expand Down Expand Up @@ -116,8 +125,8 @@ public static Version ParseOptionalVersion(string version)
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
public static FrameworkName ParseFrameworkNameFromFilePath(string filePath, out string effectivePath)
{
var knownFolders = new string[]
{
var knownFolders = new string[]
{
Constants.ContentDirectory,
Constants.LibDirectory,
Constants.ToolsDirectory
Expand Down Expand Up @@ -342,10 +351,10 @@ public static bool TryParseVersionSpec(string value, out IVersionSpec result)
{
// A plain version is treated as an inclusive minimum range
result = new VersionSpec
{
MinVersion = version,
IsMinInclusive = true
};
{
MinVersion = version,
IsMinInclusive = true
};

return true;
}
Expand Down
16 changes: 13 additions & 3 deletions PackageExplorer/PackageViewer.xaml.cs
Expand Up @@ -53,11 +53,19 @@ public partial class PackageViewer : UserControl
}
},
{
//see https://docs.nuget.org/ndocs/schema/target-frameworks
"Xamarin",
new[]
{
"Mac", "Xamarin.Mac",
"iOS", "Xamarin.iOS10",
"Mac", "xamarinmac",
"iOS", "xamarinios",
"Playstation 3", "xamarinpsthree",
"Playstation 4", "xamarinpsfour",
"PS Vita", "xamarinpsvita",
"Watch OS", "xamarinwatchos",
"TV OS", "xamarintvos",
"XBox 360", "xamarinxboxthreesixty",
"XBox One", "xamarinxboxone",
}
},
{
Expand Down Expand Up @@ -113,7 +121,8 @@ public partial class PackageViewer : UserControl
},

{

//see https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md
//and https://docs.microsoft.com/en-us/dotnet/articles/standard/library
".NET Platform Standard",
new []
{
Expand All @@ -124,6 +133,7 @@ public partial class PackageViewer : UserControl
".NET Platform Standard 1.4","netstandard1.4",
".NET Platform Standard 1.5","netstandard1.5",
".NET Platform Standard 1.6","netstandard1.6",
".NET Platform Standard 2.0","netstandard2.0",
}

}
Expand Down

0 comments on commit 50debc0

Please sign in to comment.