Sharpmake icon indicating copy to clipboard operation
Sharpmake copied to clipboard

Specify Build Action for file extension

Open quixoticgamedev opened this issue 3 years ago • 0 comments

Hello,

I tried creating the solution/project for the Avalonia Todo sample app using Sharpmake: https://docs.avaloniaui.net/tutorials/todo-list-app/ https://github.com/grokys/todo-tutorial

I managed to get pretty much everything working except being able to setup the Build Action for the '.axaml' files, which are added to the CSharpProject using: SourceFilesExtensions.Add("axaml");.

From what I can tell, Avalonia uses the .axaml extension for their xaml-like files to avoid clashing with the default VS tools. However I have not found a way to set this up through Sharpmake and end up having to manually change the Build Action from 'Compile' to 'AvaloniaXaml' manually in the properties panel.

Is it possible to do this through Sharpmake?

quixoticgamedev avatar May 08 '22 02:05 quixoticgamedev