AzureDevOps add environment variable
My application is successfully builded in my local computer , but when i try to build it via azureDevOps piplines for test, preprod and prod environments i got this error
##[error]C:UsersVssAdministrator.nugetpackages2.2.0buildnetstandard2.0Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(79,5): Error MSB4018: The "RazorTagHelper" task failed unexpectedly.
I searched for this error and find out that to fix this it has to be added environment variable,
" The fix for me was to introduce a new Environment Variable with the Key "DOTNET_HOST_PATH" and the value "dotnet" and then to restart Visual Studio. " - this is from stackoverflow.
So how can i add environment variable to azuredevops pipeline? Or i have to add it to the azure service in which my apps are deployed?

