如何进行retargeting? 1. 在PackageConosole中执行Update-Package -Reinstall PM> Update-Package -Reinstall You are running the 'restore' operation with an 'http' source, 'http://xxx:65270/nuget'. Support for 'http' sources will be removed in a future version.
今天研究了一下堡垒机打开terminal显示中文乱码的问题,有以下几个知识点: 1. 打开终端,查看当前使用的shell是什么:echo $SHELL 2. 如果shell是/bin/zsh, 那么其profile是~/.zshrc; 如果shell是/bin/sh或/bin/bash或其他什么,那么其profile是~/.bash_profile。 3.为了解决中文乱码,需要在profile中增加LANG相关设置 # You may need to manually set your language environment export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 增加配置后,使用source命令登基生效。 source ~/.zshrc
体验了一下dotnet升级助手去分析.net4.8的工程,感觉还不错吧,希望后面能升级成功 .NET Upgrade Assistant - Get Started dotnet.microsoft.com
Diagnostic UA0005 with the message HttpContext does not have a Current property; get the context from a controller or use HttpContextAccessor instead. generated
xDiagnostic UA0002 with the message This type is not supported on .NET Core/.NET 5+ and should be replaced with a modern equivalent. generated
问题:The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see go.microsoft.com 解决办法:在工具》Nuget包管理器》程序包管理器控制台中执行命令 重新安装依赖包 ``` Update-Package -reinstall ```