Forum Discussion
can not import Teams PowerShell module in .net core 3.1
Nivedipa-MSFT
Thanks for you response. From the link you provided, it seems that I need to install the PowerShell 6.0 or above, In my windows server, I have both installed the PowerShell 5.1 and PowerShell 7.1.5, and I used VS 2019, .net core 3.1 to try to import the teams module, I can import the teams module in PowerShell 5.1 desktop and PowerShell 7.1.5 desktop, but when I used the same script to import the teams module in VS 2019, it can't be imported. I can get the moduleinfo from Test-ModuleManifest, but when I used the moduleinfo to import, there is nothing. can you help to provide some suggestions?
Any update on this?
- Nivedipa-MSFTOct 28, 2021
Microsoft
We are checking on this , we will get back to you once we get any update.
- Nivedipa-MSFTNov 02, 2021
Microsoft
Could you please check below document.In document its already mention that for installing microsoft teams module use .NET Framework 4.7.2 or later.
Install Microsoft Teams PowerShell - Microsoft Teams | Microsoft Docs- huaNov 03, 2021Copper Contributor
Nivedipa-MSFT
I have checked my environment, I have installed the .NET Framework 4.7.2. and because I used .net core 3.1 in my project ,so this issue shouldn't be related to .NET Framework version.
it is the information below in my environment:
Windows: Windows Server 2012 R2 Datacenter
.NET Framework: 4.7.2
PowerShell: 5.1 and 7.0.8
.NET Core: 3.1.101 and 5.0.402
VS(Project used): Microsoft Visual Studio Enterprise 2019 Version 16.11.5
Microsoft.PowerShell.SDK(Project used): 7.0.8
.NET Core(Project used): netcoreapp3.1Looking forward to your reply