I had created some Windows Form projects in C# by visual studio 2015 using DevExpressComponents and there was no problem. But after a while I reinstalled windows and visual studio and tried to run those projects again. But this time I faced with the error:
The "GenerateResource" task failed unexpectedly.
The previous answers could not solve my problem.
After a while searching I got the point.
At first when I was writing codes with DevExpressComponents and Visual Studio 2015 just after installing Visual Studio 2015 I installed update 1 for Visual Studio, and then wrote my codes with that.
But after intalling a fresh windows and Visual Studio, I forgot to install update 1 for Visual Studio and tried to open codes which were using Visual Studio update 1 and DevExpressComponents with the Visual Studio 2015 that was not updated and the was the cause of this error.
When again I installed update 1 for Visual Studio I could easily open previous projects without any error.
Related
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.
When I am going to open the open my SQL Server and Visual Studio 2015, It's showing
Can not find one or more component. Please reinstall the application Visual Studio 2015.
What should I do now? I have already reinstalled my application Visual Studio 2015. But nothing has changed. So can anyone please relief me form this error?
I have error in my project on time of build csc.exe exited with code -2146232797 visual studio 2017(Professional) in other Team's computer project building and running fine, so I not want to update nuget compiler,
Is there any permanent solutions there?
This issue happened for some people with vs 2017. you need to reinstall .net via
microsoft site
as requested and if the above link does not help, there is a thread in visual studio development community stating they fixed the issue in visual studio 2017 v15.5:
We have fixed this issue and it's available in Visual Studio 2017
version 15.5. Thank you for helping us build a better Visual Studio!
more over, there is another solution stating:
using the 2.2 compiler made the problem go away.
Multiple times I got this issue in VS 2019. I closed other VS projects and then build successfully.
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
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.