所编译的项目类型是 Razor Class Library
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
在 windows 和 macOS 都能正常 build ,但 linux 上在 .NET Core 3.0 Preview 5 SDK 容器中编译却出错:
/root/.nuget/packages/microsoft.aspnetcore.razor.design/2.2.0/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(79,5): error : rzc discover exited with code 150.
请问如何解决?
.NET Core SDK 的版本是 3.0.100-preview5-011568
sudo apt-get install dotnet-sdk-2.2
– androllen 5年前dotnet --list-sdks