Title: Add preprocessor directives support · Issue #751 · dotnet-script/dotnet-script · GitHub
Open Graph Title: Add preprocessor directives support · Issue #751 · dotnet-script/dotnet-script
X Title: Add preprocessor directives support · Issue #751 · dotnet-script/dotnet-script
Description: 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 w...
Open Graph Description: 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 !SC...
X Description: 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 !SC...
Opengraph URL: https://github.com/dotnet-script/dotnet-script/issues/751
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add preprocessor directives support","articleBody":"I need to add class from my source to script. I get an error CS7021: You cannot declare namespace in script code\r\nSo tried to add something like \r\n```\r\n// in script\r\n#define SCRIPT\r\n// in source file\r\n#if !SCRIPT \r\n```\r\netc\r\nbut these directives does not work in scripts\r\n\r\nhttps://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives","author":{"url":"https://github.com/foldax","@type":"Person","name":"foldax"},"datePublished":"2024-04-08T11:35:37Z","url":"https://github.com/dotnet-script/dotnet-script/issues/751"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a7f108d-ab7c-3e59-0ea0-921dda2744ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D33C:27E6DD:144FAD7:1AAC7F0:6B000BE1 |
| html-safe-nonce | e2a749d02e467658bc198bf779a2b5f68caf0a4b78188e53d250ee4e5d43bcf9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzNDOjI3RTZERDoxNDRGQUQ3OjFBQUM3RjA6NkIwMDBCRTEiLCJ2aXNpdG9yX2lkIjoiMTg4OTU1NDgwMDQ5MjY3ODExMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a99bc922a292619c47f7fa5611d895a883db5aca77df9509b5c357ecdfef456b |
| hovercard-subject-tag | issue:2230961368 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dotnet-script/dotnet-script/751/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f4506e9ab2df48560501c221997f82338357953758d8b465b14c60ab204882f/dotnet-script/dotnet-script/issues/751 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f4506e9ab2df48560501c221997f82338357953758d8b465b14c60ab204882f/dotnet-script/dotnet-script/issues/751 |
| og:image:alt | 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 !SC... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | foldax |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/dotnet-script/dotnet-script git https://github.com/dotnet-script/dotnet-script.git |
| octolytics-dimension-user_id | 113979420 |
| octolytics-dimension-user_login | dotnet-script |
| octolytics-dimension-repository_id | 70060215 |
| octolytics-dimension-repository_nwo | dotnet-script/dotnet-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 70060215 |
| octolytics-dimension-repository_network_root_nwo | dotnet-script/dotnet-script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width