After dll .net framework4.6 project upgrade method "System.String.GetPathsOfAllDirectoriesAbove" resolved not found

https://stackoverflow.com/questions/59276192/getpathsofalldirectoriesabove-cannot-be-evaluated-after-updating-net-framewor

 

Item file line severity codes prohibit the display state
error NuGet for this project referenced package is missing on this computer. Use "NuGet reduction package" to download these packages. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. Missing file is .. \ packages \ Microsoft.Net.Compilers.3.4.0 \ build \ Microsoft.Net.Compilers.props. MyProject.Api D: \ Project \ MyProject.Api \ MyProject.Api.csproj 349

D: \ Project \ MyProject.Web \ MyProject.Web.csproj: error: can not be evaluated "" App_Start \ Startup.Hangfire.cs ".GetPathsOfAllDirectoriesAbove ()". Methods "System.String.GetPathsOfAllDirectoriesAbove" was not found. D: \ Project \ packages \ Microsoft.Net.Compilers.3.4.0 \ tools \ Microsoft.Managed.Core.targets

 

Solving steps:

When this error occurs, reopen the project will be the project could not be loaded at this time edit an item, find Microsoft.Net.Compilers, delete the entire line containing Microsoft.Net.Compilers, and then save the project, and finally upgrade Microsoft.CodeDom.Providers.DotNetCompilerPlatform依赖包 to 2.x version that is can

Guess you like

Origin www.cnblogs.com/slyzly/p/12028440.html