0

Visual C# 2010 Express 또는 Visual Web Developer 2010 Express에서 Properties -> Build -> Configuration -> Platform의 드롭 다운 목록에 'Any CPU'이외의 값이 표시되지 않습니다.Visual C# 2010 Express 또는 Visual Web Developer 2010 Express의 콘솔 응용 프로그램에서 대상 플랫폼을 변경하려면 어떻게합니까?

일부 64 비트 DLL을 제거하고 32 비트 버전을 가져 와서 참조를 추가했습니다.

그 이후로, 나는 BadImageFormatException을 받았습니다.

답변

0

나는 다른 곳에서 몇 가지 제안을 발견했지만 그들은 지금까지 나를 위해 일하지 않았다.

나는 이것이 가장 유용하다는 것을 알았다. 나중에이 같은 문제에 직면 해있는 사람들을위한

http://social.msdn.microsoft.com/Forums/en-US/d4fa83dc-eed1-4ead-96a1-78bbd9ba6d3a/vb-express-target-x86-platform?forum=vblanguage

, 여기에 도움입니다. 그것은 :

Express Editions: 

The VB and C# Express products do not expose the 
Target property inside the development environment. 
You will need to carefully modify the project file 
using a text or XML editor. 

1. Close the project and/or solution 

2. Select Open File from the File menu 

3. Navigate to the project directory, and highlight 
     the project file 

4. Press the Open button, the project file should open 
     in the XML editor 

5. Locate the first <PropertyGroup> section and add 
     the following line: 

<PlatformTarget>x86</PlatformTarget> 

1. Save the project file 
2. Reopen the project and/or solution using 
     Open Project/Solution from the File menu 
3. Continue with development, debugging, and testing 

Alternatively, if the application is targeted to 64-bit 
platforms, you can ensure that the COM controls added to 
the application have 64-bit equivalents on the development 
and deployment computers. 


JohnWein added the following: 

Using the above method targets the x86 platform, but it 
doesn't show the "Configuration:" and "Platform: " boxes 
on the Properties tabs. To get this feature, I made a 
template of one of the projects that shows these boxes. 

Now I can target a platform and know what platform I 
have targeted. 
1

플랫폼 또는 플랫폼 대상입니까?

새 플랫폼을 추가하려면

다음을 수행하십시오

열기 솔루션의 구성 관리자를.

프로젝트의 플랫폼 콤보를 확장하십시오. 몇 가지 항목이 표시됩니다 : 모든 CPU 및.

누르기이 대화 상자는 새로운 대화 상자를 열어 솔루션에 대한 새 대상을 추가합니다. 새 플랫폼에 대해 x64를 선택하고 설정을 복사 할 대상의 모든 CPU를 선택하십시오. 또한 솔루션 대상을 추가하려는 경우 "새 솔루션 플랫폼 작성"을 선택할 수도 있습니다.

그런 다음 프로젝트 속성으로 이동하면이 플랫폼을 선택할 수 있습니다.

+0

고마워요. 플랫폼 및 플랫폼 대상 필드 모두에서 'x86'을 설정하려고했습니다. 외관상으로는, 급행 버전에는 플래트 홈 표적의 선택을 허용하지 않는 UI가있다. 그러나 프로젝트 파일을 수동으로 편집하여 변경 될 수 있습니다. –