Closed mcetkovsky closed 6 years ago
Hello could I start to work on this bug?
Hey @B1tF8er, absolutely! If you accept the invitation that I've just sent you, I'll be able to assign the issue to you. (So that nobody can steal it from you :))
Just accepted the invitation :)
@B1tF8er if you need any technical advice, let us know ;)
Hello, I created an account in Kentico to get a ProjectId but I got the following error, what I am missing?
I think you need to use --projectid
if you run it via dotnet run
.
Brief bug description
What went wrong? The code contains a hardcoded
\
as a path separator. As such, the code does not generate correct paths on macOS.Repro steps
Expected behavior
You should use the built-in methods and constants to handle platform differences. For example, you should use
Path.DirectorySeparatorChar
instead of"\\"
andPath.Combine
instead ofdir + file
.Note: Windows usually handle both variants of path separators
\
and/
. I have seen cases when a script used Linux-like separator/
even it was supposed to be run on Windows as well as on other platforms with a purpose to make the script shorter and easier to read. Ideally, you should be compatible with this as well.Test environment