Azure / Azure/azure-iot-protocol-gateway
Not able to compile this in VS 2022
- Dominant language
- C#
- Stars
- 227
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
I am getting below error
Severity | Code | Description | Project | File | Line | Suppression State
-- | -- | -- | -- | -- | -- | --
Error | CS0234 | The type or namespace name 'IO' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) | ProtocolGateway.Providers.CloudStorage.NetStandard (netstandard1.4) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.Providers.CloudStorage\BlobSessionStatePersistenceProvider.cs | 12 | Active
Error | CS0246 | The type or namespace name 'RecyclableMemoryStreamManager' could not be found (are you missing a using directive or an assembly reference?) | ProtocolGateway.Providers.CloudStorage.NetStandard (netstandard1.4) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.Providers.CloudStorage\BlobSessionStatePersistenceProvider.cs | 20 | Active
Error | CS0006 | Metadata file '\\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.IotHubClient\bin\Debug\netstandard1.3\Microsoft.Azure.Devices.ProtocolGateway.IotHubClient.dll' could not be found | ProtocolGateway.Host.Common.NetStandard (netstandard1.3) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\host\ProtocolGateway.Host.Common\CSC | 1 | Active
Error | CS0006 | Metadata file '\\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.IotHubClient\bin\Debug\netstandard1.3\Microsoft.Azure.Devices.ProtocolGateway.IotHubClient.dll' could not be found | ProtocolGateway.Host.Console.NetStandard (netcoreapp1.1) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\host\ProtocolGateway.Host.Console.NetStandard\CSC | 1 | Active
Error | CS0006 | Metadata file '\\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\host\ProtocolGateway.Host.Common\bin\Debug\netstandard1.3\ProtocolGateway.Host.Common.dll' could not be found | ProtocolGateway.Host.Console.NetStandard (netcoreapp1.1) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\host\ProtocolGateway.Host.Console.NetStandard\CSC | 1 | Active
Error | CS1503 | Argument 1: cannot convert from 'System.Threading.CancellationToken' to 'System.TimeSpan' | ProtocolGateway.IotHubClient.NetStandard (netstandard1.3) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.IotHubClient\CommandReceiver.cs | 59 | Active
Error | CS1501 | No overload for method 'OpenAsync' takes 1 arguments | ProtocolGateway.IotHubClient.NetStandard (netstandard1.3) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.IotHubClient\IotHubBridge.cs | 112 | Active
Error | CS0246 | The type or namespace name 'RecyclableMemoryStreamManager' could not be found (are you missing a using directive or an assembly reference?) | ProtocolGateway.Providers.CloudStorage.NetStandard (netstandard1.4) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.Providers.CloudStorage\BlobSessionStatePersistenceProvider.cs | 20 | Active
Error | CS0246 | The type or namespace name 'RecyclableMemoryStream' could not be found (are you missing a using directive or an assembly reference?) | ProtocolGateway.Providers.CloudStorage.NetStandard (netstandard1.4) | \\Mac\Home\Documents\Projects\POC\azure-iot-protocol-gateway-master\src\ProtocolGateway.Providers.CloudStorage\BlobSessionStatePersistenceProvider.cs | 80 | Active
Warning | NETSDK1138 | The target framework 'netcoreapp1.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. | ProtocolGateway.Client.NetStandard | C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets | 28 |
Error | MSB3644 | The reference assemblies for .NETFramework,Version=v4.5.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks | ProtocolGateway.Core.NetStandard | C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets | 1220 |
Error | MSB3644 | The reference assemblies for .NETFramework,Version=v4.5.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks | ProtocolGateway.IotHubClient.NetStandard | C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets | 1220 |
Warning | NETSDK1138 | The target framework 'netcoreapp1.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. | ProtocolGateway.Host.Console.NetStandard | C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets | 28 |
Error | MSB3644 | The reference assemblies for .NETFramework,Version=v4.5.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks | ProtocolGateway.Providers.CloudStorage.NetStandard | C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets | 1220 |
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the solution build in Visual Studio 2022 and inspect BlobSessionStatePersistenceProvider.cs, CommandReceiver.cs, and IotHubBridge.cs alongside the affected ProtocolGateway projects. Done means the listed missing references, API errors, and target-framework build failures are resolved and the solution builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100