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 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 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 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 ...

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.

Headerbild zu Projektmanagement standardisieren und optimieren
Service

Standardize and optimize project management | Atlassian

With defined standard templates, you can easily optimize your project management and use BigPicture to keep track of the status of your project, dependencies between tasks, and the planning and workload of your team.

Referenz

Integrated Project and User Portal (IPUP)

Transparent and flexible management of projects and users in large environments with Jira Service Management: catworkx has developed a tool for a major customer from the automotive industry, with which projects and the assignment of users involved can be set up largely automatically.

Logo Atlassian Confluence
Technologie

Confluence from Atlassian

Create, organize, and collaborate on tasks - all in a single place. Confluence is a workspace for teams and organizations where you can store your documentation and collaboratively develop and share knowledge. Dynamic pages give your team a place to create, capture, and collaborate around projects or idea development.

Technologie Übersicht

Consulting and solutions for AWS services

As a leading AWS Select Partner, we are at your side with help and advice. From strategy development to migration and optimization - with the extensive suite of AWS services, we will work with you to find the perfect solution for your requirements.

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.

Headerbild zu Microsoft Power BI
Technologie

Microsoft Power BI

Power BI is the ideal complement to the Microsoft-centric analytic solution in the enterprise. As a standalone version "Power BI Desktop" it is free of charge. With Power BI, companies create quick, comprehensive and meaningful visual analyses.

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

Header Konnzeption individueller Business Intelligence Lösungen
Service

Conception of individual Analytics and Big Data solutions

We determine the best approach to develop an individual solution from the professional, role-specific requirements – suitable for the respective situation!

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.

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.

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.

CLOUDPILOTS, Google Workspace, G Suite, Google Cloud, GCP, MeisterTask, MindMeister, Freshworks, Freshdesk, Freshsales, Freshservice, Looker, VMware Engine
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.

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)

Headerbild zum TIMETOACT Onboarding
Referenz 9/28/20

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.

Bleiben Sie mit dem TIMETOACT GROUP Newsletter auf dem Laufenden!