Getting the "Visual Studio Debug Engine Sample" running in Visual Studio 2017? - c#

I'm trying to get the Visual Studio Debug Engine Sample running in 2017 Professional.
When I'm debugging according to the Walkthrough1.docx I can't see the Tools->Project Launcher menu.
The ProjectLauncherPackage doesn't seem to be loaded since my breakpoints is whited out.
This is what I did to make it work so far:
Updated the Windows SDK Version in the SampleEngineWorker;
Added
DiaStackWalkHelper::numberOfFunctionFragmentsForVA
DiaStackWalkHelper::functionFragmentsForVA
SymbolEngine::NumberOfFunctionFragmentsForVA
SymbolEngine::FunctionFragmentsForVA
Changed SampleEngine and ProjectLauncher to be x86
Updated source.extension.vsixmanifest
Install targets to 15,16
Dependencies to Visual Studio MPF 15.0
Added Microsoft.VisualStudio.Shell.Framework version 15 from nuget.

Related

Visual studio 2022 hangs on Debug.Launch()

Summary:
The problem is when I launch an app which has Debug.Launch() with a new instance of visual studio 2022 [17.4.3] or visual studio 2022 Preview [17.5.0 Preview 2.0] it hangs forever. Same for visual studio 2019 [16.11.22]. I originally had it in source generator [build time]. So then I tested it with a console application as well to see if I get the same result (which I do get).
Steps:
Create Console App.
Add the following lines :
#if DEBUG
if(!Debugger.IsAttached) Debugger.Launch();
#endif
Build the solution (in Debug).
Start exe from debug folder.
Try to open with new instance of visual studio 2022.
Visual studio hangs forever.
I also opened the following ticket.
Already tried the following:
Restart Pc
Deleted vs Folder
Repair Visual Studio (twice)
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow
Microsoft .NET Framework Repair Tool
Turn windows feature on or off => .NET Framework options turned off and back on (with restarting)
Restored pc-image to version when it was working => still fails
Copying folder to VM and installing latest Visual Studio 2022 and running it there. => Also fails
After installing an older version of visual studio (Visual Studio 2022 [17.3.6] Professional) I could open open the console.exe with Debug.Launch(). And the hanging was resolved.
Since you can't install an older community version of visual studio you need to install a professional version.
You can download it from here Microsoft release history.

Is there a way to use monogame 3.2 on visual studio 2015

I have only a computer with 32 bit based windows and can't run versions of monogame higher than 3.2. To install monogame 3.2 I need visual studio 2013 or 2010 but I have 2015 and have not enough space to install 2013. Is there a way to install the templates of monogame 3.2 on visual studio 2015
First off: you're not getting the new Content Pipeline, so you will have harder time with building content, especially as you can't offload that to XNA either. The templates have nothing too magical, and you could manage with normal projects, just adding the assembly references and the Game class.
Now, to answer the question... Looking at the installer source code, I think the following workaround might work:
Go to your Documents folder. There should already be a folder named Visual Studio 2015.
Create the following folder tree: Visual Studio 2013\Templates\ProjectTemplates\Visual C#
Run the installer. You should now be able to install Visual Studio 2013 templates.
Go to the folder you created in step 2. There should now be a folder named MonoGame.
Copy that folder to the Visual Studio 2015\Templates\ProjectTemplates\Visual C# folder.
You should now see the templates in Visual Studio 2015.

Cant find Visual Studio Installer Projects on Visual Studio 2013

After finishing my C# application I had to make an installer. After seeing that the default installer projects are gone, i searched for a replacement.
I found the Visual Studio Installer Projects. I downloaded the file from here: https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d.
When i restarted Visual Studio, opened my project, clicked "add new project" and here is what I got:
Problem is that I cant find the setup project. I have tried repairing the install. I restarted Visual Studio several times.
My Question:
How can I find the installer project and why it's not working for me.
If I cant make it work, are there any alternatives ? (except InstallShield)
Additional info:
Visual Studio 2013 Community with update 4
Windows 8.1 64-bit
You could try Tools > Extensions and Updates and search for it:
Visual Studio setup projects no longer ship with Visual Studio
However, you can download them here.
Or use a third party library like WiX.
I had the same problem and it turns out that visual studio removed the support for installer projects in 2010.
but still you can download and install it in your version
VS2013
VS2015
VS2017

