circles-arrows / blueprint41

An Object Graph Mapper for CSharp to connect to Neo4j or Memgraph.
http://www.blueprint41.com/
MIT License
30 stars 8 forks source link

Running with github action #70

Open Eclegv opened 2 months ago

Eclegv commented 2 months ago

Kind of issue

In which operating systems have you tested?

Hello !

I was setting up a github action for my dotnet project using blueprint41 and, while trying to run I encountered a problem with the Blueprint41.Build.Json.

Unhandled exception. System.IO.FileNotFoundException: Target folder '/home/runner/work/Astreis/Astreis/packages/back/Entities/Entities.Model/..\Entities.Generated' does not exist. Make sure to have a Blueprint41.Build.json with 'generatePath' set in the model project folder. at Blueprint41.Build.Generator.ValidatePaths(String modelPath, String generatePath) at Blueprint41.Build.Generator.Main(String[] args) Aborted (core dumped)

How to fix it

To fit it, I had to modify the generatePath field from "..\Entities.Generated" -> "..//Entities.Generated". Doing so doesn't cause any problems on windows, where I'm developing.

circles-arrows commented 2 months ago

We'll update "Blueprint41.Build" to translate the slashes and back-slashes to the correct path separators for the platform where it's running. That way it doesn't depend on anyone accidentally defining the target path using the right separator slashes.