Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 无法运行您的项目。请确保您有一个可运行的项目类型,并确保';dotnet运行';支持这个项目_.net_Api_Angular8 - Fatal编程技术网

.net 无法运行您的项目。请确保您有一个可运行的项目类型,并确保';dotnet运行';支持这个项目

.net 无法运行您的项目。请确保您有一个可运行的项目类型,并确保';dotnet运行';支持这个项目,.net,api,angular8,.net,Api,Angular8,当我试图在VisualStudio代码上运行angular 8 with dotnet api代码时,出现了上述错误。 该应用程序有3个部分:角度部分、dotnetapi和DAL 在API中运行以下命令时,会发生错误。 命令:dotnetrun 错误:“无法运行您的项目。”。请确保您有一个可运行的项目类型,并确保“dotnet run”支持此项目。可运行项目应以可运行TFM(例如netcoreapp2.0)为目标,并具有输出类型“Exe”。当前输出类型为“库”。显然,culd没有找到可行的解决方

当我试图在VisualStudio代码上运行angular 8 with dotnet api代码时,出现了上述错误。 该应用程序有3个部分:角度部分、dotnetapi和DAL 在API中运行以下命令时,会发生错误。 命令:dotnetrun
错误:“无法运行您的项目。”。请确保您有一个可运行的项目类型,并确保“dotnet run”支持此项目。可运行项目应以可运行TFM(例如netcoreapp2.0)为目标,并具有输出类型“Exe”。当前输出类型为“库”。

显然,culd没有找到可行的解决方案。所以我删除了WebAPI项目并重新创建了它。成功了