Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 28 2014 15:19
    filipw commented #537
  • Jan 28 2014 15:18
    filipw synchronize #537
Glenn Block
@glennblock
Hi. Another difference is scriptcs has deep integration with NuGet packages, scriptcs introduces
script packs which remove a lot of the monotony of working with libraries from C# script, like they remove using statements and handle a lot of boiler plate code.
Scriptcs itself is extensible, you can create modules which alter how the runtime behaves, or add your own processors which parse and inject code at compile time
You can create your own custom REPL commands
You can reuse scriptcs by publishing them as NuGet packages
The fact that it is C# is s huge attractor though as it allows C# devs to leverage what they already know
Glenn Block
@glennblock
Sent you guys all slack invites
It doesn't look like it will be good for the public though as each person has to be invited?
I am wondering if that is what the free version allows now. I looked at the pricing and it is like $8 a month for each daily user ie about $50 a month for us if we upgrade
If we pay for daily use then it seems like we can have open rooms
bitbonk
@bitbonk
have though about adding something like xamarin inspector to scriptcs: https://channel9.msdn.com/Events/Build/2016/B836 (go to 0:20:15)
a more beefier CLI
juno-craft
@juno-craft
@glennblock Thanks for the detailed response:)
juno-craft
@juno-craft
One more thing, there's the concept of 'exposing' a variable in your script in IronPython
is there an equivalent in scriptcs?
juno-craft
@juno-craft
maybe i wasnt very clear k
by exposing i mean you use a c# object in your python script. it gives you accesd y
access to all the public members of the object inside your python script
sry for typos typing on the phone and my fingers are kind of fat đŸ˜…
Glenn Block
@glennblock
In scriptcs you get access to all the public members on objects
As to typos, gitter mobile sucks which is why we are moving to slack :-)
So don't blame yourself
I find with their crappy mobile app I have typos xontinually
And I hate that return sends a message. I wish there as a completely seperate send button
Slack is just so much betrter
Erik Jonsson Thorén
@thecopy
Hello. Im getting ERROR: Script execution failed. [FileLoadException] Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.. I have googled and found that adding a scriptcs.exe.config with startup useLegacyV2RuntimeActivationPolicy="true" should fix this. But where should i put this file? In the same folder as the .csx does not work
Kristian Hellang
@khellang
probably beside scriptcs.exe?
Erik Jonsson Thorén
@thecopy
Tried it
Didnt work :<
Kristian Hellang
@khellang
You have
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">    
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
</configuration>
??
Erik Jonsson Thorén
@thecopy
Yes. Exactly that, down to the character
Kristian Hellang
@khellang
hmm
never tried it myself
just saw it on SO
in theory that should do it
Ideally I'd get rid of the .NET 2.0 stuff, though :P
Erik Jonsson Thorén
@thecopy
Well, its a Microsoft-NuGet package so its easier said than done ;)
Glenn Block
@glennblock
Folks, come to our new slack room: https://scriptcs-slack.herokuapp.com/
We're planning to move all our convos over there
@/all come on over to slack
Stephen W. Nuchia
@swn1
A couple of questions about ambients in the hosting API. 1) other than using an expando-object, is there a way to inject ambients that are determined at runtime? I've got a dictionary being passed in and I want the entries exposed as ambients with the keys as names. Doesn't look doable by the documentation or examples, am I missing something?
Second question: If I expose an ambient with a null value and it gets assigned in the script, can I read it back? Or do I need to expose a container?
(container was the wrong word, i mean a mutable object)
Glenn Block
@glennblock
If you are determining the properties at runtime then Dynamic/Expandi is probably the best way to do it.
Can you move over to our slack room?
We aren't using gitter anymore
Stephen W. Nuchia
@swn1
I guess so. thanks. Haven't started drinking the slack coolaid yet. I saw the post from 21 June but the phrase "planning to" is what jumped out, not the fact that it was three weeks ago. See ya there.
Christian Seidlitz
@Vittel
hi, could someone help me wich a quick set of rules how i can define extension methods beside normal ones in a csx file?
Christian Seidlitz
@Vittel
i can find so and so many hints that i just have to write them on the top level, but i always get the non-generic static class error when trying to run the script in scriptcs. have no idea what else to do