Я получаю эту ошибку, когда внедряю триггер сервисной шины и пытаюсь создать/запустить его локально
1> C: \ Program Files \ Microsoft Visual Studio \ 2022 \ Msbuild \ Current \ bin \ amd64 \ microsoft.common.currentVerion.targets (4911,5): ошибка MSB3027: не могу не может быть не может быть не может быть не может быть не может быть не может быть не copeedversion. "C: \ users \ loc.nuget \ packages \ system.security.cryptography.protectedData \ 4.5.0 \ runtimes \ win \ lib \ netstandard2.0 \ system.security.cryptography.protectedData.dll" TO "Bin \ Release \ net8.0 \ runtimes \ win \ lib \ netstandard2.0 \ system.security.cryptography.protectedData.dll". Превышен количество повторных последствий. "C: \ users \ loc.nuget \ packages \ system.security.cryptography.protectedData \ 4.5.0 \ runtimes \ win \ lib \ netstandard2.0 \ system.security.cryptography.protectedData.dll" TO "Bin \ Release \ net8.0 \ runtimes \ win \ lib \ netstandard2.0 \ system.security.cryptography.protectedData.dll". Не удалось найти часть пути 'Bin \ Release \ net8.0 \ runtimes \ win \ lib \ netstandard2.0 \ system.security.cryptography.protecteddata.dll'.
1> Проект построения «worperextensions.csproj»-неудачный. PrettyPrint-Override ">
net8.0
v4
Exe
enable
enable
< /code>
.cs Trigger < /p>
[Function(nameof(Serviceannouncement))]
public async Task Run(
[ServiceBusTrigger("mytopic", "mysubscription", Connection = "connstring")]
ServiceBusReceivedMessage message,
ServiceBusMessageActions messageActions)
{
_logger.LogInformation("Message ID: {id}", message.MessageId);
_logger.LogInformation("Message Body: {body}", message.Body);
_logger.LogInformation("Message Content-Type: {contentType}", message.ContentType);
// Complete the message
await messageActions.CompleteMessageAsync(message);
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... us-trigger
Azure Function Service Service Bus Trigger ⇐ C#
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Java Azure Function App Trigger Trigger - память не выпущена после вызова
Anonymous » » в форуме JAVA - 0 Ответы
- 17 Просмотры
-
Последнее сообщение Anonymous
-