具体内容我就不发过来了,原贴:https://www.bt.cn/bbs/thread-151981-1-1.html为什么我要重新发帖,因为在一个帖子里面,只要bt团队工作人员回复过后,他就给你设置【已解答】,后面就不再回复了,我只能不断的发新帖寻求帮助或解决之道。
按照操作添加环境变量之后,重新启动服务器,通过测试:
- root@DebianCeShi:~# echo $HOME
- /root
复制代码 看样子应该不是这里的问题吧,但是提示还是老样子:
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: “WarnForInvalidProjectsTask”任务意外失败。 [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: System.InvalidOperationException: 未设置必需的环境变量“HOME”。请尝试设置“DOTNET_CLI_HOME”或“HOME”并再次运行该操作 [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetValueOrThrowMissingEnvVarsDotnet(Func`1 getValue, String home, String dotnetHome) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetHome() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.<>c.<.cctor>b__20_0() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.CreateValue() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetFolderPath(SpecialFolder folder) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetFolderPath(NuGetFolderPath folder) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.CheckIfFileSystemIsCaseInsensitive() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.CreateValue() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.get_IsFileSystemCaseInsensitive() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.GetStringComparerBasedOnOS() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Build.Tasks.WarnForInvalidProjectsTask.Execute() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- /www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/www/wwwroot/Blog.Core-master/Blog.Core.Api/Blog.Core.Api.csproj]
- 生成失败。请修复生成错误并重新运行。
复制代码 到底怎么解决创建net站点之后,首次是正常的,但是只要重新启动后,就无法正常运行了。使用测试程序是堡塔面板官方演示视频中所使用的Blog.Core,从去年刚推出Net建站我就测试过,到现在一年多了,再次测试,还是同样的问题,只要重新启动之后,再次启动无法正常启动了。只有最初创建Net那次是正常的,已经测试过从去年到现在至少也有十好几遍了,希望给一次性给个解决方案,一直无法正常测试通过。
|
|