Azure DevOps UseDotNet@2 doesn't set dotnet commands after it

Brett McDonald 1 Reputation point
2021-01-03T18:05:45.623+00:00

Azure DevOps UseDotNet@2 I set it to use .Net 3.1. It seems to install the version but then further DotNet commands do not use 3.1. They use 5.0 which I also use.

What I want is to be able to set which version of .Net is used for each pipeline. I have some that are 5.0 (Blazor) then 3.1 (Azure Functions).

I thought I could just use UseDotNet@2 that would sent 3.1 and it would use 3.1 for the rest of the pipeline. Am I missing something? Do I need to put something on the DotNetCoreCLI@2 tasks? Does the UseDotNet@2 just install?

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-01-03T18:15:17.237+00:00

    Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.