Phantom Build Errors February CTP

Since installing the February CTP I find my application fails to build and Visual Studio (Express Ed.) reported the following build error;

"Error    10    The name 'MyApplication' does not exist in the current context    C:\ExampleApp\ExamplePage.xaml.cs"

Immediately building the software after the error has been reported is successful.  Has anybody else found this problem


Answer this question

Phantom Build Errors February CTP

  • DarkGREY

    With february CTP, i have some compilation errors in maepsace _Generated, i expose it in a post.

    To avoid this compilation error, i must close all documents, rebuild all solution and after i can debug.

    I found that with only deleting folder obj,  it's good. So i take in pre-build events delete folder obj and now i haven't error.



  • gkochanowsky

    Your issue is a variant of this issue. Both are caused by a bug in the incremental build process. This bug has been fixed and a future WinFX release will carry that fix.

    I understand this is a pain, but unfortunately the only workaround I can suggest is to Rebuild the project.



  • bobespn

    I have no idea what the compiler is referring to when it mentions MyApplication.

    This is a project that compiles without error with the December/January CTP. I have made the necessary changes to get the project to compile with the February CTP (Mappings, etc). Most times the project compiles without error. However, sometimes I make a simple change to a .xaml or .cs file such as inserting a new line and compilation fails. If I make absolutely no further changes to the project but simply build the software a second time immediately after the reported error the project compiles again.

    I have no .g.cs files open and between the build failing and being successful I make no changes whatsoever either to the code, project or visual studio.

  • Thona

    Is MyApplication an element or class name Did you have a intermediate *.g.cs files opened in the editor before this happened



  • Phantom Build Errors February CTP