Showing category "asp.net" (Show all posts)

RazorTagHelper - DOTNET_HOST_PATH is not set -Error MSB4018

Posted by jineesh uvantavida on Wednesday, December 2, 2020, In : asp.net 

After updating VS 2019 16.8.2 There will be an error on compilation on any project:


dot net --version : 5.0.100

Severity Code Description Project File Line Suppression State

Error MSB4018 The "RazorGenerate" task failed unexpectedly.
System.InvalidOperationException: DOTNET_HOST_PATH is not set at Microsoft.AspNetCore.Razor.Tasks.DotNetToolTask.get_DotNetPath()
at Microsoft.AspNetCore.Razor.Tasks.DotNetToolTask.GenerateFullPathToTool()
at Microsoft.Build.Utilities.ToolTask.ComputePathToTool() a...


Continue reading ...
 

Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. Manifest definition does not match the assembly reference

Posted by jineesh uvantavida on Friday, November 10, 2017, In : asp.net 

You can solve the issue by adding below lines in web.config file.

 <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

Continue reading ...
 
 

Translate This Page

 


Make a free website with Yola