C
C#10mo 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
JasieK10mo ago
@SY i have it downloaded.
𝔄ℑ𝔇𝔈𝔑
install this this one is different
JasieK
JasieK10mo ago
okay, one sec okay i downloaded it the issue still seems to be there
𝔄ℑ𝔇𝔈𝔑
what is ur net ?
JasieK
JasieK10mo ago
4.7.2
𝔄ℑ𝔇𝔈𝔑
this require net 8.0
JasieK
JasieK10mo 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