zzarchive-Projekt icon indicating copy to clipboard operation
zzarchive-Projekt copied to clipboard

Can't get init to work

Open glippert opened this issue 9 years ago • 4 comments

I'm on an up-to-date OSX (El Capitan 10.11.1) and I just installed that latest Mono (Mono MDK 4.2.1 El Capitan Preview). I can't get the init subcommand to work. It seems that pretty much any permutation of command line arguments and current working directory locations results in an "err: target directory:

already exists". Here is one example (from /tmp but any dir ends up the same):

[ /tmp ]$ mono ~/Applications/projekt/Projekt.exe init NewProject.fsproj --template console --organisation George err: target directory: /private/tmp already exists

(I also tried building Projekt from source but that produces some warnings and NUnit test failures. The first warning was "WARNING: The runtime version supported by this application is unavailable.".)

glippert avatar Nov 06 '15 23:11 glippert

Hi thanks for the report - could you try: mono ~/Applications/projekt/Projekt.exe init NewProject/NewProject.fsproj --template console ?

It appears that init always expects to create a new folder for the project

kjnilsson avatar Nov 07 '15 10:11 kjnilsson

I had the same issue. @kjnilsson's solution worked. Is there an easy way to generate a Projekt fsproj file for an existing project?

AndreasHassing avatar Mar 21 '16 10:03 AndreasHassing

There isn't however generating an fsproj file then manually editing the xml to add the required files isn't usually that much effort. It would be a nice feature however so feel free to add a feature request ticket for it. :)

kjnilsson avatar Mar 21 '16 10:03 kjnilsson

I had the same issue. Perhaps renaming the command from init to new might help? Then it would be great to provide an init command that works with a current project/directory/files.

steshaw avatar Aug 16 '16 11:08 steshaw