Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'System.Text.RegularExpressions does not exist' in .csx files #1581

Closed
remcoros opened this issue Jun 20, 2017 · 2 comments
Closed

'System.Text.RegularExpressions does not exist' in .csx files #1581

remcoros opened this issue Jun 20, 2017 · 2 comments

Comments

@remcoros
Copy link

Environment data

dotnet --info output:

.NET Command Line Tools (2.0.0-preview3-006474)

Product Information:
Version: 2.0.0-preview3-006474
Commit SHA-1 hash: 3aa22300ac

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0-preview3-006474\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0-preview3-25415-01
Build : 0fb328316c72fef971a096d14f93b2474290210e

VS Code version: 1.13.1
C# Extension version: 1.10.0

Steps to reproduce

  • Create a .csx file and use 'System.Text.RegularExpressions' like in the screenshot below

Expected behavior

No errors

Actual behavior

image

I'm not sure if this is even valid in .csx files. I read the content of this .csx file in a powershell script and use Add-Type to run it (see: https://github.com/remcoros/til). It runs fine from powershell.

If you have an idea and can point me in the direction, I could look into a fix.

@filipw
Copy link
Contributor

filipw commented Jun 20, 2017

Thanks for the report - this is indeed a bug.
I have a fix locally already, but I need to make sure that this will not break other things accidentally 😀

@filipw filipw self-assigned this Jun 20, 2017
@filipw filipw added the Bug label Jun 20, 2017
@remcoros
Copy link
Author

ah, that's quick 👍 nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants