ASP.NET Core 2上未定义runco​​mmand属性

Jah*_*han 8 visual-studio asp.net-core visual-studio-2017 asp.net-core-2.0

Visual Studio 2017,我在与之相关的所有项目中都出错ASP.NET Core 2.说的是:

无法运行您的项目.未定义runco​​mmand属性

即使我卸载VS并再次安装它,但我仍然有这个问题.我测试了VS的默认项目模板,但那些也没有正确执行.请帮我.

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>
    <ApplicationIcon />
    <OutputType>Library</OutputType>
    <StartupObject />
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="Views\Product\" />
    <Folder Include="wwwroot\" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.1" />
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
  </ItemGroup>

</Project>
Run Code Online (Sandbox Code Playgroud)

For*_*ugh 1

netcoreapp2.0 尝试更改为:netstandard2.0