Tune icon indicating copy to clipboard operation
Tune copied to clipboard

Management of script references

Open kkokosa opened this issue 7 years ago • 2 comments

Currently, script references only mscorlib while it would be very nice to have possibly to reference any additional assembly.

kkokosa avatar Oct 18 '17 14:10 kkokosa

In my oppinion it would be nice to add references by some script "meta-tag", analyzed and removed before compilation. Something like;

#r "System.Numerics.Vectors"

using System;

namespace Samples
{
    public class Echoer
    {
        public string Write(string message)
        {
            return message;
        }
    }
}

kkokosa avatar Mar 27 '18 05:03 kkokosa

As I described in PR I've put //#r tag instead of #r. Comment sign allow me to use Roslyn Walker. Basicly im looking for all comments and those which contains #r are parsed to script.

norek avatar Nov 01 '18 18:11 norek