回答

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,並選擇Any CPU作爲複製設置的目標。如果您還想添加解決方案目標,也可以選中「創建新的解決方案平臺」。

然後,如果你轉到項目屬性,你可以選擇這個平臺。

+0

謝謝。我想在平臺和平臺目標領域設置'x86'。顯然,Express版本的UI不允許選擇平臺目標。但是,可以通過手動編輯項目文件來更改它。 –

相關問題