views:

8

answers:

0

Hi,

I'm trying to compile (by using jsc.exe) javascript code which is going to run WPF window:

import System;
import System.Windows;
import PresentationFramework;
import PresentationCore;
import WindowsBase;
import WpfApp;

App app = new App();
app.MainWindow = new Window1();
app.MainWindow.Show();
app.Run();

WpfApp is my dll with App.xaml and Window1.xaml (with code behind). App.xaml build action is Page (so I can have my own entrance point).

So during the compilation I got the following error:

combined-debug.js(19,1) : error JS1160: The list of attributes does not apply to the current context
error JS1259: A referenced assembly requires you to also reference 'Presentation Framework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Could you help me with compilation? What should I add? I already have reference to PresentationFramework.

Thanks.