devon4net icon indicating copy to clipboard operation
devon4net copied to clipboard

Fix errors in dotnet Cobigen template

Open quantumfate opened this issue 2 years ago • 1 comments

Expected behavior

As a developer, I want to be able to generate boilerplate code without errors and a documentation should work as expected.

Actual behavior

The devon4net Cobigen Guide instructs the user to run the command dotnet new Devon4NetAPI. It will install the templates that will be used for the generation.

image

The directory name Devon4Net.Application.WebAPI.Implementation differs from the name used in the dotnet template that is going to be called by Cobigen.

This behavior can be changed to achieve a semi-expected result by renaming the installed directory name to Devon4Net.WebAPI.Implementation but it doesn't change the fact that the project has lots of wrong imports and errors.

Take a look at my comment in https://github.com/devonfw/cobigen/issues/1442#issuecomment-1320246205 for more information.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

You can use the images for the documentation and as a reference to reproduce this issue that I put together in devon4net doc.zip.

Related/Dependent Issues

#152

quantumfate avatar Nov 24 '22 10:11 quantumfate

The templates used by Cobigen have been modified to be fully aligned with the current version of devon4net.

A new pull request has been opened with these changes, when approved and merged with the main Cobigen branch the problem will be fixed. PR link: https://github.com/devonfw/cobigen/pull/1621

JosepFe avatar Jan 03 '23 09:01 JosepFe