Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add preprocessor directives support #751

Copy link
Copy link
Open
@foldax

Description

@foldax
Issue body actions

I need to add class from my source to script. I get an error CS7021: You cannot declare namespace in script code
So tried to add something like

// in script
#define SCRIPT
// in source file
#if !SCRIPT 

etc
but these directives does not work in scripts

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.