You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new function which checks for the proper version of dotnet
This will improve the experience when the wrong version of dotnet is present by creating an error very early on in the process with a better error message
Now the developer will see something similar to the following:
```
PS /users/james/src/github/forks/JamesWTruher/PSScriptAnalyzer> ./build
Incorrect dotnet version: have '2.1.403' need '2.2.102'
At /users/james/src/github/forks/JamesWTruher/PSScriptAnalyzer/build.psm1:137 char:9
throw 'Incorrect dotnet version: have '' need ' ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : OperationStopped: (Incorrect dotne... need '2.2.102':String) [], RuntimeException
FullyQualifiedErrorId : Incorrect dotnet version: have '2.1.403' need '2.2.102'
```
0 commit comments