c# - Compile xaml using Roslyn -
short story: there way use roslyn compiler compile wpf usercontrol?
let's you'd want compile assembly containing standard c# code , wpf controls (xaml , xaml.cs files) without csproj of course.
i've found lot on web on how compile dll using roslyn, nothing on how handle xaml files?
i know visual studio (or msbuild) creates temporary generated file , embed baml file in resulting assembly. maybe if find way generate intermediate file use it, have found presentationbuildtasks.markupcompilepass needs in end csproj (ok, may generate project on fly, hope find simpler).
thanks help.
if goal compile xaml c#, check out xaml code behind generator, see http://xamlgenerator.codeplex.com/.
its plugin visual studio 2010 allows compile xaml equivalent c#.
Comments
Post a Comment