0

Im trying to use this package

https://github.com/IntelliTect/Coalesce.Vue.Template

Under the heading Creating a new Coalesce project using the template it says:

Run dotnet coalesce to trigger Coalesce's code generation.

However, when I try to do this I get the message

dotnet : No executable found matching command "dotnet-coalesce"

I cant find anything further in the documentation that indicates that Im missing anything, so any help would be appreciated

1
  • did you execute it on CMD? Commented Dec 20, 2018 at 3:31

1 Answer 1

4

You should Running dotnet coalesce in the web project’s root directory .

Suppose i add a new EF entity like( i use newproject as project name just for testing) :

namespace newproject.Data.Models
{
    public class Person
    {
        public int PersonId { get; set; }
        public string Name { get; set; }
        public DateTimeOffset? BirthDate { get; set; }
    }
}

Use Run dotnet ef migrations add Init (Init can be any name) in the data project to create an initial database migration :

PS D:\nanyu\newproject\newproject.Data> dotnet ef migrations add Init

Next rundotnet coalesce in the web project’s root directory :

PS D:\nanyu\newproject\newproject.Data> cd D:\nanyu\newproject\newproject.Web
PS D:\nanyu\newproject\newproject.Web> dotnet coalesce

Coalesce’s code generation will start generation: enter image description here You will find related generated files in web application .

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.