-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
None Update ignored in F# projects #8914
Comments
This results in some problems when using Azure stuff like Functions: Azure/Azure-Functions#1177 |
I've a bunch of these in my projects, I use it for test data files for instance, but AFAIK, they still work (my VS is one or two months behind), so this may be a recent regression. |
I think F# does not have the default includes, so you need C# does includes all files in the project folder, so you can update them. |
You're right, I have None Include. My bad. |
Is there any chance that F# gets default includes for this? If not then the Azure Functions Project template should simply be changed to use |
@pihai - I've opened a PR today for this: Azure/azure-functions-templates#954 |
Is having explicit includes for individual files really the best approach? This causes a problem for files where the need to include them is situational e.g. local.settings.json for Azure Functions - you want it during local development, but said file is not available during a CI build, for example. To me there seems to be two conflicting goals of both keeping the project definition terse - hence the default includes - as well as wanting to be explicit. While far from being an expert on this matter, I sort of understand the compilation order aspect when it comes to F# (source files), but I'm not entirely convinced the same principle should be applied to other project artifacts as well. |
@KevinRansom any thoughts on this? It's definitely in our camp since this can reproduce outside of VS. It means that F#-defined azure functions bundle up files that shouldn't be required for a deployment. |
I will take a look. |
Just had this issue in an azure functions app template. Would be great if |
@cartermp Why doesn't F# SDK glob None/Content? Only Compile items should need to be specified explicitly. |
@davkean -- it has been pointed out recently. I imagine we will address this, when we get some bandwidth. |
Now we know why we don't glob None and Content. Gloobbing impacts the order that the project system finds folders, which impacts the file ordering displayed in the solution explorer. Also it changes the display of .fsi files in solution explorer. |
Create a console app similar to this:
then build it.
Note that under the bin folder,
test.json
is not included. In a C# project, it is included. This doesn't require VS to reproduce, so it's likely us.The text was updated successfully, but these errors were encountered: