Skip to content

Commit

Permalink
[VSPackage] Fix Xenko version detection to work not only with nuget p…
Browse files Browse the repository at this point in the history
…ackages but also solution projects, so that it works with Xenko solution itself.
  • Loading branch information
xen2 committed Sep 12, 2019
1 parent 2e35915 commit 964ef5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static async Task<PackageVersion> GetPackageVersion(string fullPath)
var projectAssets = format.Read(projectAssetsJsonPath);
foreach (var library in projectAssets.Libraries)
{
if (library.Type == "package" && library.Name == "Xenko.Engine")
if ((library.Type == "package" || library.Type == "project") && library.Name == "Xenko.Engine")
{
return new PackageVersion((string)library.Version.ToString());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Xenko.VisualStudio.Package</id>
<version>3.0.6</version>
<version>3.0.7</version>
<authors>Xenko</authors>
<owners>Xenko</owners>
<licenseUrl>https://github.com/xenko3d/xenko/blob/master/LICENSE.md</licenseUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="b0b8feb1-7b83-43fc-9fc0-70065ddb80a1" Version="3.0.6" Language="en-US" Publisher="Xenko" />
<Identity Id="b0b8feb1-7b83-43fc-9fc0-70065ddb80a1" Version="3.0.7" Language="en-US" Publisher="Xenko" />
<DisplayName>Xenko</DisplayName>
<Description>Xenko VisualStudio Package</Description>
<Icon>Logo.ico</Icon>
Expand Down

0 comments on commit 964ef5e

Please sign in to comment.