Error RZ3007: Targeted tag name cannot be null or whitespace

Step 1: Disable precompile linux

updating below property in csproj file:ui

<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>this

Apart from this, Razor pages will be updated live.rest

<PropertyGroup>
<ServerGarbageCollection>false</ServerGarbageCollection>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup>code

特別是 WebHost.csprojget

 

Step2: clear cache io

This method worked for me:date

  • delete obj and bin folders
  • run dotnet restore
  • run dotnet build

 

other:file

It looks as if your project references are incorrect. You can reproduce what I'm seeing by doing the following:command

    1. At the command line run dotnet nuget locals all -c
    2. At the command line run dotnet restore
    3. At the command line run dotnet build

 

 

最後: dotnet publish -r linux-x64

相關文章
相關標籤/搜索