Open Visual Studio Project in Terminal on Mac - c#

My Visual Studio Preview has expired and I can't seem to get a new one for my app. Is there any way I can start it from my terminal without opening Visual Studio?

You can install Visual Studio Community to continue developing in it. When you have visual studio build tools installed, you can compile and run it through the console via msbuild.

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.

unable to start debugging. failures to process configuration file

when I want start my project in vs 2019 i see this error:
unable to start debugging.failures to process configuration file. try to start this application. if failures continue, try to repair your installation.
I tested in windows form application, console application and asp Core.
My project will be built but will not start from visual studio 2019.
I repair and update vs 2019 but also I have this error
Because Visual Studio is installed by an online installer, you will often run into problems. It is better to install Visual Studio with an authorized IP or find a full version of it without the need for online installation. You can reinstall vs
This error was due to incomplete installation of Visual Studio. Repair, update, or reinstall Visual Studio to resolve this issue.

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