为了能快速了解并处理您的问题,请提供以下基础信息: 问题描述:首次创建正常运行,启动后,就再也启动不起来了
正在生成...
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: “WarnForInvalidProjectsTask”任务意外失败。 [/www/wwwroot/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.csproj]
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetHome() [/www/wwwroot/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.csproj]
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.CreateValue() [/www/wwwroot/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.csproj]
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.CheckIfFileSystemIsCaseInsensitive() [/www/wwwroot/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.csproj]
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.CreateValue() [/www/wwwroot/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.csproj]
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.GetStringComparerBasedOnOS() [/www/wwwroot/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.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/FL/FL.Web/FL.Web.csproj]
生成失败。请修复生成错误并重新运行。
我昨天晚上开始在本地测试,不管,有重装系统,又做了一遍,第一遍正常,只要重启系统,net项目的网站就再也启动不起来了。程序C#自己写的,暂时没有尝试过其他程序是否也是这样。我在创建的时候,选择了随机启动。
|
|