Is it currently possible to run a C# script on a fresh install of Windows 10 without downloading any additional tools or sdks?
I'm trying to gauge the availability of running C# scripts because the advent of top-level statements in C# 9 is getting me excited
I'm ultimately trying to avoid any potential recipient from getting into a "Screw it, this isn't worth the effort of downloading and setting up all this crap to run this one measly script" situation, and being able to run it out-of-the-box would basically make that situation impossible
@Comraid Need context on this one. .Invoke is called on an action or function to invoke it, for example. You can call an Action like myAction(); but if you want to make it null-proof you go myAction?.Invoke();.
That small company, Microsoft? You shouldn't listen to such small plebs. Listen to me. I'm so reliable, it's almost crazy, so reliable I am. I'm the most reliablest source of information since ever. People tend to so, wow, that Deathspike. He's so reliable. I know nobody that is so reliable. Yeah, listen to me. I know everything there is to know about scripts.
OTOH do you really want to compile the whole .net framework to asm? Treeshaking could probably make it way smaller, but that would have to be implemented first.
I should have been more specific, what I mean by 'C# scripts' is 'C# as a scripting language', I want to distribute a .csx and I want to know if Windows 10 has the capability to compile and run it on the fly out-of-the-box
Am trying to define my own exception for the first time. Using VS, created a folder underneath my project folder named "exceptions", then within it "CannotOpenPortException", derived from "Exception".
When I use it, in a class in the main project folder, VS shows an error as though it cannot find the class.
If I add "Projectname.foldername." to the front of the "CannotOpenPortException" when I instantiate, the VS error goes away.
I put "using Projectname.exceptions" at the top of the project, didn't help.
What fundamental thing am I doing wrong?
(experienced in Java, not C#)
(seemed like it was probably something too simple for an SO post...)
Thank you much. I also figured (correctly) that it was a poor candidate for an SO post -- you spiraled in on the problem through a series of short questions and check-this things. Trying to do that through SO posts is more painful.
And there WASN'T - that spurious class DOESN'T COUNT - because I DIDN'T MEAN IT
oh, well
I honestly don't remember creating the spurious class, and I didn't even conceive of the class until a few minutes before I had the error...
The wonders of easy code generation, esp. in unfamiliar IDEs.
When I think of "name clash" I think of creating two different things with the same name, not two instances of the same thing in different folders. But your point is taken.
What does the middle mouse button do? Mine is also my scroll wheel, and doesn't seem to do anything when I can manage to click it without scrolling