Skip to content

.Net Editor does not support System.Range #14799

Closed

Description

@xantilon

Reproduce:

  • click Run button on first code block
  • copy code from last code block to editor
  • click Run on editor

Error:
(6,5): error CS0246: The type or namespace name 'Range' could not be found (are you missing a using directive or an assembly reference?)
(6,15): error CS0518: Predefined type 'System.Index' is not defined or imported
(6,15): error CS8652: The feature 'range operator' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version.
(6,15): error CS0518: Predefined type 'System.Range' is not defined or imported
(6,22): error CS0518: Predefined type 'System.Index' is not defined or imported
(13,5): error CS0246: The type or namespace name 'Range' could not be found (are you missing a using directive or an assembly reference?)
(13,15): error CS8652: The feature 'index operator' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version.
(13,15): error CS0518: Predefined type 'System.Index' is not defined or imported
(13,15): error CS0656: Missing compiler required member 'System.Index..ctor'
(13,15): error CS0518: Predefined type 'System.Index' is not defined or imported
(13,15): error CS8652: The feature 'range operator' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version.
(13,15): error CS0518: Predefined type 'System.Range' is not defined or imported
(13,30): error CS8652: The feature 'index operator' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version.
(13,30): error CS0518: Predefined type 'System.Index' is not defined or imported
(13,30): error CS0656: Missing compiler required member 'System.Index..ctor'
(13,30): error CS0518: Predefined type 'System.Index' is not defined or imported
(18,69): error CS0246: The type or namespace name 'Range' could not be found (are you missing a using directive or an assembly reference?)


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. mairaw commented on Sep 29, 2019

    @mairaw
    Contributor

    Thanks for your feedback @xantilon. We should just remove the interactive from the first sample. It doesn't work with this tutorial.

  2. self-assigned this
    on Sep 29, 2019
  3. added this to the September 2019 milestone on Sep 29, 2019
  4. pkulikov commented on Sep 30, 2019

    @pkulikov
    Contributor

    @BillWagner @mairaw are there any plans to update the try.net engine to .NET Core 3.0 and C# 8? Then a lot of new snippets can be made interactive.

  5. mairaw commented on Sep 30, 2019

    @mairaw
    Contributor

    @LadyNaggaga can you comment on that?

  6. BillWagner commented on Sep 30, 2019

    @BillWagner
    Member

    Side note: This is one of the reasons the C# 8 exploration is in dotnet/try-samples. That uses server side blazor, which makes it easier to have the latest CLR and libraries.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions