Closed KCarterSr closed 5 years ago
1.
"AdditionalFiles" is a build action. You set it in the properties window for the file.
Inside the csproj it looks like this inside an ItemGroup
<AdditionalFiles Include="TODO-Warn.config">
<SubType>Designer</SubType>
</AdditionalFiles>
2.
You can ignore the intellisense errors and they will go away when you close the file. They are displayed because VS is treating files wtih ".config" extensions as XML configuration files.
Visual Studio also offers different ways of viewing ".config" files. From your screenshot I can see it's in "Design" mode. If you change to "Source" mode (as below) you'll see line wrapping, etc.
Works!!
Thank you
NOTE: In VS 2017 in the properties window it's called "C# analyzer additional files" Thanks
NOTE: In VS 2017 in the properties window it's called "C# analyzer additional files"
I think it varies by project type, not VS version. But, yes, good to document the other name here too. :)
What do you mean by "AdditionalFile"? Is that a tag in the .csproj file?
When I "Right Click -> Add Existing File", I get the file in the project but nothing in the .csproj file (I think this is normal unless you change the file properties in the properties box).
I also tried adding this to the .csproj file. `
`