zoukankan      html  css  js  c++  java
  • Error RZ3007: Targeted tag name cannot be null or whitespace

    Step 1: Disable precompile 

    updating below property in csproj file:

    <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>

    Apart from this, Razor pages will be updated live.

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

    特别是 WebHost.csproj

    Step2: clear cache 

    This method worked for me:

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

    other:

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

      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

  • 相关阅读:
    声明函数的是方式
    数组的相关属性和函数
    JS选择结构
    JS数据类型
    JS 运算符
    JS 变量
    响应式布局
    css的flex属性
    CSS中的度量单位
    BFC 规则
  • 原文地址:https://www.cnblogs.com/kellynic/p/9177115.html
Copyright © 2011-2022 走看看