Creating Solutions and Projects in VS Code

In this post we are going to create a new Solution containing an F# console project and a test project using the dotnet CLI in Visual Studio Code.

Open VS Code in a new folder.
Open a new Terminal window. The shortcut for this is CTRL+SHIFT+'.
Create a new file in the folder. It doesn't matter what it is called, so use 'setup.txt'.
Copy the following script into the file:

dotnet new sln -o MySolution cd MySolution mkdir src dotnet new console -lang F# -o src/MyProject dotnet sln add src/MyProject/MyProject.fsproj mkdir tests dotnet new xunit -lang F# -o tests/MyProjectTests dotnet sln add tests/MyProjectTests/MyProjectTests.fsproj cd tests/MyProjectTests dotnet add reference ../../src/MyProject/MyProject.fsproj dotnet add package FsUnit dotnet add package FsUnit.XUnit dotnet build dotnet test

This script will create a new solution called MySolution, two folders called src and tests, a console app called MyProject in the src folder, and a test project called MyProjectTests in the tests folder. Change the names to suit. In VS Code, CTRL+F2 will allow you to edit all of the instances of a selected word at the same time.
If you want C# projects, omit the '-lang F#' from both project lines, change the file extensions to '.csproj' from '.fsproj', and remove the lines that add the FsUnit and FsUnit.XUnit NuGet packages.
Select all of the script text.
To run the script in the Terminal, you can do either of the following:

  • Choose the Terminal menu item and then select 'Run Selected Text'.

  • Press CTRL+SHIFT+P to open the Command Palette and then type 'TRSTAT'. Select the 'Terminal: Run Selected Text in Active Terminal' item.

The script will now execute in the Terminal.
You can delete the file with the script in if you want as you no longer need it.

Summary

It's slightly more complicated than doing this in Visual Studio or Rider but once you have the scripts, it's easy to reuse them. I highly recommend getting to know VS Code better.

 

Blog 7/21/20

Understanding F# applicatives and custom operators

In this post, Jonathan Channon, a newcomer to F#, discusses how he learnt about a slightly more advanced functional concept — Applicatives.

Blog 4/28/23

Creating a Social Media Posts Generator Website with ChatGPT

Using the GPT-3-turbo and DALL-E models in Node.js to create a social post generator for a fictional product can be really helpful. The author uses ChatGPT to create an API that utilizes the openai library for Node.js., a Vue component with an input for the title and message of the post. This article provides step-by-step instructions for setting up the project and includes links to the code repository.

Blog 5/1/21

Ways of Creating Single Case Discriminated Unions in F#

There are quite a few ways of creating single case discriminated unions in F# and this makes them popular for wrapping primitives. In this post, I will go through a number of the approaches that I have seen.

Das macht catworkx als Unternehmen aus
Jobs 9/12/22

Why catworkx?

We have a lot going for us: an open corporate culture, varied projects, a team-oriented working environment, flat hierarchies ...

View of the PUMA Headquarters in Herzogenaurach
Success Story

PUMA: Platform for low-code/no-code solutions

Thanks to Microsoft Power Platform, PUMA benefits from custom services with minimal development effort. New processes can be flexibly expanded, scaled, and centrally managed via the Center of Excellen

Blog 8/7/20

Understanding F# Type Aliases

In this post, we discuss the difference between F# types and aliases that from a glance may appear to be the same thing.

Referenz

Integrated Project and User Portal (IPUP)

For an automotive client, catworkx developed a tool for Jira Service Management that enables automated setup of projects and transparent user assignment – flexible and scalable.

Referenz

Portfolio management and project budget planning/control

Diebold Nixdorf optimizes portfolio and budget planning with Jira. Jira replaces Excel and ensures better forecasts and more efficient controlling processes in global banking and retail.

Referenz

Jira Integration of Demand and Project Portfolio Management

In the area of demand and project portfolio management, catworkx was also able to demonstrate the great flexibility of Jira in a customer project and show that relevant business data and influencing..

Referenz

Managing projects with Confluence and Jira at ASI

In 2016, the IT department of Austrian Standards was given the task of converting 160 systems to a decentralised system in 2 years. catworkx accompanied the successful change in the corporate culture

Kollaboration mit dem modernen Helpdesk
Produkt 4/5/23

Backup and recovery solutions for the cloud - HYCU in focus

Experience the ultimate cloud experience with the strong partnership of CLOUDPILOTS and HYCU. Our pioneering solutions are designed to meet all your cloud needs.

Blog

Creating connections: Stephen between catworkx & Atlassian

Creating connections, shaping added value: Stephen on his role as a bridge builder between catworkx and Atlassian

Blog 12/19/22

Creating a Cross-Domain Capable ML Pipeline

As classifying images into categories is a ubiquitous task occurring in various domains, a need for a machine learning pipeline which can accommodate for new categories is easy to justify. In particular, common general requirements are to filter out low-quality (blurred, low contrast etc.) images, and to speed up the learning of new categories if image quality is sufficient. In this blog post we compare several image classification models from the transfer learning perspective.

Lösung 9/21/22

Portfolio Project Management (PPM)

How Project Portfolio Management with Atlassian Tools supports global project and QM tasks including Cross-Project Knowledge Management.

News 7/17/25

Creating a truly global full-service Atlassian champion

Herzum joins forces with TIMETOACT GROUP to further bolster catworkx’ Atlassian capabilities in the Americas, DACH, and Europe.

Mockup eXplain Codeanalyse Whitepaper
Whitepaper 7/2/24

eXplain - Download code analysis whitepaper

eXplain - The tool for code analysis on the IBM i (AS400) & IBM Z (mainframe)

Blog

Microsoft 365 vs Google Workspace

Google Workspace and Microsoft 365 are two incredibly powerful products. A company needs a central product with which all employees can work together.

Headerbild zum TIMETOACT Onboarding
Referenz

Onboarding solution of TIMETOACT

Introducing new employees to the company is faster, easier and more efficient with an efficient ticket system in Jira, for example. Our experts have developed a solution for this.

Kompetenz 2/10/20

Certificates and awards

Our company and our products have won awards in the truest sense of the word. Among other things, SAP has certified our software solutions several times with various seals of approval.

Service

API Economy, DevOps, Low Code & MACH

Customer-oriented solutions on the topics of API economy, DevOps, low code and MACH (microservices, API-first, cloud-native and headless architecture)

Bleiben Sie mit dem TIMETOACT GROUP Newsletter auf dem Laufenden!