reqnroll / Reqnroll

Open-source Cucumber-style BDD test automation framework for .NET.
https://reqnroll.net
BSD 3-Clause "New" or "Revised" License
332 stars 37 forks source link

Error when installing the Reqnroll template via command line #22

Closed tulavalle closed 6 months ago

tulavalle commented 6 months ago

Reqnroll Version

1.0.0

Which test runner are you using?

xUnit

Test Runner Version Number

--

.NET Implementation

.NET 8.0

Test Execution Method

Visual Studio Test Explorer

Content of reqnroll.json configuration file

It did not reach the .NET version configuration stage, nor the test executor, nor creating the reqnrollfile. were filled in as it is a mandatory field

Issue Description

Error when installing the Reqnroll template via command line

Steps to Reproduce

Hey! I was able to successfully create a project with Reqnroll template via Visual Studio, but when doing the same via vs code, via the command line, when installing Reqnroll template with the command 'dotnet new install Reqnroll.Templates.DotNet', I got an error stating that it was already the template existed, making reference to Specflow. I uninstalled the Specflow template, restarted the machine and tried the installation again, getting the following error:

image

and, as a result, the template was not installed, generating an error when executing the command ´dotnet new reqnroll-project´: image

dotnet new list:

image

Are there any other steps I need to do or could it be an error in the template script?

Link to Repro Project

No response

tulavalle commented 6 months ago

Reqnroll Version

1.0.0

Which test runner are you using?

xUnit

Test Runner Version Number

--

.NET Implementation

.NET 8.0

Test Execution Method

Visual Studio Test Explorer

Content of reqnroll.json configuration file

It did not reach the .NET version configuration stage, nor the test executor, nor creating the reqnrollfile. were filled in as it is a mandatory field

Issue Description

Error when installing the Reqnroll template via command line

Steps to Reproduce

Hey! I was able to successfully create a project with Reqnroll template via Visual Studio, but when doing the same via vs code, via the command line, when installing Reqnroll template with the command 'dotnet new install Reqnroll.Templates.DotNet', I got an error stating that it was already the template existed, making reference to Specflow. I uninstalled the Specflow template, restarted the machine and tried the installation again, getting the following error:

image

and, as a result, the template was not installed, generating an error when executing the command ´dotnet new reqnroll-project´: image

dotnet new list:

image

Are there any other steps I need to do or could it be an error in the template script?

Link to Repro Project

No response

Sorry, there was an error sending the images, they are in order below: image

image image

johnboygit commented 6 months ago

I also got the same error mentioned here.

gasparnagy commented 6 months ago

This seems to be related to https://github.com/dotnet/msbuild/issues/3468 The WriteLinesToFile task replaced the \" seqence in JSON to /" on Linux, were we produce the build.

gasparnagy commented 6 months ago

Seems to be working. Will be released soon.