Running .net2.0 application using .net4.0 framework

We only need to create a new file called xxx.exe.config.
note: xxx.exe is your donet application.

Then fill the following codes to the config file:

showing used by another process when debugging in VS2015 CTP5

When I develop a new winform application, if I start debug a process and then stop it, it will no longer debug again, and it shows like the following below:
warning MSB3026: Could not copy “obj\x86\Debug\xxx.pdb” to “bin\Debug\xxx.pdb”. Beginning retry 1 in 1000ms. The process cannot access the file ‘bin\Debug\xxx.pdb’ because it is being used by another process.

And After looking into it, I found a process name “conhost.exe” is still exist after the debugger stops. So I closed it manually. And the debugger will work. But this is not a perfect workaround. So I found an other workaround, the issue may happened by VS 2015 new feature, it called Analyzer. When the Analyzer is disable, the issue no longer exist. Maybe this is the perfect workaround.

If the above solution does not work, please delete .vs folder and .suo file and then try again.

————————–
Update on 2/26/2015
The issue may fixed in CTP6, please have a try.

Get the newest uninstaller for the updated ProductCode in VS 2010

When we are using the VS 2010 and trying to release our application to the customer, we sometimes use the default deployment project to create a simple msi package as the solution. But if any update is released, it is very important to change the Version/ProductCode of our vdproj project, and we need to modify the uninstaller’s ProductCode. If more projects, we need modify more uninstallers. Is there any solution or workaround to avoid the bothering work? Of course, there is.

1. You should get the following code to create a project named “ProductCodeFixer”:

 

2. Add the ProductCodeFixer to uninstaller’s directory, and set an vdproj file path as a parameter, the ProductCodeFixer will automaticly change the uninstaller’s version.

Note: You can get the uninstaller from here.

3. Before creating the msi package, we should add PreBuildEvent to our project like the following: “$(ProjectDir)\xxxx\ProductCodeFixer.exe” “$(ProjectDir)\xxxx\our_proj.vdproj” . After running PreBuildEvent, you’ll get a new uninstaller for the new msi package.