❔ 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
Any specific reason you're using Monodevelop...?
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).
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
afaik Monodevelop is quite old and unsupported, but you do you ig
so you say that error was cause bc monodevelop is unmaintained?
not that's unrelated
what does your csproj file look like?
wait a min
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
</Project>
"Exe" thats 4 windows
netcoreapp1.1
??
Try net7.0
since it seems like you have that installedUnknown User•17mo ago
Message Not Public
Sign In & Join Server To View
also try running
dotnet build
manuallyokay
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
tnx
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
dotnet --info
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
.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.
bruh
xdddd
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
thanks means that i just wanted to ask how to check .info version
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
its still not building
just
net7.0
ah ok
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
nope, not building
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
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•17mo ago
Message Not Public
Sign In & Join Server To View
what tfm means?
also thanks
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
again
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ehh still not building, even with new project
what's the error?
same
is vscode viable?
for c#
are you actually running
dotnet build
?
yeah kindaoh, no
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
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
I don't think so? Depends on what GUI stuff you want
obviously WinForms and WPF are... Windows-exlusive
You mean like Avalonia?
i have no idea what either of those mean
googling...
I mean you said "GUI stuff" so I assumed you knew about some GUI libraries
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
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.