Pasted UserCode does not generate "using" statements
Posted: Fri Dec 16, 2016 8:12 pm
Scenario:
0) C#
1) UserCode exists in a recording module that calls.
2) UserCode is called in the recording module
3) UserCode line from the recording module is copy-pasted into a new recording module.
Expected:
New recording module has a copy of the previous UserCode in its .UserCode.cs file. included at the top of new .UserCode.cs file
Actual:
New recording module has a copy of the previous UserCode in its .UserCode.cs file. NOT included at the top of new .UserCode.cs file
Does not compile.
0) C#
1) UserCode exists in a recording module that calls
Code: Select all
File.Exists("file.txt");
2) UserCode is called in the recording module
3) UserCode line from the recording module is copy-pasted into a new recording module.
Expected:
New recording module has a copy of the previous UserCode in its .UserCode.cs file.
Code: Select all
using System.IO;
Actual:
New recording module has a copy of the previous UserCode in its .UserCode.cs file.
Code: Select all
using System.IO;
Does not compile.