When i have SDK version installed, all things are fine but for hosting my app, i had to install dotnet web hosting bundle along with the runtime. For each of the bundle, I use v2.0.3. But after I have installed later two, dotnet command isn't functioning although my SDK is still there. I'm using visual studio Code btw.My installed Packages and after that dotnet command shows this enter image description here
Tried with different versions of SDK and Web hosing with runtime packages from https://dotnet.microsoft.com/download/dotnet-core/2.0 but no result. My *.csproj file is below:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.6"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.6"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.6"/>
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="4.5.0"/>
<PackageReference Include="System.DirectoryServices" Version="4.5.0"/>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="3.1.0"/>
<PackageReference Include="System.Drawing.Common" Version="4.5.1"/>
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1"/>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0"/>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0"/>
</ItemGroup>
</Project>