getgauge / gauge-visualstudio

Visual Studio plugin for Gauge
10 stars 9 forks source link

unable to build project in visual studio #262

Closed Debashis9012 closed 4 years ago

Debashis9012 commented 5 years ago

Expected behavior

Project did not build successfully

Actual behavior

shows below errors and warnings

1>------ Build started: Project: GaugeProject8, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Gauge.CSharp.Lib". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "FluentAssertions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "FluentAssertions.Core". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Users\GaugeProject8\StepImplementation.cs(4,7,4,23): error CS0246: The type or namespace name 'FluentAssertions' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(5,7,5,12): error CS0246: The type or namespace name 'Gauge' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(6,7,6,12): error CS0246: The type or namespace name 'Gauge' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(32,54,32,59): error CS0246: The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(14,10,14,14): error CS0246: The type or namespace name 'StepAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(14,10,14,14): error CS0246: The type or namespace name 'Step' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(24,10,24,14): error CS0246: The type or namespace name 'StepAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(24,10,24,14): error CS0246: The type or namespace name 'Step' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(31,10,31,14): error CS0246: The type or namespace name 'StepAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\GaugeProject8\StepImplementation.cs(31,10,31,14): error CS0246: The type or namespace name 'Step' could not be found (are you missing a using directive or an assembly reference?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Steps to reproduce

Pre-requisite: install below required versions:

  1. Open visual studio
  2. Creatae a gague project
  3. open project
  4. build the created project

Version Information

VisualStudio Version and Edition :- Gauge VisualStudio Plugin Version :-

Gauge version: 1.0.6.nightly-2019-08-01
Commit Hash: 2bc49db

Plugins
-------
csharp (0.10.6.nightly-2019-07-22)

Note: if we update Update-Package Gauge.CSharp.Lib then it works as excepted

sriv commented 5 years ago

I believe this is an issue in https://github.com/getgauge-contrib/gauge-visualstudio-templates/

Both the basic and webdriver templates generate a reference to an older version of Gauge.CSharp.Lib.