English 中文(简体)
Visual Studio 2008 Debug正在使用旧的源文件启动我的.NET WPF应用程序。
原标题:Visual Studio 2008 Debug is launching my .NET WPF app with old source files

这是昨天开始随机发生的。

当我按下F5来测试我的项目时,程序的旧构建(大约在昨天下午)启动。项目中没有任何更改(我已尝试在几个不同的文件中)。

但是,令人困惑的是,如果我通过菜单栏选择“生成”->“从Build构建”,/bin/release/目录中的输出.exe确实包含所有最近的更改。

这可能是什么原因造成的?

www.un.org/spanish/ecosoc

更具体地说,我的.vb文件的更改被反映出来了,但我的XAML文档中的更改没有。

问题回答

随意地,我不确定是怎么回事,我在我的项目(这里称为“Misc”,我保存杂项文件)的子文件夹中得到了OBJ文件夹的一个副本。

我删掉了那个,现在它工作得很好。我实在不知道为什么这样做可以解决问题,但这是我在整个探索过程中唯一改变的事情。

您在“模块”窗口 (调试器下,转到菜单调试 -> 窗口 -> 模块) 中看到了什么?它看起来像是加载了不正确的模块,可能是缓存在某个地方?

我从我的朋友那里听说过类似的问题,他声称这是由Resharper引起的... 以防万一,如果你安装了它...





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签