Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Can't get init to work #34

Open
glippert opened this issue Nov 6, 2015 · 4 comments
Open

Can't get init to work #34

glippert opened this issue Nov 6, 2015 · 4 comments

Comments

@glippert
Copy link

glippert commented Nov 6, 2015

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.".)

@kjnilsson
Copy link
Collaborator

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

@AndreasHassing
Copy link

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

@kjnilsson
Copy link
Collaborator

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. :)

@steshaw
Copy link

steshaw commented Aug 16, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants