TodoMVC
TodoMVC copied to clipboard
How to run the project ?
I used to be javascript developer and I'm new to F#( also .NET ), could you tell me how to run this project on my computer ? I just run the cmd
dotnet build
and I get some error
"TodoMVC.paket\Paket.Restore.targets(171,5): error MSB307 3: command “dotnet paket restore” exit,code is 1"
Here is my .NET info if needed : .NET SDK: Version: 6.0.402 Commit: 6862418796
Runtime: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.402\
global.json file: Not found
Host: Version: 6.0.10 Architecture: x64 Commit: 5a400c212a
.NET SDKs installed: 6.0.401 [C:\Program Files\dotnet\sdk] 6.0.402 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Download .NET: https://aka.ms/dotnet-download
I'm actually also interested in this question. We should be able to run the app in debug mode in the localhost, I assume we should have IIS Express run option for this, however I don't see it, and the default app type in the project properties is "Class library" for some reason
@Archsx For the paket issue, this is probably because you don't have paket yet; try dotnet tool restore
before building.
@konst-sh You should be able to just F5 from Visual Studio to run the application after running the above command. Although be aware that breakpoints aren't working in F# when running a WebAssembly app such as this one.