Open Lerik opened 8 years ago
Are you running it from PowerShell?
No, I'm running it from Package Manager Console
Try running "dir" to see what's in current directory.
Try running it as .\secure-file\tools\secure-file
.
I ran "dir" and all the project folders of my solution were listed, also the .nuget folder, two config files, and the snl file of my solution.
I ran the second option you gave me but it threw me an error message:
The term '.\secure-file\tools\secure-file' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Why not to use it outside Visual Studio, from a regular command line?
Nevermind. I found out what was happening. Nuget installs every package inside a folder named lib, but that folder is not inside the folder of my solution, it's in the outside.
/lib
/my-solution/
So that was my problem. Now I have to run the command this way:
..\lib\secure-file\tools\secure-file -encrypt <path> -secret MYSECRET1234
That solves my problem. Thanks for your help @FeodorFitsner
Ok
I installed secure-file successfully in my vs project. But when I runthe command to encrypt a file, I get the next error message:
As the error message suggests, I decided to run Import-Module secure-file, and this is what I got:
Does anybody have an idea on why this is happening and what can I do?