-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation on how to install tool locally #62
Comments
Is it to avoid adding a unit test for a certain use case or is there a use case to create a package locally? |
When debugging this tool while fixing it. |
I'm usually run the |
I'm also confused by the issue. Should be able to debug the tool like any other .NET application (e.g. dotnet run or launch from Visual Studio). |
Why do you need the |
@hishamco What I'm trying to do here is execute |
I didn't understand which command.ps1 are you referring to. |
Nothing that comes with the source code here. It is a custom script that I wrote that uses Google Translate to generate PO files for each cultures with translated strings. I run this script manually periodically to translate everything. So, if I want to debug it, I need to install the tool from source code locally. Running the OrchardCoreContrib.PoExtractor project doesn't work for me for doing that. Else, I need to change all of my script paths. I understand that you can run In the end, if it needs to execute from CI it needs to use the installed Nuget package tool. |
Strange!! could you please share the script if it's fine for you or give me steps to reproduce the issue, I remember that I extracted one project resources from the source but I will have another try |
I will share it at some point in a different PR but that's not the point. The issue is that when you are running the solution it doesn't register the tool globally to be used. You can see it in the screenshot I sent you. That's the Visual Studio powershell instanciated when running the project locally. Doing Actually don't want to digress into that topic but we could easily add a translate option to this tool. But, the script I made needs to be rewritten in C#. Which is something anyone could do. extractpo -t "en,fr" |
I understand what you mean, you need to use |
Thanks, I will try that. |
You need to do a Dotnet Pack on the PoExtractor.OrchardCore or the PoExtractor projects.
Then you need to do:
extractpo
This needs to be documented so that when we develop we can use it locally.
The text was updated successfully, but these errors were encountered: