2

I've tried looking for System.Deployment to use this code in my Blazor Server application: enter image description here

But System.Deployment is not in my project system, nor in the available Project References, I looked on Google to find a downloadable .dll link and Microsoft doesn't seem to have it. What am I missing? I've tried using System.Deployment and using System.Deployment.Application, neither works.

My project references, available libraries

Zecret
  • 360
  • 1
  • 4
  • 19
  • If I try to change the framework version to .NET Core/.NET 5+ on the documentation, it says the class isn't available. It looks to be a .NET Framework-only thing: https://learn.microsoft.com/en-us/dotnet/api/system.deployment.application.applicationdeployment?view=netframework-4.8&viewFallbackFrom=net-6.0 – ProgrammingLlama Apr 02 '22 at 16:17
  • System.Deployment is part of .NET _Framework_, so is not available for use with .NET _Core_ for Blazor applications. – Martin Costello Apr 02 '22 at 16:17
  • I see, so is there an alternative way of getting the assembly version to use in my code? – Zecret Apr 02 '22 at 16:20
  • Does this answer your question?: https://stackoverflow.com/questions/36351866/getting-the-version-of-my-c-sharp-app – ProgrammingLlama Apr 02 '22 at 16:24

1 Answers1

1

Just reference the "FrameworkExtract.System.Deployment" nuget to your project.

Have a nice day,

Fox TheOne
  • 11
  • 1