Unable to build MASM targets
Z:\opt\msvc\MSBuild\Microsoft\VC\v170\BuildCustomizations\masm.targets(70,5): error MSB4175: The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKey
Token=b03f5f7f11d50a3a". Could not load the file 'Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. [Z:\tmp\sample.vcxproj]
This is because wine loads Microsoft.Build.Tasks.v4.0 from wine-mono, but mono does not implement XamlTaskFactory:
@mstorsjo pls address this issue
@U65535F Meanwhile, you can use winetricks dotnet48 to install the non-Mono version, that should be sufficient to run your build.
@mochaaP I don't understand, do I have to run that wiretricks dotnet48 command before starting out the msvc? Would that fix the issue of MASM targets?
afaik it's likely not possible to run XamlTaskFactory on Mono for now - it uses runtime c# codegen (CodeDomProvider) which is quirky on Mono
It should be possible if we are willing to replace the bundled masm.targets with our own one, using pre-generated TaskFactory dll