我需要托管哪个运行时和Web托管捆绑软件AspNetCore 2.0.3应用程序?

时间:2019-08-06 12:43:54

标签: c# asp.net angular5 asp.net-core-2.0

当我安装了SDK版本时,一切都很好,但是要托管我的应用程序,我必须安装dotnet虚拟主机捆绑包以及运行时。对于每个捆绑包,我都使用v2.0.3。但是,在我安装了两个以后,尽管我的SDK仍然存在,但dotnet命令无法运行。我正在使用Visual Studio Code btw。My installed Packages,然后dotnet命令显示了此enter image description here

尝试使用https://dotnet.microsoft.com/download/dotnet-core/2.0中的运行时软件包来开发不同版本的SDK和Web主机,但没有结果。我的* .csproj文件如下:

<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>

0 个答案:

没有答案