hostedtoolcache\windows\dotnet\dotnet.exe build D:\a\1\s\WebApp\WebApp.csproj --configuration Release --runtime linux-x64file 'D:\a\1\s\WebApp\obj\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v2.2/linux-x64You may also need to include
我在Linux下遇到了一个编译问题。我正在Linux上编译java程序;目标是Linux和Windows。代码检查是否存在特定于平台的类(如下面的代码所示)。因此,如果代码在Linux下运行,则不会执行特定的Windows代码。可以在Linux下编译它吗?不用说,Windows下的编译不会产生错误。 if (