본문 바로가기

C#

[WPF] VisualStudio 에서 [ is not recognized or is not accessible] 에러 해결법


위와 같은 에러메시지.. 아무리 컨트롤들을 잘 잡아도 계속되는 고질적인것은..



 
Here's the solution. In the application's .csproj file, change this:

<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
to this:

<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Do not be fooled by the fact that Visual Studio reports that you are running in AnyCPU more in the configuration manager. You must hand-edit the .csproj file





하고 한번 빌드해주면 된다. 아니면 F5 하던지..