11-10-2023, 06:37 AM
(This post was last modified: 11-10-2023, 06:48 AM by kangdy818.
Edit Reason: translation
)
Hello.
When building the RoboDK C# API,
There are some errors related to Registry Key and some other errors, so I would like to know how to solve them.
Severity code description Project file line non-display error (suppression) status
Error CS0103 The name 'RegistryKey' does not exist in the current context. RoboDkApi (netcoreapp3.1) C:\Tools\RoboDK-API-master\C#\API\RoboDK.cs 445
Severity code description Project file line non-display error (suppression) status
Error CS0103 The name 'RegistryHive' does not exist in the current context. RoboDkApi (netcoreapp3.1) C:\Tools\RoboDK-API-master\C#\API\RoboDK.cs 445
Severity code description Project file line non-display error (suppression) status
Error CS0103 The name 'RegistryView' does not exist in the current context. RoboDkApi (netcoreapp3.1) C:\Tools\RoboDK-API-master\C#\API\RoboDK.cs 445
Severity code description Project file line non-display error (suppression) status
Error NETSDK1005 The asset file 'C:\Tools\RoboDK-API-master\C#\API\obj\project.assets.json' does not have a target of 'net6.0-window'. Make sure that the restore has been executed and that 'net6.0-windows' is included in the Target Frameworks of the project. RoboDkApi C:\Program Files\dotnet\sdk\7.0.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 266
The VisualStudio is using 2022 version,
The framework is using net45,
The registry is using Microsoft.Win32.Registry 4.7.0.
Help me Please!
-JuYung Kang
When building the RoboDK C# API,
There are some errors related to Registry Key and some other errors, so I would like to know how to solve them.
Severity code description Project file line non-display error (suppression) status
Error CS0103 The name 'RegistryKey' does not exist in the current context. RoboDkApi (netcoreapp3.1) C:\Tools\RoboDK-API-master\C#\API\RoboDK.cs 445
Severity code description Project file line non-display error (suppression) status
Error CS0103 The name 'RegistryHive' does not exist in the current context. RoboDkApi (netcoreapp3.1) C:\Tools\RoboDK-API-master\C#\API\RoboDK.cs 445
Severity code description Project file line non-display error (suppression) status
Error CS0103 The name 'RegistryView' does not exist in the current context. RoboDkApi (netcoreapp3.1) C:\Tools\RoboDK-API-master\C#\API\RoboDK.cs 445
Severity code description Project file line non-display error (suppression) status
Error NETSDK1005 The asset file 'C:\Tools\RoboDK-API-master\C#\API\obj\project.assets.json' does not have a target of 'net6.0-window'. Make sure that the restore has been executed and that 'net6.0-windows' is included in the Target Frameworks of the project. RoboDkApi C:\Program Files\dotnet\sdk\7.0.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 266
The VisualStudio is using 2022 version,
The framework is using net45,
The registry is using Microsoft.Win32.Registry 4.7.0.
Help me Please!
-JuYung Kang