C
C#11mo ago
JasieK

C# Help.

My c# code has: using System.Management.Automation; however visual studio does not understand what Automation is and it gives me an error. Any ideas how to fix this issue?
10 Replies
𝔄ℑ𝔇𝔈𝔑
In case ur using linux u just have to run the command dotnet add package System.Management.Automation --version 7.4.0 In windows if ur using purple visual studio its inside project tab u can see option for nuget
JasieK
JasieKOP11mo ago
@SY i have it downloaded.
𝔄ℑ𝔇𝔈𝔑
install this this one is different
JasieK
JasieKOP11mo ago
okay, one sec okay i downloaded it the issue still seems to be there
𝔄ℑ𝔇𝔈𝔑
what is ur net ?
JasieK
JasieKOP11mo ago
4.7.2
𝔄ℑ𝔇𝔈𝔑
this require net 8.0
JasieK
JasieKOP11mo ago
How do i fix the issue then?
𝔄ℑ𝔇𝔈𝔑
just create a new console and make sure it uses .NET8.0
Want results from more Discord servers?
Add your server