dotnet / dotnet/core

Unexpected behaviour after Resharper Comamnd Line tools installation on Ubuntu 20.04 LTS WSL

Open
#6,188 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

### Description
`dotnet tool run jb.exe` and `dotnet tool run jb` fail with the following errors respectively:
```Cannot find a tool in the manifest file that has a command named 'jb.exe'.
Cannot find a tool in the manifest file that has a command named 'jb'.
```
after global NET Core tool installation as written [here](https://www.jetbrains.com/help/resharper/ReSharper_Command_Line_Tools.html#install-and-use-resharper-command-line-tools-as-net-core-tools).

### Configuration
`dotnet tool list -g` outputs:
```
Package Id Version Commands
-----------------------------------------------------------
jetbrains.resharper.globaltools 2021.1.2 jb
```

I use .NET 5:
```
.NET SDK (reflecting any global.json):
Version: 5.0.202
Commit: db7cc87d51

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/5.0.202/

Host (useful for support):
Version: 5.0.5
Commit: 2f740adc14

.NET SDKs installed:
5.0.202 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
```
on Ubuntu 20.04 LTS (WSL):
```
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
```

### Regression?

### Other information

Also I want note that on the following C# code:
```C#
using System;

namespace ProgramTemplateGenerator
{
internal static class Program
{
private static void Main(string[] args)
{
if (args.Length == 0)
return;
}
}
}
```
`jb.exe inspectcode ProgramTemplateGenerator.sln -o=jboutput.xml` command outputs many errors in jboutput.xml file:
```xml


ProgramTemplateGenerator.sln

Solution





















```
and prints `Warning: Invalid URI: The hostname could not be parsed.` warning.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.