ERROR: Unrecoverable build error - 0x8007000B - visual-studio

I'm trying to create a setup for my program on Visual Studio 2022 but everytime I try to generate it, I get this error:
ERROR: Unrecoverable build error - 0x8007000B
I already tried what was suggested here
"Unrecoverable build error" on any MSI Setup project and also here Unrecoverable build error - whilst trying to build setup on VS2015
but it still doesn't work.
Any idea why ?
Also do you have any suggestions on alternatives ?
I tried with the wizard setup of Wix and I get the exact same error.

Related

ERROR: Failed to make the following project runnable: This process cannot access the file ~/MyProject.exe' because it is being used by another process

When I am trying to compile and run my ASP.Net Core 1.0 project on Visual Studio 2015, I am getting the following error:
Failed to make the following project runnable: MyProject (.NETFramework,Version=v4.6) reason: The process cannot access the file '~\MyProject.exe' because it is being used by another process.
File: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets
I have no clue why this error is coming. Any solution?
Here is a silly solution to this problem that actually worked! I stopped debugging and closed Visual Studio. Then I restarted the computer. Upon opening Visual Studio again after restarting the computer, I was able to run the application without any error.
It seems the process was still running in the background even though the application had been stopped from Visual Studio.
Source: Basic troubleshooting

TDS: 'Build fo GetFrameworkPaths failed' after upgrade

I've upgraded my TDS to 5.5 and now I get the following error when opening a solution containing a TDS project with Visual Studio:
TDS failed to change configurations with the error 'Build of GetFrameworkPaths failed.'.
Please see the output window for more details.
This is a known issue not yet fixed by Hedgehog. They do provide a workaround:
http://www.hhogdev.com/blog/2016/may/common-problem-after-tds-5,-d-,5-upgrade.aspx
To save some time you can just delete the
C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets
file and run the TDS installer and choose repair instead of uninstalling and reinstalling TDS as Hedgehog recommends.
This error can also appear when running into code / build issues. I saw this error when there was a line ending issue which resulted in a syntax error in my code generation output (eg. Models.cs).
Try these:
Restart Visual Studio and/or your PC.
Unload and reload the TDS project(s) with dependencies.
Restore NuGet packages.
Check your TDS logs / outputs as there may be a more specific error that precedes this one.
Inspect your code for any syntax errors / line ending issues.
Inspect your code for any rule / code quality violations.
Verify that your other projects can build successfully.

fatal error LNK1104: cannot open file '[...]\ReMod3D.exe'

When I was using the Visual Studio 2010 and run my simulator, I got this error:
fatal error LNK1104: cannot open file 'C:\Users[...]\ReMod3D\AIProject1World\ReMod3D.exe
The weird thing is that this error will disappear if I try to run it again after putting the VS2010 aside for a few minutes. I have checked the task manager and found no program like ReMod3D.exe is running in the background when I got this error. Anyone know what is happening?
I find the solution! That is because my explorer is always locking the .exe file......the vs2010 cannot rebuild the .exe file because it's locked! The reason that the file is locked is that I somehow disable my application experience service. I started it again and everything is fine now.

Failed to open existing projects due to I\O error

While trying to open a project I observe the following error.
error : An IO error occurred while scanning the disk for installed platforms.
I have Visual Studio 2010 installed and the same project was working earlier. I have installed Python 2.6, SCons, command line version of SVN for a different project and then onwards am seeing this failure.
Could you suggest the possible error here?

An error occurred generating a bootstrapper: Unable to begin updating resource for bin\Debug\app.publish\setup.exe

It's a winForm application Using VS2010 with .net4.0, I get this error when publishing and have Prerequisites selected. The error goes away if I uncheck "create setup program to install preq components"
I tried copying the bootstrap packages from another machine, no luck
I delete the prerequisite package and i've solved the problem...

Resources