0

errors can be found here, in the image

I am trying to use some library/packages

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using SimplCommerce.Infrastructure.Data;
using SimplCommerce.Module.Core.Extensions;
using SimplCommerce.Module.Core.Models;
using SimplCommerce.Module.Orders.Services;
using SimplCommerce.Module.Orders.ViewModels;

In these, I am having error

Microsoft.AspNetCore

and some package of internal structure like

SimpleCommerce.Module.Core.

I am newbie in the visual studio and Microsoft tools so how I can resolve errors of using statements and another error I am getting is of C# version. I having C# 4 but the requirements of some of the projects are C# 5 so how I can upgrade version too.

C#4 mean version error

Thank you in advanced

mlbishnoi
  • 457
  • 5
  • 13
  • `Nuget` is the term. Start researching from here. – Kumar_Vikas Dec 27 '17 at 12:25
  • usually this is done with NuGet. Right click on your project, "Manage NuGet packages..." and search for the packet. – Pac0 Dec 27 '17 at 12:25
  • 1
    Here is also another approach, if you want to add some .dll libraries to your project, you can add them on project reference, here is the explanation: https://stackoverflow.com/a/12992312/5132665 it is useful when you want to use some libraries which are not available on NuGet package manager. – Fırat Çağlar Akbulut Dec 27 '17 at 12:26
  • 1
    Not only `Nuget`, question is more about Visual Studio version. You'll need VS 2017 for an easy support for NET Core – mnieto Dec 27 '17 at 12:27
  • @Kumar_Vikas I know about Nuget but when I install the packages then they give me the error C# 4, you need C# 5 so how I can do that – mlbishnoi Dec 27 '17 at 12:28
  • @FıratÇağlarAkbulut thanks I got you – mlbishnoi Dec 27 '17 at 12:29
  • @mjwills can you check the image I have uploaded now?? – mlbishnoi Dec 27 '17 at 12:37
  • if you dont have C#5 is probably the version of visual studio you are using. install an older version of the Nuget package that was built for that version of C# – thanatorr Dec 27 '17 at 12:53

0 Answers0