Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing the Reqnroll template via command line #22

Closed
tulavalle opened this issue Feb 13, 2024 · 4 comments
Closed

Error when installing the Reqnroll template via command line #22

tulavalle opened this issue Feb 13, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tulavalle
Copy link

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 tulavalle added the bug Something isn't working label Feb 13, 2024
@tulavalle
Copy link
Author

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
Copy link

I also got the same error mentioned here.

@gasparnagy
Copy link
Contributor

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

gasparnagy added a commit that referenced this issue Feb 14, 2024
@gasparnagy
Copy link
Contributor

Seems to be working. Will be released soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants