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

Problem with installation #27

Closed
thecpshah opened this issue Oct 12, 2018 · 7 comments
Closed

Problem with installation #27

thecpshah opened this issue Oct 12, 2018 · 7 comments

Comments

@thecpshah
Copy link

thecpshah commented Oct 12, 2018

Hello!

I installed .NET Core 2.1 from the link https://www.microsoft.com/net/download

Then I cloned the repo.

After that, I tried to run command dotnet add package Microsoft.ML.Probabilistic and I get the error Could not find any project in C:\Users\chintan.b.shah\Desktop\infer`.`

Can you please help with installation?

Many thanks.

Chintan

@tminka
Copy link
Contributor

tminka commented Oct 12, 2018

There is no reason to run that command on the repo. The dotnet add package command simply provides a convenient option to add a package reference to a project file.

@tminka
Copy link
Contributor

tminka commented Oct 12, 2018

I think I see the confusion. You are following the README instructions for 'Install'. Installation does not require cloning the repo. To compile the code in the repo, you should follow the instructions under 'Build'.

@thecpshah
Copy link
Author

Thank you for quick reply.

So I load Infer.sln in Microsoft Visual Studio and I get the following error

Error occurred while restoring NuGet packages: The operation failed as details for project TestApp could not be loaded. Restoring NuGet packages...

I then build the solution, which builds without any error.

A (stupid) question is now what?

@tminka
Copy link
Contributor

tminka commented Oct 12, 2018

Run the tutorials by setting the startup project to Tutorials. Run an example by setting the startup project to that example.

@thecpshah
Copy link
Author

This is not clear to me. Please see the screenshot. I run Tutorial, it builds, another window opens which says it is completed and closes.
capture

@tminka
Copy link
Contributor

tminka commented Oct 12, 2018

Unfortunately, that is how Visual Studio runs console applications with debugging. If you want the window to stay open, select Debug -> Start without debugging. Thanks to your feedback, I have edited the README file to make these steps more clear. Let us know if any of the steps there need to be further clarified.

@thecpshah
Copy link
Author

Thank you. It works now. I changed the configuration to ReleaseFull instead of Release, re-opened the solution and it worked.

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