Я задал вопрос здесь о том, как убедиться, что в сборку включена правильная версия dotnet.
Как мне интересно, версия еще не развернута.
Что я буду искать в развернутых файлах, чтобы рассказать?
Развертывание включает в себя следующие файлы
52,816 dotnet-aspnet-codegenerator-design.dll
689 584 Microsoft.CodeAnalysis.CSharp.Workspaces.dll
2 624 944 Microsoft.CodeAnalysis.Workspaces.dll
23,632 Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll
73 296 Microsoft.VisualStudio.Web.CodeGeneration.Core.dll
35,408 Microsoft.VisualStudio.Web.CodeGeneration.dll
69,200 Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll
28,752 Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll
34 896 Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll
157 776 Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll
При входе в систему на компьютере развертывается код и введите
dotnet .\myapi.dll
ошибка
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.5' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\
- Installing .NET Core prerequisites might help resolve this problem:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
Переход на сайт дает URL
HTTP Error 502.5 - Process Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681
И журнал событий показывает
failed to start process with commandline 'dotnet .\myapi.dll', ErrorCode = '0x80004005 : 80008096.
Как убедиться, что dotnet развернут?
[Update]
Я вижу, что c: \ program files \ dotnet.exe - версия 2.1.26919.1
Однако я установил .Net Core Runtime 2.1.5 (x64)
Я могу сказать, что он установлен, потому что, когда я перезапущу установщик, он спрашивает, хочу ли я восстановить или удалить.
Полагаю, что поскольку API работает под IIS, ему не нужен dotnet.exe?
Машина работает под управлением Windows 2012 Server R2