<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>CodeRunner Forum Rss Feed</title><link>http://www.codeplex.com/Project/ListForums.aspx?ProjectName=CodeRunner</link><description>CodeRunner Forum Rss Description</description><item><title>New Post: Is there library documentation available?</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=34515</link><description>&lt;div style="line-height: normal;"&gt;&amp;quot;&lt;em&gt;A
library of utility routines that enhance the .NET runtime Base Class
Library (BCL) with additional features needed when writing scripts like
programs. This library is called Microsoft.Tools.CodeRunner.dll&lt;/em&gt;&amp;quot;&lt;br&gt;
&lt;br&gt;
Is there any documentation at all available on that library. May be rudimentary, just with the list of classes and what every class does? Anything? I was able to find absolutely nothing.&lt;br&gt;
&lt;br&gt;
Thank you in advance.&lt;br&gt;
Andrew&lt;br&gt;
&lt;/div&gt;</description><author>zespri</author><pubDate>Fri, 29 Aug 2008 03:33:03 GMT</pubDate><guid isPermaLink="false">New Post: Is there library documentation available? 20080829033303A</guid></item><item><title>NEW POST: CodeRunner .NET 2.0 released</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=25709</link><description>&lt;div class="wikidoc"&gt;
I've finally created a 2.0 production release.&lt;br /&gt;
&lt;/div&gt;</description><author>jlyonsmith</author><pubDate>Thu, 10 Apr 2008 15:46:57 GMT</pubDate><guid isPermaLink="false">NEW POST: CodeRunner .NET 2.0 released 20080410034657P</guid></item><item><title>NEW POST: Calling one script from another ?</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=20695</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;&lt;div class="quote"&gt;
 &lt;br /&gt;vajrang wrote:&lt;br /&gt;&lt;div class="quote"&gt;
 &lt;br /&gt;jlyonsmith wrote:&lt;br /&gt;[snip]&lt;br /&gt;What is your reason for having multiple scripts?  If the other scripts are just shared functionality then you could use a regular .NET assembly.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;The other scripts are indeed shared functionality, but of course, the whole reason I don't want to make it a .NET assembly is so I avoid the &amp;quot;is the bin out of sync with the source or not&amp;quot; issue.&lt;br /&gt; &lt;br /&gt;Also, I want to put multiple callable &amp;quot;functions&amp;quot; into one script file so others can reuse them. Creating a separate CSR file for each function seems overkill...&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;You are absolutely correct of course.  It would be great to have a low overhead way to call functionality in another script.  That's a quintessential scripting language feature.  &lt;br /&gt; &lt;br /&gt;Does something like the &lt;b&gt;CallScript&lt;/b&gt; method above seem like it would do the trick?  Of course you could create a &lt;b&gt;CallScriptMethod&lt;/b&gt; to call something other than &lt;b&gt;Main&lt;/b&gt;.   I'm pretty sure that it would be possible to add functionality to Scaffold to allow debugging of multiple scripts at a time by compiling them into one assembly and doing some Reflection magic in the &lt;b&gt;CallScript&lt;/b&gt; method.  I'll add it to the backlog.  Further thoughts and comments welcome.&lt;br /&gt;
&lt;/div&gt;</description><author>jlyonsmith</author><pubDate>Tue, 29 Jan 2008 02:40:21 GMT</pubDate><guid isPermaLink="false">NEW POST: Calling one script from another ? 20080129024021A</guid></item><item><title>NEW POST: Calling one script from another ?</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=20695</link><description>&lt;div class="wikidoc"&gt;
&lt;div class="quote"&gt;
 &lt;br /&gt;jlyonsmith wrote:&lt;br /&gt;[snip]&lt;br /&gt;What is your reason for having multiple scripts?  If the other scripts are just shared functionality then you could use a regular .NET assembly.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;The other scripts are indeed shared functionality, but of course, the whole reason I don't want to make it a .NET assembly is so I avoid the &amp;quot;is the bin out of sync with the source or not&amp;quot; issue.&lt;br /&gt; &lt;br /&gt;Also, I want to put multiple callable &amp;quot;functions&amp;quot; into one script file so others can reuse them. Creating a separate CSR file for each function seems overkill...&lt;br /&gt;
