Skip to content

Issue about execution #1

@bejaouibechir

Description

@bejaouibechir

I downloaded the script in a test forler where I also added a start.csx file
whith your proposed code

var wpf = Require<Wpf>();
wpf.RunApplication("CalculatorView.xaml", new CalculatorViewModel());

wpf.RunApplication<CalculatorViewModel>("CalculatorView.xaml");

wpf.RunApplication(new CalculatorViewModel()); // Uses convention to find View for ViewModel

wpf.RunApplication<CalculatorViewModel>();  // Uses convention to find View for ViewModel

wpf.RunApplication("CalculatorView.xaml") // No ViewModel

The execution ended by generating this error

ERROR: Script compilation failed: C:\start\start.csx(2,47): error CS0246: The type or namespace name 'CalculatorViewModel' could not be found (are you missing a using directive or an assembly reference?).

I tried to verify the your scriptpack references it seems to be OK. However this error leads me to have a doubt about somme missing assembly references

Looking forward for an answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions