getgauge / gauge-dotnet

C# runner for gauge + DotNet standard 6.0-8.0
Apache License 2.0
27 stars 20 forks source link

.Net 6.0 Support - Plugin Off line installation failed #192

Closed harimadusumilli closed 2 years ago

harimadusumilli commented 2 years ago

When trying to install the latest offline plugin for Dotnet with Dotnet 6.0 . The Installation fails.

C:\GaugeSupport>gauge install dotnet --file gauge-dotnet-0.5.0.zip Failed to install plugin 'dotnet'. Reason: File C:\Users\myuserid\AppData\Local\Temp\1\gauge_temp1653056777145077900\plugin.json doesn't exist.

sriv commented 2 years ago

This works in linux, need to check on windows

sriv commented 2 years ago

Works for me on windows 10 as well. @harimadusumilli - is this something that happens consistently across machines?

harimadusumilli commented 2 years ago

Hi Sriv.. Will check on more windows machines as we still use windows 7 with in our enterprise and will let you know.. Thank you for your due diligence.

Regards, Hari

harimadusumilli commented 2 years ago

Hello Sriv,

The latest plugin installation you have provided when we open appears to also have the source code for the DOTNET. I wanted to make sure that the distributable offline plugin consists this.

When we compare the previous versions of the offline install with the current offline plugin install, the structure seems to be very different, unzipped the previous version and the latest zipped file. The latest offline plugin installation seems to have the source code and the tests that are used to check the plugin where as the older versions did not have the source code and the tests to check it. Also the size seems to differ a lot. Is this intended ? I am unable to post a screen shot, as, for some reason, git states that its not able to process the file.

Thanks, Hari

sriv commented 2 years ago

The content of gauge-dotnet-0.5.0.zip as I see:

/Users/<user>/.gauge/plugins/dotnet/0.5.0/
├── bin
│   ├── net6.0
│   │   ├── Gauge.CSharp.Core.dll
│   │   ├── Gauge.CSharp.Lib.dll
│   │   ├── Gauge.Dotnet
│   │   ├── Gauge.Dotnet.deps.json
│   │   ├── Gauge.Dotnet.dll
│   │   ├── Gauge.Dotnet.pdb
│   │   ├── Gauge.Dotnet.runtimeconfig.json
│   │   ├── Google.Protobuf.dll
│   │   ├── Grpc.AspNetCore.Server.dll
│   │   ├── Grpc.Core.Api.dll
│   │   ├── Grpc.Net.Common.dll
│   │   ├── Microsoft.CodeAnalysis.CSharp.dll
│   │   ├── Microsoft.CodeAnalysis.dll
│   │   ├── cs
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── de
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── es
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── fr
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── it
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── ja
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── ko
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── pl
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── pt-BR
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── ru
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── tr
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   ├── zh-Hans
│   │   │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │   │   └── Microsoft.CodeAnalysis.resources.dll
│   │   └── zh-Hant
│   │       ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│   │       └── Microsoft.CodeAnalysis.resources.dll
│   └── netcoreapp3.1
│       ├── Gauge.CSharp.Core.dll
│       ├── Gauge.CSharp.Lib.dll
│       ├── Gauge.Dotnet
│       ├── Gauge.Dotnet.deps.json
│       ├── Gauge.Dotnet.dll
│       ├── Gauge.Dotnet.pdb
│       ├── Gauge.Dotnet.runtimeconfig.json
│       ├── Google.Protobuf.dll
│       ├── Grpc.AspNetCore.Server.dll
│       ├── Grpc.Core.Api.dll
│       ├── Grpc.Net.Common.dll
│       ├── Microsoft.CodeAnalysis.CSharp.dll
│       ├── Microsoft.CodeAnalysis.dll
│       ├── cs
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── de
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── es
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── fr
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── it
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── ja
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── ko
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── pl
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── pt-BR
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── ru
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── tr
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       ├── zh-Hans
│       │   ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│       │   └── Microsoft.CodeAnalysis.resources.dll
│       └── zh-Hant
│           ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│           └── Microsoft.CodeAnalysis.resources.dll
├── dotnet.json
├── launcher.cmd
└── launcher.sh

29 directories, 81 files

The latest plugin installation you have provided when we open appears to also have the source code for the DOTNET. I wanted to make sure that the distributable offline plugin consists this.

I don't see this in the contents listed above. Test assemblies/source code are not intended to be shipped.

Regarding difference in the file size, gauge-dotnet now supports net6.0, so you'll notice that the bin folder has two subfolders, one each for net6.0 and netcoreapp3.1 target frameworks.

harimadusumilli commented 2 years ago

Thank you Sriv again for your due diligence and I have downloaded the offline package again. This time it seems to look good. We will install it at our end and will also keep you informed on how things work at our end. Thank you for your fantastic timely response and help.

harimadusumilli commented 2 years ago

Yoo Hoo we were able to install the dotnet offline plugin.. Thank you very much again....

Best Regards, Hari

sriv commented 2 years ago

Very glad to hear. Thank you for your patience