It doesn't work for me.
I have a functionAPp in DotnetCore5, i run it with Ctrl+F5.
I have the debug window, i select the run instance.
The debug trigger the root file "program.cs" who contain:
#if DEBUG
Debugger.Launch();
#endif
But not in this other file who contains:
[Function(FunctionName)]
public async Task Run([TimerTrigger("0 */1 * * * *"
#if DEBUG
, RunOnStartup = true
#endif
)]TimerInfo myTimer, FunctionContext executionContext)
{
// Application du log
_log = executionContext.GetLogger(FunctionName);
And who is well running, i see it in console started (in my example below "GetRubixData")
I tried with VS 2019 & 2022
What i have to check ?
The console contains:
Functions:
PostWassaSalissureMesureData: [POST] http://localhost:7071/api/PostWassaSalissureMesureData
GetRubixData: TimerTrigger
For detailed output, run func with --verbose flag.
[2021-12-22T07:38:06.596Z] Retrying to start listener for function 'Functions.GetRubixData' (Attempt 1)
[2021-12-22T07:38:06.598Z] Listener successfully started for function 'Functions.GetRubixData' after 1 retries. [2021-12-22T07:38:09.430Z] Host lock lease acquired by instance ID '000000000000000000000000DA099322'.
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 POST http://127.0.0.1:55251/AzureFunctionsRpcMessages.FunctionRpc/EventStream application/grpc
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'gRPC - /AzureFunctionsRpcMessages.FunctionRpc/EventStream'
[2021-12-22T07:38:59.183Z] {
[2021-12-22T07:38:59.183Z] "ProcessId": 3352,
[2021-12-22T07:38:59.184Z] "WorkerVersion": "1.3.1.0",
[2021-12-22T07:38:59.185Z] "ProductVersion": "1.3.1\u002B9d5d2f326090a62d4496dfb45611fb696b8960e9",
[2021-12-22T07:38:59.185Z] "FrameworkDescription": ".NET 5.0.13",
[2021-12-22T07:38:59.186Z] "OSDescription": "Microsoft Windows
10.0.19044",
[2021-12-22T07:38:59.186Z] "OSArchitecture": "X64",
[2021-12-22T07:38:59.187Z] "RuntimeIdentifier": "win10-x64",
[2021-12-22T07:38:59.187Z] "CommandLine": "C:\\Sources\\Comin-API\\ByCN.ComIn\\src\\00-WEB\\02-FunctionApps\\ByCN.ComIn.FunctionApps.Data\\bin\\Debug\\net5.0\\ByCN.ComIn.FunctionApps.Data.dll
--host 127.0.0.1 --port 55251 --workerId 66a7fb37-4a35-4e8c-99cf-7c294ca7aea7 --requestId 3be30260-aca2-4e29-b9e8-93a35f06566f --grpcMaxMessageLength 2147483647"
[2021-12-22T07:38:59.188Z] }
[2021-12-22T07:38:59.200Z] Worker process started and initialized.
and it stopped here, no one other line is writing after despite the script should loop each minute
Regards