-
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
Referencing a package with X.Y.* version in .csproj results in Omnisharp not loading. #3009
Comments
Thanks for reporting the problem. There is a new build since yesterday that should fix this. Could you try setting |
I seems to be working as intended. |
The fix No error logs in the Omnisharp Logs window. |
the build mentioned here specifically addresses the problem with wildcards in project file - if you did not have them in the first place, then you are likely affected by some other problem. Could you please share your OmniSharp log? Even if there are no errors there it will contain some useful info. |
You are right @filipw |
@filipw thanks for your advice. |
Closing as resolved. |
Issue Description
Referencing a package with a "starred" version (i.e. : 12.0.*) in the .csproj file results in Omnisharp failing to load.
A colleague of mine had the same issues on another project in another environment (Windows 10) and we fixed it in the same way by replacing the * by an actual version.
All of this was done in .Net projects, I could not test it in another framework.
Steps to Reproduce
dotnet new console test
<ItemGroup> <PackageReference Include="Newtonsoft.Json" Version="12.0.*" /> </ItemGroup>
Expected Behavior
Omnisharp normally loading and being functioning.
Actual Behavior
Omnisharp is not available anywhere in the project.
Logs
OmniSharp log
Environment information
VSCode version: 1.33.1
C# Extension: 1.19.0
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.203 Commit: e5bab63ecaRuntime Environment:
OS Name: ubuntu
OS Version: 18.10
OS Platform: Linux
RID: ubuntu.18.10-x64
Base Path: /usr/share/dotnet/sdk/2.2.203/
Host (useful for support):
Version: 2.2.4
Commit: f95848e524
.NET Core SDKs installed:
2.2.203 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: