Comments (7)
Due to the globbing pattern, FAKE tries to build the templates, which get cloned to a sibling directory of the directory, where forge.exe
is located (https://github.com/fsharp-editing/Forge/blob/0258550fa0e88f544ddb70b961fdda495b788547/src/Forge.Core/Templates.fs#L113).
So you either have to put Forge to another directory, use the Homebrew formula like described in the README, or we change the target directory, where the templates get cloned to.
from forge.
I can't use the homebrew formula because I'm writing a linux tutorial. So what's the invocation I should perform to have it just work?
from forge.
For now, I probably would just download and unzip Forge.zip to ~/forge
and add that directory to PATH
, so that the system can find forge.sh
.
from forge.
Yes, idea is to have "global" / added to PATH
installation of forge.
I don't have too much experience with packaging systems for linux so I have no idea what would be good way of providing same deployment for Forge on linux as we currently have for Windows and Mac.
Maybe we should suggest in documentation using something like http://linuxbrew.sh/ and using same brew
command as for Mac.
from forge.
Another thing is way we fail in such case - we clearly should have some better error handling for this case, instead of some random XML exception.
from forge.
That exception comes from xbuild, I don't know how Forge could react to that, because there is also FAKE involved.
I think the only thing to prevent this, would be not to build the template project files.
from forge.
Oh, my bad. I think error comes up when user tries to build project (run default ./build.sh
provided by Forge) when project was scaffolded in Forge installation directory. It's happening because default build.fsx
uses **/*.fsproj
glob [so it matches projects in templates
folder]
I don't think we can do anything about it. Installing Forge "globally" and running it in solution / repository root of new project should work.
from forge.
Related Issues (20)
- Publish a .dll on NuGet too? HOT 1
- forge.sh is not using mono on linux HOT 2
- Wrong `TargetFramework` version in project file HOT 3
- Build fails on Fedora with `The required attribute "Project" in Import is empty` HOT 1
- (Mac) Homebrew install fails with: <<-EOS.undent is disabled! HOT 1
- Forge deletes custom nodes from project files
- Forge 3.0 HOT 5
- vscode integration? HOT 1
- Migrate to FAKE 5 HOT 2
- Replace templating system with `dotnet new` HOT 1
- Support FAKE 5 runner with `forge fake` HOT 1
- "forge add project --help" Shows parameter information for adding references HOT 2
- (On Windows) Surround `Forge` command path with quotes against path with spaces HOT 1
- Exception when trying to add/remove files to/from F# Azure Functions projects HOT 2
- function isValidFileName is buggy
- Domain name expired HOT 1
- Move file to folder does not seem to work as expected HOT 2
- Unclear instructions for how to install from source on linux
- Docs improvement
- Deprecating Forge
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forge.