Program does not run after switching from VS2013 to VS2015

时间:2015-11-11 11:40:09

标签: c# c visual-studio wix .net-4.6

I have a solution which contains 5 C# projecst, 2 wix projects and a C project (2010). We have been developing this in VS2013 Ultimate and all has been fine. I've just tried opening the solution in VS2015, I have no errors, and no warnings. When I press the start button (F5), nothing happens. I don't even hit the first line of the Program.cs file. All it seems to do is build the project. Any ideas?

EDIT

The same project was open in both VS2013 and VS2015 at the same time as I was comparing config etc.

When I closed down VS2013, the program ran!

Not entirely sure why this occurred...

2 个答案:

答案 0 :(得分:1)

在我比较配置等的同时,VS2013和VS2015都打开了同一个项目。

当我关闭VS2013时,程序运行了!

不完全确定为什么会这样......

答案 1 :(得分:1)

是的,问题确实在于同时在Visual Studio 2013和2015中运行相同的项目。

启动程序时,只有首先打开的VS版本才能运行该程序。这是因为第一个打开的VS将vshost.exe进程附加到项目并拒绝对该exe的任何访问,这就是上次打开的版本无法附加其自己的vshost.exe的原因。因此,在构建解决方案后它就会停止。