&lt;/div&gt;</description><author>vajrang</author><pubDate>Mon, 28 Jan 2008 21:18:25 GMT</pubDate><guid isPermaLink="false">NEW POST: Calling one script from another ? 20080128091825P</guid></item><item><title>NEW POST: Calling one script from another ?</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=20695</link><description>&lt;div class="wikidoc"&gt;
&lt;div class="quote"&gt;
 &lt;br /&gt;vajrang wrote:&lt;br /&gt;Is there a way to bind more than one script file (CSR) to each other ? I'm trying to achieve two things :&lt;br /&gt; &lt;br /&gt;1. I should be able to call one script from another (without having to drop to Process.Start())&lt;br /&gt;2. When debugging in scaffold, all scripts can show up in the project so debugging into a sub-script is easy..&lt;br /&gt; &lt;br /&gt;TIA,&lt;br /&gt;Vajrang.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;I tend to use Command.Run to run another script like this:&lt;br /&gt; &lt;br /&gt;Command.Run(&amp;quot;csr &amp;quot; + scriptName + scriptArguments, out output);&lt;br /&gt; &lt;br /&gt;I don't have anything cleverer than that at the moment I'm afraid.  It has the downside that another process is spun up for the called script.  It would of course be possible to simply load and compile the script in the same appdomain and invoke it.  Because calling the script would require some API support like say &lt;b&gt;ScriptEnvironment.CallScript()&lt;/b&gt;, Scaffold support could be trickier.  One possibility is to allow you to specify multiple scripts on the command line and load them all into Scaffold.&lt;br /&gt; &lt;br /&gt;What is your reason for having multiple scripts?  If the other scripts are just shared functionality then you could use a regular .NET assembly.&lt;br /&gt;
&lt;/div&gt;</description><author>jlyonsmith</author><pubDate>Sun, 27 Jan 2008 22:22:50 GMT</pubDate><guid isPermaLink="false">NEW POST: Calling one script from another ? 20080127102250P</guid></item><item><title>NEW POST: Calling one script from another ?</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=20695</link><description>&lt;div class="wikidoc"&gt;
Is there a way to bind more than one script file (CSR) to each other ? I'm trying to achieve two things :&lt;br /&gt; &lt;br /&gt;1. I should be able to call one script from another (without having to drop to Process.Start())&lt;br /&gt;2. When debugging in scaffold, all scripts can show up in the project so debugging into a sub-script is easy..&lt;br /&gt; &lt;br /&gt;TIA,&lt;br /&gt;Vajrang.&lt;br /&gt;
&lt;/div&gt;</description><author>vajrang</author><pubDate>Fri, 18 Jan 2008 18:14:13 GMT</pubDate><guid isPermaLink="false">NEW POST: Calling one script from another ? 20080118061413P</guid></item><item><title>NEW POST: Code Runner .NET 2.0 Beta Released</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=19908</link><description>&lt;div class="wikidoc"&gt;
See &lt;a href="http://www.codeplex.com/CodeRunner/Release/ProjectReleases.aspx?ReleaseId=9582"&gt;Code Runner .NET 2.0 Beta&lt;/a&gt; for more information about new features and other changes.&lt;br /&gt;
&lt;/div&gt;</description><author>jlyonsmith</author><pubDate>Fri, 04 Jan 2008 01:19:28 GMT</pubDate><guid isPermaLink="false">NEW POST: Code Runner .NET 2.0 Beta Released 20080104011928A</guid></item><item><title>NEW POST: Code Runner .NET 1.3 released</title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=18153</link><description>&lt;div class="wikidoc"&gt;
After a long delay CodeRunner 1.3 is finally available.  This is just a service release which adds support for Visual Studio 2008 and provides some bug fixes.&lt;br /&gt;
&lt;/div&gt;</description><author>jlyonsmith</author><pubDate>Wed, 21 Nov 2007 22:22:55 GMT</pubDate><guid isPermaLink="false">NEW POST: Code Runner .NET 1.3 released 20071121102255P</guid></item><item><title>References?: </title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=3271</link><description>&lt;div class="wikidoc"&gt;
Thanks for the reply and the detailed info.  I had stopped checking the forums for awhile myself.  I was afraid that the project had died...&lt;br /&gt; &lt;br /&gt;I will give your instructions a try and let post here as to how it turns out.&lt;br /&gt; &lt;br /&gt;BTW, I would like to thank you for such a useful utility.  I have several CSR/CSX scripts that run nightly (via Task Manager), and everything always works great.  I've thought about going and working with Powerscript, but being able to code in C# is so much more intuitive for me.&lt;br /&gt;
&lt;/div&gt;</description><author>SloopJohnB</author><pubDate>Mon, 05 Mar 2007 16:44:22 GMT</pubDate><guid isPermaLink="false">References?:  20070305044422P</guid></item><item><title>References?: </title><link>http://www.codeplex.com/CodeRunner/Thread/View.aspx?ThreadId=3271</link><description>Wow, sorry for the delay in getting back to you!  I stopped monitoring the discussion lists for a bit there.  Yes, this is a successor to CSX.  It should be functionally identical.  To handle references outside the preset ones you can do one of two things.  (1) Create a response file containing lines like /r:MyAssembly.dll.  Give the response file the same name as the script, i.e. if the script is MyScript.csr, then the response file should be MyScript.rsp.  Csr.exe will pick add the entries in the response file when it compiles and runs the script.  If you add the references in a Scaffold project and they are no part of the standard response file entries you will see the Script.rsp file get generated automatically by Scaffold.  (2) you can specify /r: on the command line if you just want to quickly reference another assembly, although I have to admit I rarely use this feature. It's there as a last resort in case folk have problems and just need to "make it work".</description><author>jlyonsmith</author><pubDate>Fri, 09 Feb 2007 02:39:04 GMT</pubDate><guid isPermaLink="false">References?:  20070209023904A</guid></item><item><title>User Forum: References?</title><link>http://www.codeplex.com/CodeRunner/Project/DisplayThread.aspx?ForumId=1164&amp;ThreadId=3271&amp;ANCHOR#LastPost</link><description>Hi,
I've just discovered this project a couple days ago.  I'm assuming that this is a successor to CSX (which I used a good amount).  They seem to work pretty similarly...

