Suggestions for load script generation
See original GitHub issue@sylvanc and I have been using the amazing package-load-script-generation feature. It’s fantastic
Here are some suggestions for how it can be adjusted
- Always generate the package load scripts by default. They are just too useful to not do it
- Always generate by assuming the latest .NET Framework by default (net462) unless told otherwise.
- Always generate “paket-refs.fsx” (or “paket-refs.csx”) next to
paket.dependencies
that references all the package loads. - If there is a non-main group of references then generate
paket-build-refs.fsx
- Never generate a
#r
on FSharp.Core. I think @tpetricek is adding a separate issue on this.
This would make the feature really, really usable. Right now putting things deep in paket-files
makes things hard.
thanks don
cc @dungpa
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (24 by maintainers)
Top Results From Across the Web
Script Optimization
This script will load and execute when any route in your application is accessed. Next.js will ensure the script will only load once,...
Read more >How can I automate the "generate scripts" task in SQL ...
Right click on my database, Tasks, "Generate Scripts..." manually select all the export options I need, and hit select all on the "select...
Read more >MS SQL Canvas Data Database Generation and Load Scripts
1) Create a storage account and blob container - load unzipped CD1 files · 2) Get the URL and Shared accesses signature to...
Read more >Why You Should Always Load-Test Scripts & Plugins
The best way to ensure optimal performance over time is to incorporate load tests into your development processes. Before each deploy, run a...
Read more >Generative AI script recommendations
Generate scripts using AI · 1. From Admin, click Scripts. · 2. Click Create script. · 3. Enter the script name and select...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The changes have been released in latest paket 4 alpha release:
include.
file name prefix is goneframework: single-framework-here
in thepaket.dependencies
file)root directory pollution is becoming an increasing problem as every CI, editor, extension, build tool, and their father, mother, sister and brother has decided they must be at the root to work. I wish people would start adopting the convention that all of this could go in
/.config/
at root instead.Let’s not contribute to this issue by default.
@isaacabraham while
/paket-files/include-scripts/net46/include.main.group.fsx
is definitely onerous wouldn’t something like/load-scripts/main.fsx
or/paket-files/load.fsx
or/paket-files/load-refs.fsx
be easy enough?As far as discoverability goes, an easy way to let people know where the load script is located
is just to tell them where the script was generated
@smoothdeveloper looking backward I’m not sure how to approach it, but moving forward the netstandard library version compatibility is the way to set this
But I do agree that at the very least the current convention should really be changed (maybe for paket4 so it can be breaking 😈 )
First and foremost why are they called include scripts? It’s not a term that’s used in common F# or .Net parlance, in oth
.fsx
and.csx
files you#load
scripts so why not just call itgenerate-load-scripts
?^ why does it need to say include twice?
^ this is already kind of a mess, and as more people start using netcore it’s only going to get worse.
Some conventions that could clean this up would be:
/load-scripts/
at repo root/load-scripts/
e.g.