Open doggy8088 opened 2 years ago
+1, Facing the same problem. The Blazor Static Web App + Azure Function + Playwright E2E tests setup requires the func start --no-build
to start the func app without build.
Because of this issue I have to add an arbitrary delay in test execution for building the Azure Function and then continue e2e test. This increases the test execution time significantly.
Having the same issue when wanting to run the same function app locally multiple times with different environment variables.
It is impacting us as well. Task.Delay() to let the function app build first. E2E tests takes a long time to finish.
what is going on with this? a freshly scaffolded project and getting this error message after second run.
why?
same here
How is possible after more than 2 years to have this issue? I tried to figure out the build-and-start process of a function but it is very complicated.
func start --port XXXX --verbose
fail due to multiple project found... yes.. the inner autogenerated obj/Debug/net8.0/WorkerExtensions/WorkerExtensions.csproj
is found
bin/output
and no more bin/Debug/net8.0
--no-build
and tadan! No job to start.. and the searching is tried under bin/Debug
..--no-build
, the output folders mismatchingThe only way to start a dotnet-isolated function locally with extension is run from VS, or manually delete the obj between executions.
sorry, in my case I just forgot a correctly configured local.settings.json
file.
- So run the command with
--no-build
and tadan! No job to start.. and the searching is tried underbin/Debug
..
- Same issue if we build first with visual studio and then try to start function with
--no-build
, the output folders mismatchingThe only way to start a dotnet-isolated function locally with extension is run from VS, or manually delete the obj between executions.
Update your csproj file
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.2" />
and delete the obj and bin folder once, and the problem should be resolved, and you can run func start
multiple times
Here are the steps to reproduce the problem.
Check Azure Functions Core Tools version
Use .NET Core 3.1.400 SDK
Create function app
Create a function
Starting my function app
Here is the log (no problem):
Starting my function app with
--no-build
optionHere is the log (No job functions found):
I expected I can find all my functions with
--no-build
option because I already build my project.