Insert JSON as class gone from VS2017? - visual-studio-2017

maybe I'm being stupid but why the hell is the Visual Studio 2017 option Edit>Paste Special>Insert JSON as class gone? I still have the XML option but JSON is gone?
Must've disappeared with an update? Why?

Turns out it's a feature of ASP.NET, gotta make sure you're in an ASP.NET project

Related

Error when trying to create a new empty controller: 'Sequence contains no matching element'

SOLVED?: I had originally changed the directory of the new project from the default (which is inside users -> yourusername -> source -> repos) to my desktop. Moving the folder back into the repos solved the issue + I ran Visual Studio 2017 as an admin also. I'm not gonna pretend to know why these solved the issue, so if anybody could enlighten me, I would really appreciate it.
I'm following a UDemy course: ASP.NET CORE MVC 2.0, and i'm using Visual Studio Community 15.8.1
When I right click the controllers folder and click add new controller, then click add new empty controller: The error I keep getting is: There was an error running the selected code generator: 'Sequence contains no matching element'
I was able to find 2 similar questions and solutions on the web. In both cases, there was some security software blocking some part of them building a new controller. But I'm not sure how to go about finding if my firewall is blocking some part of this process. Or maybe there is something else causing this.... Does anyone know the solution to this?
I had the same issue recently and found the problem was solved by running Visual Studio 2017 as Administrator.
Hope this helps if anyone else finds the problem.
Visual Studio 2019 and .net core 3.0
Uninstalled: Microsoft.VisualStudio.Web.CodeGeneration.Design Version: 3.1.0-preview3.19558.8
and Installed: Microsoft.VisualStudio.Web.CodeGeneration.Design Version: 3.0.0
Solved the issue for me.
simply downgrade Microsoft.VisualStudio.Web.CodeGeneration.Design to Version: 2.1.9,
this solution worked for me.

Visual Studio 2017 - Not Able to see Publish Profiles

In my VS 2017, my publish profile is not being listed in the publish section of the VS 2017.
I can run the application with no error but I can't publish it or see and log file saying any error about when I do right click the project and click on publish. And also even if I wanted to create new profile VS just doesn't open create new profile window.
Any guess what might be causing this?
Just like #MikeB said, I checked that with XML validators on the web but then realized the problem was that I was using invalid XML tag and XML attributes in .pubxml after using the correct one problem was solved!
Check whether you are using your XML node and attributes correctly!
I've recently encountered this problem in VS 2019 with a project whose .pubxml profiles had been working fine and have not changed for quite a while.
The problem turned out to be a corrupted .pubxml.user file that was preventing VS from loading any profiles. The .pubxml.user files exist in the same directory as the .pubxml file and deleting them solved the issue for me.
I had the same issue. One of the .pubxml has conflict, after resolving the conflict(SVN) it worked.

Is it possible to create c++ project in the new visual studio code for mac?

Seems to be missing as a file type in new files, do I need to add some kind of extension or something? I know I can create .cpp files but I'm not sure how to build and run them with the gcc once I do. Documentation seems to be difficult to find, as the web is cluttered with VSCode docs, and VS for Windows docs.
Edit
I know you normally select it as a solution type. It is not available as a solution type.
I'm not really sure why people voted this down. The correct answer is no, you cannot create or run c++ projects in Visual Studio for macOS beta at this time.

Can't see boost::optional contents when debugging with Visual Studio

If I try to look at the variable directly, I see a ? sign. If I create a watch calling the is_initialized function, I get the following error:
CXX0033: Error: error in OMF type information
I didn't find much info about this error related to Boost using Google.
Anybody else experienced this? It's a hassle using OutputDebugString everywhere and rebuilding...
EDIT: Using Visual Studio 2010 SP1 with all hotfixes in Windows XP SP3 idem, and Boost 1.49.0
UPDATE: This issue comes and goes, it doesn't happen consistently; Debugger Visualizers are a great solution, I've adopted them as my brand new tool
You can use DebuggerVisualizers.
Use DebuggerVisualizers to make this transition:
Before
After
P.S. I tried to add these images to clarify the accepted answer but my edit was rejected.
Try this: for a variable boost::optional<Category> category, create a watch on: category.get()

Invalid Class String Error when creating C++ Project in Visual Studio 2008 with Vista x64

After going through this Problem (connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=329986) that was related with registry permissions, now again, Visual Studio comes with another error.
I have the same error as this guy, I have searched all the internet and it seems nobody has resolved it yet.
When I create a C++ Windows Forms Application, and want to see the "Design view" of the the default Form1, it just gives me this error:
Invalid Class String (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_Provider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32fReload)
I'm sorry if this has nothing to do with programming at all, but if someone has any opinions or comments, I would like to hear it.
Image at img12.imageshack.us/img12/8256/dibujowc.jpg
Sorry for the links, the system don't allow me to put hyperlinks
Well this hapend to me after i renamed feacp.dll in order to disable intellisense.
However, after re-enabling intellisense, all worked ok.