I want to use my own file types (.foo) with a custom compiler tool in a C# project (this tool then creates a .cs file and will add it to the current compilation.
Now... what IS working... the .targets is imported correctly, the compiler is running and I guess I will be able to add this generated .cs file to the compilation.
But... the files with ending .foo are all unknown elements (type "none") when I add them to C# project. I did follow the tutorials I found, but nothing works. I did the same years ago for C++ projects and there it was no problem at all. But C# projects... no idea what's wrong. I tried to copy the EmbeddedResources-Type (.resx) and turn it into a .foo type. But... nothing is showing up in Visual Studio.
Then I tried to modify the EmbeddedResource.xaml file (in ...\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\de-DE) and the new properties I added do also NOT show up... so... I fully don't understand what's going on here.
Can someone explain me, how to write and install .xaml, .pros and .targets files so that I have my "fooFile" elements also in C# projects like those I have in the C++ projects?
Does someone know a good (and working) source for VS2017 and/or VS2019?? Or can someone explain, why those properties don't show up? Or why the files are not recognized like in C++ projects (where I had to define the file ending and then it worked)??