-
Notifications
You must be signed in to change notification settings - Fork 676
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
#r/#load is only allowed in scripts. #1241
Comments
Thanks for the report. These are diagnostics 7011 and 8097 which are raised only when a CSX file is attempted to be treated as regular source code. Do you by any chance try to include the CSX files in the same compilation as regular CS files (i.e. made them part of the csproj file)? |
Here's a repro repo: https://github.com/cameron-sjo/VSCodeRepro. I found out that if I have OmniSharp switch project to an individual There's still a few other issues because I assume OmniSharp isn't taking the into account the different dependencies from |
Thanks. So there a few things here.
I think supporting Azure Functions is a good idea but it would have to be developed as an extra feature on top of the exist CSX supporting OmniSharp. It shouldn't be too difficult to do, and would add some nice value, the biggest challenge would be how to distinguish that this CSX is Azure Functions but that other CSX is not. |
I can't think of a way to detect whether or not it's an Azure Function CSX vs a normal CSX. My best idea would be to check for a *.funproj, but that's hacky at best. Thanks for your response! |
@filipw Should we close this issue? |
I think this can be closed, let's open one in https://github.com/OmniSharp/omnisharp-roslyn for adding support for Azure Functions Development |
I get the following error messages in VS Code when I have csx script files opened.
Environment data
dotnet --info
output:VS Code version: 1.9.1
C# Extension version: 1.7.0
The text was updated successfully, but these errors were encountered: