// Michael R. Hansen    08-10-2024

A three-project solution to a minimal part of the polynomial exercise:

-  PolyLib: an F\# library for polynomials	
-  CSharpApp: a C\# console application using the library
-  FSharpApp: an F\# console application using the library


was developed using the Command Line Interface (CLI) tool
- https://docs.microsoft.com/en-us/dotnet/core/tools
- https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/get-started-command-line


You can build and use the projects as follows:


Unzip the file

In directory PolyLib do: 

dotnet build   
-- this produces an assembly (a library file) "PolyLib.dll" in PolyLib/bin/Debug/net8.0

-- adjust path in #r @" ... " in script.fsx and run the script in F# Interactive
dotnet fsi < script.fsx 



Change dir to FSharpApp and do: dotnet build 

-- this produces an assembly (an executable / a binary) "FSharpApp" in FSharpApp/bin/Debug/net8.0 
-- change dir to FSharpApp/bin/Debug/net8.0 and execute FSharpApp
-- you may also in the directory FSharpApp do:
dotnet run 


Change dir to CSharpApp and do: 
dotnet build  
-- this produces an assembly (an executable / a binary) "CSharpApp" in CSharp/bin/Debug/net8.0 
-- change dir to CSharpApp/bin/Debug/net8.0 and execute CSharpApp
-- you may also in the directory CSharpApp do:
dotnet run


You may also run script.fsx from F# Interactive in Visual Studio Code or Visual Studio:



