customizing .csproj file
when it generates the .csproj i want it to replace the Compile with AvaloniaXaml. is there any way to do this?
I don't know what is Avalonia but my guess is the best way to solve this would be to add support for sdk style csproj generation in sharpmake. I assume that sdk style projects are able to figure out what to do with these automatically.
Avalonia is a .net ui framework and those properties needs to be avaloniaXaml but everytime sharpmake generates they all become Compile.
We added Avalonia support to our local version of Sharpmake and it was pretty easy and straightforward with only minimal changes necessary. I could maybe create a PR. We've been meaning to push back our local changes to the public repo anyway.
any updates on this?
You might have to contact Martin Ecker directly.
any updates on this?
@martinecker
or is there a workaround to this?
okay i kinda found a workaround to this
in the contructor SourceFilesExtensions.Clear();
then add EnableDefaultItems
conf.CustomProperties.Add("EnableDefaultItems", "true"); conf.CustomProperties.Add("BuiltInComInteropSupport", "true"); conf.CustomProperties.Add("AvaloniaUseCompiledBindingsByDefault", "true");
got any ideas? issue
What is not working with your workaround ? Actually this looks like a way to achieve sdk style csproj.
ye its working great except that its including the sharpmake project file (MySharpMakeTarget.Sharpmake.cs)
Not sure if this will work but you could try from the project constructor SourceFilesExcludeRegex.Add(".sharpmake.cs$");
didn't work :/
Well... You will need to debug and propose a fix.