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

Add namespaces to CSharpScalarResolver #584

Closed
lukzas opened this issue Feb 5, 2020 · 2 comments · Fixed by #587
Closed

Add namespaces to CSharpScalarResolver #584

lukzas opened this issue Feb 5, 2020 · 2 comments · Fixed by #587

Comments

@lukzas
Copy link
Contributor

lukzas commented Feb 5, 2020

I wanted to use LINQ and XML inside <script language="c-sharp"> block, but unfortunately assembly reference was not found.

I've checked the code and indeed only System was referenced in a code template. However, it works after I've added them to both template and ReferencedAssemblies field of CompilerParameters()

Could you add some of the standard namespaces that might be useful or parametrize? Also, I can create PR fo you like.

@Seddryck Seddryck added this to the v1.23 milestone Feb 5, 2020
@Seddryck
Copy link
Owner

Seddryck commented Feb 5, 2020

Feel free to submit a PR!

@Seddryck Seddryck linked a pull request Mar 5, 2020 that will close this issue
Seddryck pushed a commit that referenced this issue Mar 17, 2020
…calarResolver_(#584)

Feature/add namespaces to csharp scalar resolver (#584)
@Seddryck
Copy link
Owner

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/builds/31536821 (version 1.23.0-beta.18)

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

Successfully merging a pull request may close this issue.

2 participants