Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the project ? #4

Open
Archsx opened this issue Oct 18, 2022 · 2 comments
Open

How to run the project ? #4

Archsx opened this issue Oct 18, 2022 · 2 comments

Comments

@Archsx
Copy link

Archsx commented Oct 18, 2022

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

@konst-sh
Copy link

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

@Tarmil
Copy link
Member

Tarmil commented Nov 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants