Git Product home page Git Product logo

scriptcs-wpf's Issues

Missing using directive or an assembly reference

I am only able to run your examples successfully with all 5 explicit assembly references at the top of the csx file.

For example, here's one of them:

#r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\PresentationCore.dll"

If I don't reference them, I get errors like:

The type or namespace name Application could not be found (are you missing a using directive or an assembly reference?)

Any idea why?

Issue about execution

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.