除了.net core 2.2项目之外,我的解决方案文件还包含一个网站项目。当我进入Visual Studio并运行“重建解决方案”时,包括网站在内的所有内容都将成功构建。
在构建输出中,我看到:
>Validating Web Site
9>Building directory '/e2e/'.
9>Building directory '/node_modules/.bin/'.
... etc ...
但是我尝试从包含解决方案文件的文件夹中运行“ dotnet build”(v3.1.200),但失败并出现以下错误:
Solution file error MSB4249: Unable to build website project "ClientApp". The ASP.NET compiler is only available on the .NET
Framework version of MSBuild
如何从命令行构建解决方案?
[Visual Studio是否运行“ dotnet build”来构建解决方案“?如果是,带有哪些参数?]