Mechanic icon indicating copy to clipboard operation
Mechanic copied to clipboard

Publish as dotnet cli tool

Open nojaf opened this issue 6 years ago • 7 comments

It be nice if Mechanic was available as clitool. Running dotnet mechanic would format the fsproj in the current folder. Or show a help page if no (single) fsproj is found in the current directory. This way other editors than vscode could easily integrate Mechanic.

nojaf avatar Mar 14 '18 07:03 nojaf

marked it up-for-grabs. /cc @enricosada for mentoring

forki avatar Mar 14 '18 07:03 forki

I'd like to solve this one, Do I need to create a new project or I can just modify Mechanic.CommandLine?

jichang avatar Mar 17 '18 06:03 jichang

Whatever you think is best

forki avatar Mar 17 '18 08:03 forki

Could this be published on nuget?

nojaf avatar Mar 26 '18 10:03 nojaf

yes but someone needs to send PR with release process in build.fsx

forki avatar Mar 26 '18 10:03 forki

I'm new to F# and it's ecosystem. I'm attempting to add a "PublishToNuget" target but I'm having dependency/paket issues. Maybe it's because I have dotnet core 3 preview installed.

As soon as I add nuget Fake.DotNet.Nuget prerelease to the paket.dependencies and run ./.paket/paket.exe install, the lock file is drastically changed. Any attempts to run fake build thereafter fail. Even if I remove the dependency and re-run paket it still fails.

Then I removed all the prelease from all the dependencies and was able to get the build.fsx working after fixing deprecations but I'm still not able to open Fake.DotNet.Nuget without Error FS0039: The namespace 'Nuget' is not defined.

https://github.com/sparebytes/Mechanic

sparebytes avatar May 11 '19 23:05 sparebytes

@sparebytes long time that packages was update here. prerelease should be definitely removed, it is there because FAKE 5 was in prerelease back then.

Ofc, best thing will be to update whole project to new packages, but there will be for sure bunch of problems..

I think best way forward for now is to update just Build group of packages with paket update -g Build.

See https://github.com/fsprojects/Mechanic/compare/master...jindraivanek:update where I did that + few other minor things. Its building for me.

jindraivanek avatar May 13 '19 08:05 jindraivanek