C# C# Streams and Data Processing Serialization Soccer Player Data

Kyaw Tun Sein
Kyaw Tun Sein
2,291 Points

There is no 'paste Json as Classes' in paste special of my visual studio. What to do?

I can only see paste XML as classes.

5 Answers

Kyaw Tun Sein
Kyaw Tun Sein
2,291 Points

Solved! Just need to install Microsoft Web Development Tools.

evanpavan
evanpavan
4,485 Points

For anyone using an editor other than visual studio there's a free application that parses JSON into 'types'.

I used this to paste the types into VS code.

https://app.quicktype.io/

Kevin Gates
Kevin Gates
14,707 Points

Make sure you're attempting to paste from the Edit menu. If you just right-click what you've highlighted, you will not get the "Paste Special" option. You must go to Top Menu -> Edit -> Paste-Special -> Paste JSON as Classes.

The above is at least true for Visual Studio 2017 Developer Edition. (She's using Community edition, so it should work there too.)

I am doing what you say here, but there just is no Paste Special option listed under edit. All I see is Paste and Cycle Clipboard Ring (whatever that means). Also if you have to have Microsoft Web Development Tools installed, how do you do that?

Kevin Gates
Kevin Gates
14,707 Points

Emma Wyman : try going to Tools -> Get Tools and Features, and make sure you have libraries added for web development. Not 100% sure if it's there, but I would look there first.

Christian Higgins
Christian Higgins
15,710 Points

Kyaw Tun Sein , Kevin Gates, and Emma Wyman, do you know if Microsoft Web Development Tools. is Workload or an Individual Component on the installation wizard? I'm having trouble finding it.

Is this for mac or windows? I'm in Community Edition. I've uninstalling and reinstalling nothing works. Where are these mythical Development Tools for mac? I can't find anything from 2019 with an actual solution to this problem! Are there step by step instructions...FOR MAC?

I am using the mac edition of visual studio and there is no paste special. Anyone knows??

Did you ever find a solution?

Thomas Swatland
Thomas Swatland
13,530 Points

I'm having the same issue as Erdem. Any ideas?

Kevin Gates
Kevin Gates
14,707 Points

Thomas Swatland : did you see my answer above?