C
C#17mo ago
jefff

❔ Trying to setup C# environment for first time. Debian linux

distro: Debian 12 I installed .net stuff using these instructions: https://learn.microsoft.com/en-us/dotnet/core/install/linux-debian I installed monodevelop using these instructions: https://www.monodevelop.com/download/#fndtn-download-lin-debian (latest version was for debian 10, so i installed that) i made new .NET core project from console app template Opening this new project, without running anything i get this message in "Package Console": /usr/share/dotnet/sdk/7.0.306/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,38) : error MSB4236: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. Unable to create package spec for project. '/home/ade/Projects/test-amongus/test-amongus/test-amongus.csproj' What do?
Install .NET on Debian - .NET
Demonstrates the various ways to install .NET SDK and .NET Runtime on Debian.
47 Replies
Thinker
Thinker17mo ago
Any specific reason you're using Monodevelop...?
jefff
jefffOP17mo ago
its open source and its an ide, the last time i used it i quite liked it and also you can do visual gui (drag and drop gui elements).
jefff
jefffOP17mo ago
the visual gui stuff im talking about is demonstrated here: https://youtu.be/cURfH1k7ZvE?t=58
Astero-21
YouTube
How to draw a text using Cairo library, c#, gtk, MonoDevelop
Writing a text using basic functions of library
Thinker
Thinker17mo ago
afaik Monodevelop is quite old and unsupported, but you do you ig
jefff
jefffOP17mo ago
so you say that error was cause bc monodevelop is unmaintained?
Thinker
Thinker17mo ago
not that's unrelated what does your csproj file look like?
jefff
jefffOP17mo ago
wait a min <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp1.1</TargetFramework> </PropertyGroup> </Project> "Exe" thats 4 windows
Thinker
Thinker17mo ago
netcoreapp1.1?? Try net7.0 since it seems like you have that installed
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Thinker
Thinker17mo ago
also try running dotnet build manually
jefff
jefffOP17mo ago
okay
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
tnx
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
dotnet --info
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
.NET SDK: Version: 7.0.306 Commit: f500069cb7 Runtime Environment: OS Name: debian OS Version: 12 OS Platform: Linux RID: debian.12-x64 Base Path: /usr/share/dotnet/sdk/7.0.306/ Host: Version: 7.0.9 Architecture: x64 Commit: 8e9a17b221 .NET SDKs installed: 7.0.306 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 7.0.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 7.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Other architectures found: None Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/download
dotnet command - .NET CLI
Learn about the dotnet command (the generic driver for the .NET CLI) and its usage.
Microsoft
.NET Downloads (Linux, macOS, and Windows)
Official .NET downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
jefff
jefffOP17mo ago
bruh xdddd
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
thanks means that i just wanted to ask how to check .info version
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
its still not building
Thinker
Thinker17mo ago
just net7.0
jefff
jefffOP17mo ago
ah ok
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
nope, not building
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Thinker
Thinker17mo ago
Yeah if you did dotnet new console -n "sus" then you'd get a new .NET 7 project, seems like Monodevelop created a .NET Core 1.1 project because that's the latest it supports.
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
what tfm means? also thanks
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
again
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
jefff
jefffOP17mo ago
ehh still not building, even with new project
Thinker
Thinker17mo ago
what's the error?
jefff
jefffOP17mo ago
same is vscode viable? for c#
Thinker
Thinker17mo ago
are you actually running dotnet build? yeah kinda
jefff
jefffOP17mo ago
oh, no
Thinker
Thinker17mo ago
It's not as good as say Rider, but with the recent C# Dev Kit extension it's completely fine It's basically Visual Studio "lite" now
jefff
jefffOP17mo ago
dotnet build works it seems does Rider have this visual gui stuff i mentioned? here i mean its not nessecary, i think its nicer that coding ui
Thinker
Thinker17mo ago
I don't think so? Depends on what GUI stuff you want obviously WinForms and WPF are... Windows-exlusive You mean like Avalonia?
jefff
jefffOP17mo ago
i have no idea what either of those mean googling...
Thinker
Thinker17mo ago
I mean you said "GUI stuff" so I assumed you knew about some GUI libraries
jefff
jefffOP17mo ago
not for c# tbh well, thanks for help anyways, man ill be using vscode from now on with dotnet command to build stuff i guess or woman.. lol
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server