We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da52f65 commit 07811c7Copy full SHA for 07811c7
packages/core/src/tasks/post-install.ts
@@ -1,10 +1,9 @@
1
-import { DotNetClient, dotnetFactory } from '@nx-dotnet/dotnet';
+import { execSync } from 'child_process';
2
3
try {
4
- const client = new DotNetClient(dotnetFactory());
5
- const sdkVersion = client.printSdkVersion();
+ const version = execSync('dotnet --version').toString('utf-8').trim();
6
console.info(
7
- `[nx-dotnet] .NET SDK ${sdkVersion} will be used for .NET CLI commands`,
+ `[nx-dotnet] .NET SDK ${version} will be used for .NET CLI commands`,
8
);
9
} catch {
10
console.warn(`[nx-dotnet] [WARN] .NET SDK NOT FOUND`);
0 commit comments