здесь исходный файл csproj перед обновлением.
Код: Выделить всё
net6.0
v4
true
PreserveNewest
PreserveNewest
Never
Обновил файл проекта для .NET 8:
Вот мой файл .csproj после обновления: (очистка, восстановление, перестройка и т. д.)
Код: Выделить всё
net8.0
v4
PreserveNewest
PreserveNewest
Never
но при запуске функции я получаю следующее сообщение об ошибке:
{"Message":"Что-то пошло не так при обработке вашего
запроса","ExceptionMessage":"Не удалось загрузить файл или сборку
'System.Memory. Данные, версия=6.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51' Система не может найти указанный файл
.","ExceptionType":"System.IO.FileNotFoundException","StackTrace":"
в Azure. .RequestFailedException.AppendContentAndHeaders(Response
ответ, StringBuilder messageBuilder)\r\n at
Azure.RequestFailedException.CreateExceptionDetails(Ответ ответа,
Парсер RequestFailedDetailsParser)\r\n at
Azure.RequestFailedException..ctor(Ответ ответа, Exception
innerException, RequestFailedDetailsParser DetailsParser) \r\n в
Azure.Storage.Blobs.ContainerRestClient.CreateAsync(Nullable
Код: Выделить всё
1 timeout, IDictionary
Код: Выделить всё
1 access, String defaultEncryptionScope, Nullable
CancellationToken cancelToken)\r\n at
Azure.Storage.Blobs.BlobContainerClient.CreateInternal(PublicAccessType
publicAccessType, IDictionary
Код: Выделить всё
2 metadata, BlobContainerEncryptionScopeOptions encryptionScopeOptions, Boolean async, CancellationToken cancellationToken, String operationName)\r\n at Azure.Storage.Blobs.BlobContainerClient.CreateIfNotExistsInternal(PublicAccessType publicAccessType, IDictionary
BlobContainerEncryptionScopeOptions шифрованияScopeOptions, Boolean
async, CancellationToken cancelToken)\r\n в
Azure.Storage.Blobs.BlobContainerClient.CreateIfNotExistsAsync(PublicAccessType
publicAccessType, IСловарь
Код: Выделить всё
2 metadata, BlobContainerEncryptionScopeOptions encryptionScopeOptions, CancellationToken cancellationToken)\r\n at DurableTask.AzureStorage.Storage.ClientResponseExtensions.DecorateFailure[T](Task
responseTask)\r\n в
DurableTask.AzureStorage.Storage.BlobContainer.CreateIfNotExistsAsync(CancellationToken
cancellationToken) в
//src/DurableTask .AzureStorage/Storage/BlobContainer.cs:line 51\r\n
at
DurableTask.AzureStorage.Partitioning.AppLeaseManager.CreateContainerIfNotExistsAsync()
in
//src/DurableTask.AzureStorage/Partitioning/AppLeaseManager.cs:line
207\r\n по адресу
DurableTask.AzureStorage.AzureStorageOrchestrationService.GetTaskHubCreatorTask()
in
//src/DurableTask.AzureStorage/AzureStorageOrchestrationService.cs:line
371\r\n at
DurableTask.AzureStorage.AzureStorageOrchestrationService.EnsureTaskHubAsync()
in
//src/DurableTask.AzureStorage/AzureStorageOrchestrationService.cs:line
352\r\n at
DurableTask.AzureStorage.AzureStorageOrchestrationService.GetOrchestrationStateAsync(String
instanceId, Boolean allExecutions, Boolean fetchInput) в
//src/DurableTask.AzureStorage/AzureStorageOrchestrationService.cs:line
1827\r\n в
Microsoft.Azure.WebJobs.Extensions.DurableTask.AzureStorageDurabilityProvider.GetOrchestrationStateWithInputsAsync(String
instanceId, Boolean showInput) в
//src/WebJobs.Extensions.DurableTask/AzureStorageDurabilityProvider.cs:line
81\r\n at
Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableClient.Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurableOrchestrationClient.GetStatusAsync(String
instanceId, Boolean showHistory, Boolean showHistoryOutput, Boolean
showInput) in//src/WebJobs.Extensions.DurableTask/ContextImplementations/DurableClient.cs:line
465\r\n at
Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpApiHandler.HandleGetStatusRequestAsync( HttpRequestMessage
запрос, String instanceId, Nullable`1
returnInternalServerErrorOnFailure, IDurableOrchestrationClient
existingClient) в
//src/WebJobs.Extensions.DurableTask/HttpApiHandler.cs:line 635\r\n
в
Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpApiHandler.HandleRequestAsync(HttpRequestMessage
запрос) в
/_/src/WebJobs.Extensions.DurableTask/HttpApiHandler.cs:line 376"
поэтому я спустился в кроличью нору и попробовал разные вещи в этом направлении. (еще несколько вопросов здесь)
Пытался вручную ссылаться на System.Memory.Data:
Я добавил ссылку на сборку System.Memory.Data и убедился, что она присутствует в папке bin\Debug\net8.0.
Я запустил dotnet clean, dotnet restoration и dotnet построить несколько раз.
Код: Выделить всё
net8.0
v4
true
PreserveNewest
PreserveNewest
PreserveNewest
Never
bin\Debug\net8.0\System.Memory.Data.dllSystem.Memory.Data.dll
true
Я новичок в dot.net, рад изучить любые другие идеи или предложения, которые вы можете предложить. может быть. Ваша помощь будет очень признательна
Подробнее здесь: https://stackoverflow.com/questions/792 ... assembly-s