The problem I'm having now is that I'm not quite sure on how to deal with any outside references.  Since the project file is built every time the file is edited, etc., any project references I set are not kept.  But some of the scripts I want to write require functionality outside the preset references.  Any suggestions on how to handle this would be most welcome!</description><author>SloopJohnB</author><pubDate>Wed, 03 Jan 2007 19:53:33 GMT</pubDate><guid isPermaLink="false">User Forum: References? 20070103075333P</guid></item><item><title>Project Management Forum: Code Runner .NET 1.2 Alpha Available</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1163&amp;ThreadId=2473&amp;ANCHOR#LastPost</link><description>"Alpha" builds of v1.2 are available.  They are pretty stable; currently it is really just a bug fix release.  Let me know if there are any features or issues that you would like to see worked on.</description><author>jlyonsmith</author><pubDate>Mon, 20 Nov 2006 17:12:14 GMT</pubDate><guid isPermaLink="false">Project Management Forum: Code Runner .NET 1.2 Alpha Available 20061120051214P</guid></item><item><title>Project Management Forum: Code Runner .NET 1.1 Released</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1163&amp;ThreadId=1759</link><description>I release v1.1 this weekend.  I've done some renaming in this build that will probably break existing scripts.  The new class names help avoid conflicts with the .NET BCL class names.</description><author>jlyonsmith</author><pubDate>Mon, 09 Oct 2006 22:17:24 GMT</pubDate><guid isPermaLink="false">Project Management Forum: Code Runner .NET 1.1 Released 20061009101724P</guid></item><item><title>Script Forum: RE: Generate an empty MSBuild project file</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1434&amp;ThreadId=1525</link><description>Just save the program in a file called {{GenProjFile.csr}} and type {{GenProjFile MyProject.proj}} to use it.</description><author>jlyonsmith</author><pubDate>Fri, 22 Sep 2006 16:07:15 GMT</pubDate><guid isPermaLink="false">Script Forum: RE: Generate an empty MSBuild project file 20060922040715P</guid></item><item><title>Script Forum: Generate an empty MSBuild project file</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1434&amp;ThreadId=1525</link><description>Here's a script that I wrote this morning for something that I found I was doing a lot - generating empty MSBuild project files.

