Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone got --standalone option to work in F# CTP?

I may have this completely wrong, but my understanding is that the --standalone compiler option tells the compiler to include the F# core and other dependencies in the exe, so that you can run it on another machine without installing any 'runtime'.

However, I can't get this to work in the CTP - it doesn't even seem to change the size of the output file (docs I've read say about 1M extra).

"Google may know, but if it does, it ain't telling, or I'm not looking in the right place"

UPDATE:

It seems to work with latest CTP update 1.9.6.2

UPDATE2:

I have since experienced another error:

FSC(0,0): error FS0191: could not resolve assembly Microsoft.Build.Utilities.

If you get errors like this when trying to compile --standalone, you need to explicitly include them as references in your project.

like image 399
Benjol Avatar asked Sep 16 '08 10:09

Benjol


People also ask

What is [( NgModel )]?

Angular NgModel is an inbuilt directive that creates a FormControl instance from the domain model and binds it to a form control element. The ngmodel directive binds the value of HTML controls (input, select, textarea) to application data. We can merely achieve it in the component element and the HTML element both.

Can we use NgModel without form?

See the example for using NgModel as a standalone control. standalone: When set to true, the ngModel will not register itself with its parent form, and acts as if it's not in the form. Defaults to false.

What is Certonly?

You can use certonly or run subcommands to request the creation of a single new certificate even if you already have an existing certificate with some of the same domain names. If a certificate is requested with run or certonly specifying a certificate name that already exists, Certbot updates the existing certificate.


3 Answers

Answer from MS:

There is a CTP update 1.9.6.2 that fixed some --standalone bugs.

I'm reinstalling now...

UPDATE: Works for me - so the my accepted answer is download CTP update 1.9.6.2.

like image 96
Benjol Avatar answered Sep 29 '22 11:09

Benjol


F# manual: Statically linking the F# library using "--standalone"

Did you try to run peverify.exe utility?

like image 37
aku Avatar answered Sep 28 '22 11:09

aku


This has been a pet hatred of mine for a long time (it has been broken in every CTP release ever including the latest 1.9.6.16 May 2009 release). The "solution" is essentially to write your own build system that is not broken.

This is a real problem for me because I have accumulated hundreds of great F# programs that I would like to put on our site but it takes hours to build each one into a standalone executable.

like image 34
J D Avatar answered Oct 01 '22 11:10

J D