Error RZ3007: Targeted tag name cannot be null or whitespace
阿新 • • 發佈:2018-06-13
hit group IV razor upd enc ati tar other </PropertyGroup>
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>
特別是 WebHost.csproj
Step2: clear cache
This method worked for me:
- delete
obj
andbin
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:
- At the command line run
dotnet nuget locals all -c
- At the command line run
dotnet restore
- At the command line run
dotnet build
最後: dotnet publish -r linux-x64
Error RZ3007: Targeted tag name cannot be null or whitespace