Giter Club home page Giter Club logo

Comments (9)

BrandonPotter avatar BrandonPotter commented on September 13, 2024

We need to do some work to build this library for more targets in NuGet. For now, you can likely download the source and just add the project to your solution, it's pretty simple (no pun intended)...

from simpletcp.

itsmebhavin avatar itsmebhavin commented on September 13, 2024

Sure , thank you for your prompt reply. As of now i will add project ref.

from simpletcp.

itsmebhavin avatar itsmebhavin commented on September 13, 2024

Sure , thank you for your prompt reply. As of now i will add project ref.

from simpletcp.

itsmebhavin avatar itsmebhavin commented on September 13, 2024

@BrandonPotter Even with adding project source code into solution, I am not able to use SimpleTCP with my 3.5 based project as SimpleTCP is targeted to 4. I am getting following error -

Severity	Code	Description	Project	File	Line	Suppression State
Warning		The primary reference "{path}\SimpleTCP\SimpleTCP\bin\Release\SimpleTCP.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5". To resolve this problem, either remove the reference "{path}\SimpleTCP\SimpleTCP\bin\Release\SimpleTCP.dll" or retarget your application to a framework version which contains "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".

Severity	Code	Description	Project	File	Line	Suppression State
Warning		The referenced project 'SimpleTCP' is targeting a higher framework version (4.5) than this project’s current target framework version (3.5). This may lead to build failures if types from assemblies outside this project’s target framework are used by any project in the dependency chain.	

Please let me know if there is any solution or a way i can use TCP Server in 3.5 .NET app.
Thanks.

from simpletcp.

BrandonPotter avatar BrandonPotter commented on September 13, 2024

Did you right click the SimpleTCP project and change the framework version to something that matches yours?

I don't think there's a whole lot in SimpleTCP that wouldn't work in 3.5.

from simpletcp.

BrandonPotter avatar BrandonPotter commented on September 13, 2024

Right click SimpleTCP > Properties, rather

from simpletcp.

itsmebhavin avatar itsmebhavin commented on September 13, 2024

@BrandonPotter I tried setting target f/w to 3.5 in your project but it's not compiling in that case. here is whole trace from compilation -

The type 'SimpleTCP.Message' cannot be used as type parameter 'TEventArgs' in the generic type or method 'EventHandler<TEventArgs>'. There is no implicit reference conversion from 'SimpleTCP.Message' to 'System.EventArgs'.	SimpleTCP	D:\SimpleTCP\SimpleTCP\SimpleTcpClient.cs

The type or namespace name 'Concurrent' does not exist in the namespace 'System.Collections' (are you missing an assembly reference?)	SimpleTCP	D:\Projects\Arkansas-Git\MOVE\SimpleTCP\SimpleTCP\SimpleTcpServer.cs


from simpletcp.

itsmebhavin avatar itsmebhavin commented on September 13, 2024

Issue is fixed by modifying some code compatible to 3.5. Thanks.

from simpletcp.

g82perinet avatar g82perinet commented on September 13, 2024

Did you right click the SimpleTCP project and change the framework version to something that matches yours?

I don't think there's a whole lot in SimpleTCP that wouldn't work in 3.5.

Right click SimpleTCP > Properties, rather

Hello Brandon Potter, Thanks for great work.
Well, it will seem paradoxal but for me, it works with a project targetting .NetCore 3.0 but it does not work with another project targetting .NetFramework 4.0. On one hand, if I use the one based on .NetCore 3.0, I can use TCP but no chart (like System.Windows.Controls.DataVisualization.Charting) on the other hand, if I use .NETFramework V4.0, I am allowed to use charts but no TCP functionality.
Right click on SimpleTCP > Properties? There is no such thing available in the NuGet window...
What am I missing?

Thank you again.

from simpletcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.