Comments (12)
Seems this is caused by changes in #2313
Tried using the latest prerelease, and not seeing the issue there.
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.3-preview1" />
Since this wasn't captured by an E2E test, should we add a test? .azurefunctions
folder is too important to be missing.
from azure-functions-dotnet-worker.
@jaliyaudagedara I used your FunctionApp2.zip
and the .azurefunctions
folder is present for me. My guess is this was an MSBuild oddity - perhaps some stale targets or intermediate files on your machine
from azure-functions-dotnet-worker.
ugh, that's weird.
Did you look inside the project that references the function app project: FunctionApp2\FunctionApp2.Tests\bin\Debug\net8.0
?. That's where .azurefunctions
is missing.
It creates .azurefunctions
inside the function app project: FunctionApp2\FunctionApp2\bin\Debug\net8.0
.
Even in the build pipeline, .azurefunctions
wasn't there. So likely not specific to my machine.
from azure-functions-dotnet-worker.
@jaliyaudagedara the test project is not expected to have .azurefunctions
folder in it, it is not a function app. Only projects that directly reference the Function SDK should have it.
The fact that it is present in 1.17.0, 1.17.1 and 1.17.3-preview1 is not intentional. What use case do you have for having that folder and its contents in your test app?
from azure-functions-dotnet-worker.
Thanks for the message.
Ah I see. The use case is I have a bunch of integration test projects that spin up a function and run against it.
The concept is as follows: https://github.com/jaliyaudagedara/azure-functions-integration-tests/blob/main/tests/HelloAzureFunctions.Tests.Integration/Fixtures/AzureFunctionFixture.cs
If .azurefunctions
project isn't going to be there, I am going to be in trouble 😢. But when you think about it, especially in a test project, when you reference a project, SUTs executables should be in the output, isn't it?
from azure-functions-dotnet-worker.
If .azurefunctions project isn't going to be there, I am going to be in trouble 😢.
You can always manually copy the contents over via msbuild targets. Or you can get the output directory of the functions project and directly launch it from there.
But when you think about it, especially in a test project, when you reference a project, SUTs executables should be in the output, isn't it?
Possibly, but there are also cases you may not want this. Consider a function app referencing another. Having 2 .azurefunctions
folders attempting to copy to the output may be problematic. I'd rather err on the side of not copying it, and let those that do want it copy it over themselves.
from azure-functions-dotnet-worker.
You can always manually copy the contents over via msbuild targets. Or you can get the output directory of the functions project and directly launch it from there.
Yeah, I was thinking about using msbuild targets
.
Possibly, but there are also cases you may not want this. Consider a function app referencing another. Having 2 .azurefunctions folders attempting to copy to the output may be problematic. I'd rather err on the side of not copying it, and let those that do want it copy it over themselves.
Right, that's a valid case. If someone wants to opt-in, they can do it. That makes sense.
from azure-functions-dotnet-worker.
With all that said, the current preview version 1.17.3-preview1
will copy that folder. I think I will block that copying before GA'ing this version.
from azure-functions-dotnet-worker.
yes please. If it's not supposed to be there, then we shouldn't have it. Otherwise people like me can depend on that
from azure-functions-dotnet-worker.
@jaliyaudagedara after further thinking, I am going to leave the copying behavior in - it will be available in 1.17.3-preview1
on. If you decide to not want the copying behavior, you can mark the project with Private="false"
metadata in the ProjectReference.
To disable copying of .azurefunctions folder:
<ProjectReference Include="{MyFunctionApp}.csproj" Private="false" />
from azure-functions-dotnet-worker.
Resolved by #2347
from azure-functions-dotnet-worker.
Perfect, thank you!
Updated Microsoft.Azure.Functions.Worker.Sdk
to 1.17.3-preview1
, and can now see .azurefunctions
.
from azure-functions-dotnet-worker.
Related Issues (20)
- `NullReferenceException` in `FunctionMetadataProviderGenerator` after upgrading `Microsoft.Azure.Functions.Worker.Sdk` to `1.17.3` HOT 7
- Update FNH to enable prejitting in placeholder mode.
- Docker images for .NET 9 - Core tools
- Improve testing/validation on E2E and sample apps but treating build warnings as errors
- How to turn off Asp.Net Core Integration on Isolated runtime on v4 with .NET 8 HOT 3
- Release Process Enhancement
- Automate release notes process
- How to access ServiceBus session state in isolated process azure functions? HOT 1
- ServiceBusMessageActions not wrapped into Transaction HOT 1
- Failed to start a new language worker for runtime: dotnet-isolated Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.7"
- Regression in `Microsoft.Azure.Functions.Worker.Sdk` version `1.17.4`/`1.17.3` of solution builds using no-incremental HOT 1
- Migrating from .NET 6 in-proc function to .NET 8 isolated produces error in Azure "Error configuring services in an external startup class." HOT 2
- Dotnet build fails because in bin folder WorkerExtensions.csproj HOT 5
- Azure Function not working with Microsoft.Azure.Functions.Worker.Sdk `1.17.3`/`1.17.4` HOT 8
- Azure function intermittent error during cold start after converting to .NET 8 isolated worker HOT 1
- FromResult error when namespace ends in .Task
- Update storage extensions WebJobs dependencies
- Spurious build failures on `extensions.json` HOT 2
- ServiceBusOutput binding for .NET 8 Isolated model function app not sending message to topic subscription HOT 2
- Support SDK container builds from worker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-dotnet-worker.