- Sjekk om du har DotNet installert, og evt hvilken versjon av CLI
- Run dotnet --version (displays Dot Net Core CLI version)
- Siste versjon av CLI er 1.0.0-preview2-1-003177
- DotNet Core 1.1 er siste versjon Dot Net runtime
- https://go.microsoft.com/fwlink/?LinkID=835014
- Download and install npm
- Run in cmd/terminal from the root of the project:
npm install
//installs all npm dependencies from package.json - To watch changes in the sass file run:
npm run watch-css
(To only compile the sass once, run:npm run build-css
)
- Open CMD, cd to vinapp\src\Vinapp.Data, run
dotnet ef database update
. For more EF commands, see: official page - To verify the database was created, open
SQL Server Object Explorer
window in VS and expand(localdb)\MSSQLLocalDB
. There should be a databaseVinapp.Context
- Load Vinapp.sln in Visual Studio. It is located in
/api/Vinapp/
- Restore packages by running
dotnet restore
from pmc, and build the solution. - Run the project with
F5
(Ordotnet build
, thendotnet run
if you're using a different IDE) - The application can be found at localhost:9888/index.html
- The API can be found at localhost:9888/swagger/index.html
** The imported project "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found.Confirm that the path in the declaration is correct, and that the file exist on disk.
- Verify that you have Visual Studio 2015 with update 2 (or VS 2017), if the issue still exists, try to go to control panel -> uninstall or change a program -> Select VS 2015 -> Change -> Repair