{{
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using Microsoft.Tools.CodeRunner;

/// &lt;summary&gt;
/// Creates a bare bones MSBuild project file.
/// &lt;/summary&gt;
public class Program
{
	public static int Main(string[] args)
	{
		if (args.Length == 0)
		{
			Console.WriteLine("Usage: {0} &lt;proj-file&gt;", ScriptEnvironment.ScriptPath.FileAndExtension);
			return 0;
		}
		
		File.WriteAllText(args[0], @"&lt;?xml version=""1.0"" encoding=""utf-8""?&gt;
&lt;Project DefaultTargets=""Build"" xmlns=""http://schemas.microsoft.com/developer/msbuild/2003""&gt;
	&lt;PropertyGroup&gt;
		&lt;OutputName&gt;MyProgram&lt;/OutputName&gt;
	&lt;/PropertyGroup&gt;
	&lt;ItemGroup&gt;
		&lt;Compile Include=""MyProgram.cs"" /&gt;
	&lt;/ItemGroup&gt;
	&lt;Target Name=""Build""/&gt;
	&lt;Target Name=""Clean""/&gt;
	&lt;Target Name=""Rebuild"" DependsOnTargets=""Clean;Build""/&gt;
&lt;/Project&gt;");

		return 0;
	}
}
}}</description><author>jlyonsmith</author><pubDate>Fri, 22 Sep 2006 16:04:47 GMT</pubDate><guid isPermaLink="false">Script Forum: Generate an empty MSBuild project file 20060922040447P</guid></item><item><title>Developer Forum: RE: Simple Example?</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1162&amp;ThreadId=1430</link><description>Oh, on the WiX issue.  Unfortunately WiX doesn't yet have an installer, and to get the msbuild stuff to work you need to do one additional thing.  

In the WiX 3.0 installation directory (wherever you unpacked the .zip file to) you will find two files: wix.targets and wixtasks.dll.  Copy both of those files into a directory called "%ProgramFiles%\MsBuild\Microsoft\WiX\v3.0" create it if it doesn't exist).  Then, if you have the WiX binaries in your PATH everything should build.  If not, see the directory called EnvSetter for additional information.</description><author>jlyonsmith</author><pubDate>Mon, 18 Sep 2006 19:24:54 GMT</pubDate><guid isPermaLink="false">Developer Forum: RE: Simple Example? 20060918072454P</guid></item><item><title>Developer Forum: RE: Simple Example?</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1162&amp;ThreadId=1430</link><description>Good point. HelloWorld is easy.  Jost save the following in a file called HelloWorld.csr:

using System;

class Program
{
  public static void Main() { Console.WriteLine("Hello World"); }
}

Now open up a command prompt and type HelloWorld (or HelloWorld.csr if you happen to have a program or batch file already called HelloWorld in your PATH).

I'll be posting a collection of more useful scripts this week.</description><author>jlyonsmith</author><pubDate>Mon, 18 Sep 2006 17:35:08 GMT</pubDate><guid isPermaLink="false">Developer Forum: RE: Simple Example? 20060918053508P</guid></item><item><title>Developer Forum: Simple Example?</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1162&amp;ThreadId=1430</link><description>It sounds like a very cool idea. Speaking about instant gratification - it would help to include a simple example on how to run a "HelloWorld" csr.

Do I have to build the Setup in the solution? I'm getting an error: CodeRunner-5205\CodeRunner\1.0\Setup\Setup.proj(32,11): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\WiX\v3.0\wix.targets" was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk.
I downloaded WiX from SF and it doesn't build.</description><author>xrouge</author><pubDate>Sun, 17 Sep 2006 05:13:57 GMT</pubDate><guid isPermaLink="false">Developer Forum: Simple Example? 20060917051357A</guid></item><item><title>Project Management Forum: Code Runner .NET 1.0</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1163&amp;ThreadId=1354</link><description>Code Runner .NET 1.0 will be available for download tomorrow (9/12/2006).  

I already have a bunch of things that I want to put in v1.1 to fix a bunch of stuff.  I'll start populating the Issue Tracker database with them.</description><author>jlyonsmith</author><pubDate>Tue, 12 Sep 2006 02:18:52 GMT</pubDate><guid isPermaLink="false">Project Management Forum: Code Runner .NET 1.0 20060912021852A</guid></item><item><title>Developer Forum: Welcome to the Code Runner .NET project!</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=CodeRunner&amp;ForumId=1162&amp;ThreadId=1353</link><description>Thanks for checking out this project.  I'll be uploading a bunch of useful scripts that show off the power of Code Runner .NET to this forum over the coming months.  Stay tuned.</description><author>jlyonsmith</author><pubDate>Tue, 12 Sep 2006 00:18:44 GMT</pubDate><guid isPermaLink="false">Developer Forum: Welcome to the Code Runner .NET project! 20060912121844A</guid></item></channel></rss>