Monogame 3.2 in Visual Studio 2013 doesn't work?

I've already edited the vstemplate file to change the version number from 11.0 to 12.0 like the answer to a similar question says on here, but that only makes Visual Studio crash after a create a Windows Store XAML Monogame project instead of giving me the version error. The project ends up getting created, but after I restart visual studio it doesn't want to open any of the source files even after I retarget the project to Windows 8.1. Im using visual studio 2013 express btw.
After a lot of problems, I found a better way of getting it to work.
First install Visual studio 2013 (or 2012, that will work too)
Download XNA 4.0 Refresh and install it
Download MonoGame 3.2 and install it
Then you can start using the MonoGame templates in Visual Studio without problems.
Haven't tried it for a Store app, but it fixed all my other problems with Visual Studio 2013 and MonoGame. I used Visual Studio 2013 Express for Desktop to test it.

No Windows Game option in XNA 4.0 VS2012

I installed XNA 4.0 and used this method:
How to install XNA game studio on Visual Studio 2012?
to access XNA in vs2012.(I installed VC# 2010 express first.)
Everything went fine, I could even open XNA game project and ran.
But the new project menu did not show the Windows Game and Xbox360 Game option.
Why are they missing?
XNA is officially only supported on Visual Studio 2010.
XNA Game Studio 4.0 Refresh leverages the Microsoft Visual Studio 2010 development environment, extending it for game development. XNA Game Studio 4.0 Refresh works with any of the following Microsoft Visual Studio 2010 products.
Microsoft Visual Studio 2010 Express for Windows Phone
Microsoft Visual C# 2010 Express Edition
Microsoft Visual Studio 2010 Professional Edition
http://msdn.microsoft.com/en-us/library/bb203916.aspx
There are some tricks to "tweak" the XNA templates to work in Visual Studio 2012 and 2013.
(For Windows 8 users) Install Games for Windows Live client. You just need to install it, no further input is required.
Install Visual Studio 2013 or 2012
Install Windows Phone SDK 7.1
This will install VS 2010 Express for Windows Phone and, with it, XNA
If by some reason the XNA installation fails, reinstall
Alternatively, you can install any Visual Studio 2010 and XNA standalone
Copy XNA from VS2010 to VS2013
Copy the folder named XNA Game Studio 4.0 from “C:\Program Files (x86)\Microsoft Visual Studio 10.0\common7\ide\extensions\Microsoft” to
For VS2013 C:\Program Files (x86)\Microsoft Visual Studio 12.0\common7\ide\extensions\Microsoft
For VS2012 C:\Program Files (x86)\Microsoft Visual Studio 11.0\common7\ide\extensions\Microsoft
Open the extension.vsixmanifest file with your favourite text editor (with Administrator privileges), inside the copied XNA Game Studio 4.0 folder
Change the supported Visual Studio version
Change this: <VisualStudio Version=”10.0″> to
For VS2013: <VisualStudio Version=”12.0″>
For VS2012: <VisualStudio Version=”11.0″>
Tell VS to rebuild the Extensions cache
Run this command (Win+R):
For VS2013 “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe” /setup
For VS2012 “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe” /setup
If you get an error doing this, run it in a Command Prompt with Administrator privileges
This isn’t always necessary, specially if you have just installed Visual Studio
http://dementedvice.wordpress.com/2013/10/21/let-me-explain-install-xna-on-visual-studio-2013-and-2012/
I reinstalled and it's fixed.
I think it's the installation path that causes this problem. VS2010 and VS2012 should be installed on the same disk. I have VS2012 installed on D:\Program Files (x86)\Microsoft Visual Studio 11.0 and VS2010 reinstalled on D:\Program Files (x86)\Microsoft Visual Studio 10.0 not the default C:\Program Files (x86)\Microsoft Visual Studio 10.0. Then install and copy XNA with the same old trick.
Don't know why is that but it works like a charm.
MonoGame is fine but it still needs support from XNA Content pipeline.

Categories