locked
Roslyn VB 14 RRS feed

Answers

  • User753101303 posted

    Works fine here.

    You have the /langversion:14 options in your web.config file ? I have something such as :

        <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs"
                    type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
                <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
                    type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
            </compilers>
        </system.codedom>
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 19, 2018 9:57 AM

All replies

  • User753101303 posted

    Hi,

    Never tried. It's best to tell which problem happens so that someone that would try could be sure to run into the same issue if any (or it could trigger something allowing to help right away).

    Edit: gave his a quick try and the package installation seems fine (you mean it works in "web application projects" and fails in "web site projects") ?

    Friday, October 19, 2018 7:48 AM
  • User1572957409 posted

    it is VB12 

    try vb14 language feature String literal

    dim xx="yyy

    yyy"

    will not compile

    Friday, October 19, 2018 7:54 AM
  • User753101303 posted

    Works fine here.

    You have the /langversion:14 options in your web.config file ? I have something such as :

        <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs"
                    type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
                <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
                    type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
            </compilers>
        </system.codedom>
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 19, 2018 9:57 AM