getgauge / gauge-visualstudio

Visual Studio plugin for Gauge
10 stars 9 forks source link

Should be able to run specifications after project creation #229

Closed sswaroopgupta closed 6 years ago

sswaroopgupta commented 6 years ago

Running from command line gives the following error

Building project: ...\GaugeProject1\GaugeProject1.csproj  C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe  ...\GaugeProject1\GaugeProject1.csproj /t:Build /m  /nodeReuse:False  /v:q  /p:RestorePackages="False" /p:OutputPath="...\GaugeProject1\gauge_bin" /p:Platform="Any CPU" /p:Configuration="Debug" /logger:Fake.MsBuildLogger+ErrorLogger,"...\plugins\csharp\0.10.3.nightly-2018-04-11\bin\FakeLib.dll"
Microsoft (R) Build Engine version 14.0.25420.1Copyright (C) Microsoft Corporation. All rights reserved.Gauge.CSharp.Runner.SandboxBuilder Unable to create Sandbox in ...\GaugeProject1\gauge_bin
Gauge.CSharp.Runner.StartCommand The version of Gauge.CSharp.Lib in the project is incompatible with the version of Gauge CSharp plugin.
 Expecting minimum version: 0.7.1, found 0.6.1.0.
Ensure latest version is used in your project. If you are using Nuget, try updating your dependencies.
Error ----------------------------------
Failed to start gauge API: Timed out connecting to 127.0.0.1:50909
Get Support ----------------------------
        Docs:          https://docs.gauge.org        Bugs:          https://github.com/getgauge/gauge/issues
        Chat:          https://gitter.im/getgauge/chat

Your Environment Information -----------
        windows, 0.9.8, c23df9f
        csharp (0.10.3), html-report (4.0.4), java (0.6.7), js (2.3.0), python (0.3.1), screenshot (0.0.1)

Steps to replicate

Version

Gauge version: 0.9.8
Commit Hash: c23df9f

Plugins
-------
csharp (0.10.3.nightly-2018-04-11)
html-report (4.0.4)
java (0.6.7)
js (2.3.0.nightly-2018-05-03)
python (0.3.1)
screenshot (0.0.1)

IDE - gauge.visualstudio-latest.nightly-2018-04-04

sswaroopgupta commented 6 years ago

The issue is when project was initialized from templates of Visual Studio. When the project is initialized from command line am able to run specs successfully.

sriv commented 6 years ago

please update the templates to v1.1

https://marketplace.visualstudio.com/items?itemName=vs-publisher-1071478.gauge-visualstudio-templates

sswaroopgupta commented 6 years ago

Working as expected after update