scriptcs-contrib / scriptcs-wpf Goto Github PK
View Code? Open in Web Editor NEWWPF Script Pack for scriptcs
License: Other
WPF Script Pack for scriptcs
License: Other
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.