Skip to content

Commit

Permalink
Master fixing bug 773 and 776 (#775)
Browse files Browse the repository at this point in the history
* Detect that we have a supported version of .NET Core

* Ensure that we can publish.

* Update the version number.

* Actually return a valid path for external tools.
  • Loading branch information
ivannaranjo authored Aug 2, 2017
1 parent 6bcb34f commit 5dbaaf4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

using GoogleCloudExtension.Deployment;
using GoogleCloudExtension.PublishDialog;
using GoogleCloudExtension.SolutionUtils;
using GoogleCloudExtension.Utils;
using Microsoft.VisualStudio.Shell;
Expand Down Expand Up @@ -161,7 +162,7 @@ private void OnBeforeQueryStatus(object sender, EventArgs e)

// Ensure that the menu entry is only available for ASP.NET Core projects.
var selectedProject = SolutionHelper.CurrentSolution.SelectedProject;
if (selectedProject == null || selectedProject.ProjectType != KnownProjectTypes.NetCoreWebApplication1_0)
if (selectedProject == null || !PublishDialogWindow.CanPublish(selectedProject))
{
menuCommand.Visible = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

// This version number matches the version in the .vsixmanifest. Please update both versions at the
// same time.
[assembly: AssemblyVersion("1.2.7.0")]
[assembly: AssemblyVersion("1.2.8.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: InternalsVisibleTo(
"GoogleCloudExtensionUnitTests," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public string GetDotnetPath()

public string GetExternalToolsPath()
{
return "";
var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
var result = Path.Combine(programFilesPath, $@"Microsoft Visual Studio\2017\{_edition}\Web\External");
GcpOutputWindow.OutputDebugLine($"External tools path: {result}");
return result;
}

public string GetMsbuildPath()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The Version attribute of the Identity element *must* match the version number in Properties\AssemblyInfo.cs, to ensure
accurate metrics.
-->
<Identity Id="GoogleAppEngine.Google.d3d3eeb8-3710-4bd9-97ba-1401bf2acd22" Version="1.2.7.0" Language="en-US" Publisher="Google Inc." />
<Identity Id="GoogleAppEngine.Google.d3d3eeb8-3710-4bd9-97ba-1401bf2acd22" Version="1.2.8.0" Language="en-US" Publisher="Google Inc." />
<DisplayName>Google Cloud Tools for Visual Studio</DisplayName>
<Description xml:space="preserve">Tools to develop applications for Google Cloud Platform.</Description>
<MoreInfo>https://cloud.google.com/visual-studio/</MoreInfo>
Expand Down

0 comments on commit 5dbaaf4

Please sign in to comment.