How to build a FSharp program on Linux just on console? - build

Is it possible to build a F# program on Linux without IDE, just on console?

Yes, essentially create, build and run an app using the dotnet CLI: dotnet new console -lang F#, dotnet build and dotnet run
More details are in the docs

Related

How to build a Windows Qt/MSBuild C++ application inside a Jenkins docker container

First of all, I'm completely new in CI.
I am trying to set up a Jenkins to build several C++ projects I am hosting on my own Gitea instance.
The applications I want to add to my Jenkins build pipeline are mostly Qt or MSBuild projects.
I have installed the MSBuild plugin for Jenkins, however I couldn't find a Qt plugin.
Since the Jenkins docker container runs inside a Linux environment and runs on Linux itself too, I couldn't find out how to make Jenkins build MSBuild (.sln) or qt (.pro) projects.
How do I have to configure Jenkins to make it build MSBuild or Qt repositories?
Do I have to create makefile or CMakeLists files?
My goal is to have automated release builds inside my repositories built using my Jenkins docker container running on my Linux machine.
I really couldn't find a useful tutorial or explanation on this.
Thanks a lot in advance.

How to set up cypress run for TypeScript in WebStorm

I have a project build in TypeScript and I would like to use cypress run to run my unit test. Everything works when I trigger command line from terminal, but how can I set up cypress run with WebStorm IDE under Run/Debug Configuration? The only possibility is to set up npm command but my project is using pnpm not npm.
So how can I set up cypress run under Run/Debug configuration?
WebStorm doesn't provide any special support for Cypress (feel free to upvote and comment WEB-32819 to increase its priority and to be notified on updates). But you can still use Node.js run configurations to start your scripts.
I'd also suggest trying a third-party Cypress-Pro plugin

how to set up sqlite with visual studio 2019

I am setting up a program that requires communicating to a database, but I can not figure out how to set up SQLite for c++ in my ide, I can figure out the rest from there, but the guides are incomplete or inconclusive.
I have tried to work with the api but could not figure out how to install it into my ide, what should i download to get the code for SQLite cpp.
Don't know if you can use dotnet.exe but it's done like this
.Not all projects have these options. Too check project try this command.
Dotnet new webapp -?
Dotnet new mvc -?
Dotnet new winforms -?
Will show -uld |--use-local-db you must use -au Individual
Like this
Dotnet new webapp -au Individual -uld
For SQL server
And Dotnet new webapp -au Individual
For Sqlite.

Why bother with dotnet build before dotnet publish?

Welp. This seems like the type of question where I'll facepalm seeing the answer.
So...
Why bother with dotnet build before doing a dotnet publish?
build automatically does a restore. Cool.
It seems publish does a build (unless you tell it not to). So... Why bother doing the build if you're going to publish right after? Why not just publish and everything happens in one step?
For further clarity...
I am asking in a basic scenario like:
dotnet build -c Release MyProj
dotnet publish -c Release -o /somedir MyProj
versus just
dotnet publish -c Release -o /somedir MyProj
They seem to do the same thing.
You are right that dotnet publish automatically does everything dotnet build already does. In most cases - as in your scenario mentioned in the question - that means an additional dotnet build is not necessary.
Do note that you can dotnet build a solution, but should only dotnet publish individual project files. Publishing solutions likely leads to unexpected results (from overriding files of different versions to publishing library projects in configurations that should not be published to the same output directory as referencing applications etc.)
Over time there was a community ask to allow both publishing and testing without potentially rebuilding the app, because some users felt more comfortable only ever publishing an application with the same binaries that have been tested so their build scripts can look like:
dotnet build the.sln -c Release
dotnet test -c Release --no-build
dotnet publish the\app.csproj --no-build -c Release

How to integrate pycharm with jenkins?

I want to run my test suite from pycharm to run automatically whenever new build is released . We are using jenkins for CI. I want to integrate pycharm with jenkins but not sure how to do it.
What kind of test suite do you have? What kind of version control are you using? Where are you hosting your code?
PyCharm's Jenkins plugin will show you the status of your builds. But you'll still need to configure Jenkins to run your test suite. (There's a tutorial for setting up Jenkins for Python testing here: http://www.alexconrad.org/2011/10/jenkins-and-python.html)