F# Project and Solution Templates for Forge
ionide / forge-templates Goto Github PK
View Code? Open in Web Editor NEWF# Project and Solution Templates for Forge
F# Project and Solution Templates for Forge
On Mac. VSCode.
Create a new Project in VSCode F#: New Project
.
Project Created -> I need to dotnet restore
in terminal to get the project into F# Project Explorer but it fails to load.
Need to change Target Framework to netcoreapp20.
Project now loads but packages are not recognised, packages won't load, project build fails.
Paket Install completes but packages cannot be loaded in .fs files
Hi, I've been using Ionide to initialize a new F# console application. I initially was not able to build it until I added the FSharp.NET.Sdk to the Sdk Attribute in the Project Tag.
As I only have my Windows Box to test around (Win 10 1703) and haven't seen any other reports of people having problems with this template I wonder if I have some sort of weird setup.
I've been using Paket versions 5.88.* as well as 5.99.1, dotnet cli versions 1.0.4 as well as 2.0.0, and the most recent Ionide version as of writing this in Visual Studio Code 1.16.1.
Thanks in advance for your response.
Hey, just got a new Mac and I decided to go through creating a new class library with Ionide/Forge and noticed a few things that could be refined at some point.
.paket/paket.exe
is ignored in the .gitignore
file. This makes it so that if I create a project using the template and then check it into source control, then the build scripts will not work if I do a clean checkout of my project.
.paket/paket.exe
from the .gitignore
file. I can create a pull request if this is an acceptable solution.From ionide/ionide-vscode-fsharp#626
When cloning a repo that was bootstrapped in Ionide it will lack paket.exe. When trying to restore such a repo it will not find .paket\paket.exe and fail with the following error message:
[22:15:08 INFO ] MSBuild (.NET) found at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
[22:15:08 INFO ] Dotnet cli (.NET Core) found at C:\Program Files\dotnet\dotnet.exe
[22:15:08 INFO ] Automatic msbuild detection
[22:15:13 INFO ] invoking msbuild from C:\Program Files\dotnet\dotnet.exe on "c:\Users~\Documents\Source\tmp\testpaketgit2\TestPaketGit\TestPaketGit\TestPaketGit.fsproj" for target Restore
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
'"c:\Users~\Documents\Source\tmp\testpaketgit2\TestPaketGit.paket\paket.exe"' is not recognized as an internal or external command,
operable program or batch file.
When creating a new F# Project in VSCode, Ionide bootstraps it with Fake and Paket. The current .gitignore file from gitignore.io has the following line in it: .paket/paket.exe. This results in excluding paket.exe when committing the project to a git repo like gitlab or GitHub.
Workaround:
Change it manually to !.paket/paket.exe
to force the inclusion of paket.exe.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.