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

Can't start the application: #189

Open
solutionall opened this issue Dec 10, 2021 · 3 comments
Open

Can't start the application: #189

solutionall opened this issue Dec 10, 2021 · 3 comments

Comments

@solutionall
Copy link

solutionall commented Dec 10, 2021

Can't start the application on windows 10 with VS2019.
Which is startup project? I've used single project then I got these errors:

Usage: FaceDetection [options]

Options:
-h|--help Show help information
-d|--directory The directory path which includes image files
-c|--cpus The number of CPU cores to use in parallel. -1 means "use all in system"
-m|--model Which face detection model to use. Options are "hog" or "cnn".

    directory:

C:\Program Files\dotnet\dotnet.exe (process 16588) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

@solutionall solutionall changed the title A project with an Output Type of Class Library cannot be started directly. The framework 'Microsoft.NETCore.App', version '2.0.0' was not found. Dec 10, 2021
@solutionall solutionall changed the title The framework 'Microsoft.NETCore.App', version '2.0.0' was not found. Can't start the application: Dec 10, 2021
@takuya-takeuchi
Copy link
Owner

@solutionall
You must pass arguments like the follwoing thing.

dotnet run -c Release -- -d=C:\Images -m=C:\Models

@solutionall
Copy link
Author

solutionall commented Dec 10, 2021

```shell
dotnet run -c Release -- -d=C:\Images -m=C:\Models

Sorry for newbie. Where should I put this command?

@takuya-takeuchi
Copy link
Owner

@solutionall
You launch command prompt, powershell or shell and input there.
Or you can use Visual Studio.
Input the above paramter in project project property and run it by F5.

https://stackoverflow.com/questions/6475887/passing-command-line-parameters-with-visual-studio-c-sharp

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

2 participants