hanu
hanu
CC#
Created by hanu on 12/18/2023 in #help
csharp-ls cannot locate .net
$ dotnet tool list -g
Package Id Version Commands
--------------------------------------
csharp-ls 0.10.0 csharp-ls

$ dotnet --info
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: linux-x64
Base Path: /home/hanu/.dotnet/sdk/8.0.100/

.NET workloads installed:
Workload version: 8.0.100-manifests.6c33ef20
There are no installed workloads to display.

Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71

.NET SDKs installed:
8.0.100 [/home/hanu/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [/home/hanu/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [/home/hanu/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
/home/hanu/repos/csharp-language-server/global.json

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

$ csharp-ls
You must install .NET to run this application.

App: /home/hanu/.dotnet/tools/csharp-ls
Architecture: x64
App host version: 8.0.0
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=linux-x64&os=ubuntu.22.04&apphost_version=8.0.0
$ dotnet tool list -g
Package Id Version Commands
--------------------------------------
csharp-ls 0.10.0 csharp-ls

$ dotnet --info
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: linux-x64
Base Path: /home/hanu/.dotnet/sdk/8.0.100/

.NET workloads installed:
Workload version: 8.0.100-manifests.6c33ef20
There are no installed workloads to display.

Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71

.NET SDKs installed:
8.0.100 [/home/hanu/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [/home/hanu/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [/home/hanu/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
/home/hanu/repos/csharp-language-server/global.json

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

$ csharp-ls
You must install .NET to run this application.

App: /home/hanu/.dotnet/tools/csharp-ls
Architecture: x64
App host version: 8.0.0
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=linux-x64&os=ubuntu.22.04&apphost_version=8.0.0
I have csharp-ls and dotnet installed but csharp-ls does not start. What is the problem?
27 replies
CC#
Created by hanu on 2/9/2023 in #help
❔ What is the recommended way to read excel(*.xlsx) files?
in .NET Framework 4.8. I don't need any info of fonts, colors, styles, or anything else; i only need the texts i get when i convert excel into CSV. thanks!
24 replies
CC#
Created by hanu on 11/2/2022 in #help
omnisharp-vim doesn't recognize record
1 replies
CC#
Created by hanu on 11/2/2022 in #help
What is the most common way to distribute .NET 6 application to general people?
If I make my application with .NET 6, i think i should public them with self-contained option, which significantly grows the size of the files i share, so that other people to use my app, because .NET 6 is not included in Windows updates. Is this the right way to distribute my app, or is there a better way that i can reduce the file size?
10 replies
CC#
Created by hanu on 10/22/2022 in #help
Asking for an advice to apply Wpf.Ui on a existing WPF project
Wpf.Ui https://github.com/lepoco/wpfui I'm trying to apply this to my existing WPF project that contains a considerable amount of codes and styles defined. Should I 1) make a new project and migrate each control and piece of code or 2) apply Wpf.Ui to the original project?
1 replies
CC#
Created by hanu on 10/21/2022 in #help
in vs2022, what is the shortcut for commenting xaml?
title
55 replies
CC#
Created by hanu on 10/21/2022 in #help
changing system(OS) font using code
1 replies
CC#
Created by hanu on 10/19/2022 in #help
How to find the implementation of Math. functions
I think i've heard mathematical functions of System.Math is implemented in external libraries written in a different language (maybe c/c++?) i'm curious if i can see those implementations and if can, i wanna know how.
9 replies
CC#
Created by hanu on 10/8/2022 in #help
What's the meaning of CS0659?
'class' overrides Object.Equals(object o) but does not override Object.GetHashCode()
'class' overrides Object.Equals(object o) but does not override Object.GetHashCode()
I got this warning message but i cannot find what's the reason I should override GetHashCode. Also, how should I implement it?
30 replies
CC#
Created by hanu on 10/8/2022 in #help
Most convenient method to handle 3D vectors?
I'm looking for a struct/class in which magnitude(L2 norm), normalize, multiplication with a scalar, and dot product are implemented. Thank you.
16 replies
CC#
Created by hanu on 9/21/2022 in #help
A way to get an integer input quickly?
Recently i'm trying to do competitive programming with C# and i'm curious if there's a way to get an (array of) integer input. The method I all know is this
// for an array of integers
int[] arrayInput = Console.ReadLine().Split(' ').Select(Int32.Parse).ToArray()
// for one integer
int singleInput = Int32.Parse(Console.ReadLine())
// for an array of integers
int[] arrayInput = Console.ReadLine().Split(' ').Select(Int32.Parse).ToArray()
// for one integer
int singleInput = Int32.Parse(Console.ReadLine())
11 replies