Open JoaoRuani opened 3 years ago
@JoaoRuani Do you have an update on this issue? Did you figure it out on your end?
@JoaoRuani Any news on this ?
I believe the problem may be in the GetOutput method, in the Program class, in the Mapster.Tool
The character that separates the directory levels is informed directly in the code
private static string GetOutput(string baseOutput, string? segment, string typeName)
{
var fullBasePath = Path.GetFullPath(baseOutput);
return segment == null
? Path.Combine(fullBasePath, typeName + ".g.cs")
: Path.Combine(fullBasePath, segment.Replace('.', '/'), typeName + ".g.cs");
}
Replacing '/'
to Path.DirectorySeparatorChar
the problem should be solved and the Mapster.Tool works again for any platform
I just ran into the same problem. Mapster.Tool on linux is failing.
Hello, I have a asp.net core 5 api using Mapster and Mapster.Tool, that's the csproj where mapster is referenced
Domain.csproj
I'am using Mapster.Tool 8.2.
Inside Domain's project the files are organized like below
Entities Folder:
Build on windows runs as expected and the dtos are generated.
When trying to build on debian the following error occurs at the step
dotnet mapster model -a "$(TargetDir)$(ProjectName).dll""
:If i remove all Validators, the project builds fine.
Any Idea of what i might be doing wrong?
Please tell me if more info is needed.