1.问题情景:

  需要保证已安装.net core SDK,并且命令提示符下运行“dotnet --version”,有反应。

  如果之前运行良好,现在却不行了,查看安装程序中存在.net core SDK,但dotnet不管用。直接在控制面板中的程序列表中修复该应用,然后重启cmd,试试。

2..csproj项目配置文件配置如下:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
  </PropertyGroup>
</Project>

 

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2021-11-30
  • 2021-11-13
  • 2021-08-08
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-10-23
  • 2021-06-28
  • 2021-07-24
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案