Project-system: Build action for additional files should be called something more than "AdditionalFiles"

Created on 6 Dec 2016  路  16Comments  路  Source: dotnet/project-system

I raised this in the code review and there was push back on it, but I'm going to raise it again. I think the AdditionalFiles build action should:

  1. Follow the casing of the other build actions
  2. Be called some more than just AdditionalFiles. Developers who do not work on the Roslyn compiler will not know what this is. If I do a google search for "AdditionalFiles build action", Google work breaks the build action, and nothing in the results points to anything related this what this build action represents.

image

Bug Feature-RuleProperties

Most helpful comment

I am finding this thread hilarious as I am still trying to find documentation on WTF additionalfiles means as a build action on a console application.

All 16 comments

Note that desktop projects follow the same AdditionalFiles build action convention and so does all Roslyn APIs and command line compiler switches. Additionally, the MSBuild item group is also called AdditionalFiles. I agree we need more documentation for it, but I feel using a different build action name will just make it inconsistent and confusing relative to the rest of the pipeline.

We can fix the casing, but I don't think 2 should be changed.

None of my comments have said calling something "different", just adding additional information to it;
"C# compiler additional files" or "C# analyzer additional files" - don't see how that's more confusing than what it is currently. Searching "AdditionalFiles buildaction" brings up zero results related to what this is, searching for "C# analyzer additional files" brings up relevant results.

I am finding this thread hilarious as I am still trying to find documentation on WTF additionalfiles means as a build action on a console application.

@flashfearless How very meta. :)

Months later, still top google result, for "visual studio build action "additionalfiles"" is this thread, and I have no idea what it does either.

@bruceburge the AdditionalFiles build action is a mechanism to pass arbitrary files to an analyzer (extension code that can be loaded by the C# and VB compilers and can report errors and warnings). For example the public api analyzer (https://github.com/DotNetAnalyzers/PublicApiAnalyzer) looks at a PublicAPI.Shipped.txt file that lists all the known public apis for a project. It will then report errors for new public apis being added. PublicAPI.Shipped.txt is passed to the analyzer as an additional file.

@jmarolf Thanks for the heads up, I have to agree then, that if the files are for being passed to an analyzer, perhaps a better name for them would be "AnalyzerFiles." Regardless, thanks for your response.

@mavasani
so your comment from the inside tracks but for a user / developer who does not know the details of MS Build the label is confusing and worthless.

as a developer using VS i am thinking that "AdditionalFIles" might mean that i want the file added to my project when i build it.

i would say that any action that only has to do with analysing code be a seperate option form build options.

+1 please do not call this "AdditionalFiles", as that's super misleading! -- I totally thought what @figuerres was stating above was the actual case -- but figured I would google it and make sure... heh. Glad I checked. XD

I'm on 15.8.0 Preview 4.0 and it's STILL not fixed. I was thinking same as @figuerres (that AdditionalFiles would include... Additional Files in my output directory) and there is no obvious documentation on it other than this thread. If a functionality is going to be created or named in a confusing way, then the punishment is having to write documentation for it. Please name it more intuitively or make documentation that Google notices.

I have filed a documentation bug https://github.com/MicrosoftDocs/visualstudio-docs/issues/1280 for more discoverable documentation for additional files, based on the current terminology.

I will let @Pilchie @davkean make a call on whether the project system team wants to rename the build action to something else. I think it would be good if we have some way for the users to directly go from a build action in VS to the docs.microsoft.com documentation page for that build action.

also if the item was in a group that was labeled as "Build Analyzer Properties" then the name would be less confusing based on the property group. i think that might be doable w/o a major chnage to the tooling that uses the property yes ?

@KathleenDollard - can you help us come up with some good terminology here?

Interest is really compiling on this thread

This was renamed to "C# analyzer additional file".

Was this page helpful?
0 / 5 - 0 ratings