-2

https://github.com/Keegz51/CBIBFinal

There are no instructions to build/compile/run/use, and I'm unable to get it to run. I'm using the latest version of MS VS Code with C# Extension, please help!

dfransch22
  • 1
  • 1
  • 1
  • Did you try compiling it in VS 2017? Did you contact https://github.com/Keegz51 for assistance? – mjwills Jul 29 '18 at 10:40
  • This is not an appropriate question for Stack Overflow I'm afraid. We deal with specific and focused problems here but this is really just "please help me". – DavidG Jul 29 '18 at 11:06

1 Answers1

3

You need to download the project

Install .NET Core (https://www.microsoft.com/net/learn/get-started-with-dotnet-tutorial)

Go to the root folder of the project (where .sln is located).

run 'dotnet restore' via a command line, terminal or powershell, it will install external packages

run 'dotnet run', it will launch the solution

or run 'dotnet build' if you just want to generate dll or exe from the project. On the command result, you'll find the path of the generation result.

You should install Microsoft Visual Studio 2017, it's easier to work with .NET Core

Rémi Lardier
  • 317
  • 2
  • 14
  • Ok will try this out – dfransch22 Jul 29 '18 at 10:46
  • If you want to use debugger on visual studio code, you can click on "debug" (left toolbar) Select add a configuration, it will take a launch.json file If you click on the green arrow, debugger will be launched, and you will could put breakpoint (see visual studio code documentation) – Rémi Lardier Jul 29 '18 at 10:49
  • So I've gone to the root folder of the project (where .sln is located), run 'dotnet restore' via command line, but when I run 'dotnet run' it gives an error "Couldn't find a project to run". Any idea how to fix this so the solution can be launched? – dfransch22 Jul 29 '18 at 12:16
  • I need a previous version of .NET – dfransch22 Jul 29 '18 at 12:21
  • Go on the project folder (where is located .csproj) or look thé command parameters to specify the name of the project – Rémi Lardier Jul 29 '18 at 12:24
  • For the other version of. Net core, they all are available on the Website, download 1.1.2 if necessary – Rémi Lardier Jul 29 '18 at 12:26
  • I managed to get it to run but now encountered the following error: – dfransch22 Jul 29 '18 at 13:54
  • fail: Microsoft.EntityFrameworkCore.Query.Internal.SqlServerQueryCompilationContextFactory[1] – dfransch22 Jul 29 '18 at 13:55
  • An exception occurred in the database while iterating the results of a query. – dfransch22 Jul 29 '18 at 13:55
  • System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.) ---> – dfransch22 Jul 29 '18 at 13:55
  • System.ComponentModel.Win32Exception: The system cannot find the file specified – dfransch22 Jul 29 '18 at 13:56
  • 1
    Create another post – Rémi Lardier Jul 29 '18 at 15:04