Hello @Yash89 ,
Welcome to Microsoft Q&A forum.
Please first try to remove NuGet cache by removing folders(packages) in C:\Users\username\.nuget\packages
. After that remove the hidden .vs folder, bin and obj folders in your project folder, and rebuild your project.
If it doesn’t work, please try to run all commands mentioned here(Clearing local folders) to clean NuGet cache again and then rebuild your project.
Please also open this folder %windir%\Microsoft.NET\assembly
and make sure that S7netplus
package isn’t included in any three folders(GAC_32, GAC_64, GAC_MSIL).
Besides, may I confirm several information with you to check further:
- Is your project based on .NET or .NET Framework? And could you share us the detailed version of the based framework for example .NET 7.0.
- Is there any other project included in your solution? And is there any reference between projects?
- Are you using the latest version of
S7netplus
package? - Did you install multiple versions of
S7netplus
package? - How did you use S7.Net.Plc in your project, is there any code snippet we can check further?
- Does this issue appear in a newly created project?
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.