UWP发布编译时出错

时间:2017-01-25 17:16:55

标签: xaml compiler-errors uwp uwp-xaml

当我在调试模式下编译我的UWP应用程序时,一切正常。

当我在发布版本中编译时收到错误

'文件名已使用不同的GUID和校验和值'

声明 x86中的

1>------ Build started: Project: JSI_W10, Configuration: Release x86 ------
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Login_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Maschera_Test.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Registration_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\ResetForgot_Password.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Send_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Brochure_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Home_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Image_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Video_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Home_Page.g.vb(44,21): error BC30456: 'Lbl_Search' is not a member of 'The_Home_Page'.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Package: 0 succeeded, 1 failed ===========
========== App Bundle: 0 succeeded, 1 failed ===========
x64中的

1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Login_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Maschera_Test.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Registration_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\ResetForgot_Password.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Send_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Brochure_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Home_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Image_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Video_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Home_Page.g.vb(44,21): error BC30456: 'Lbl_Search' is not a member of 'The_Home_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\The_Global_Page.xaml(201,107): error BC30456: 'Image_Tapped' is not a member of 'The_Global_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\The_Global_Page.xaml(202,111): error BC30456: 'TextBlock_Tapped' is not a member of 'The_Global_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(777,21): error BC30456: 'Lbl_Search' is not a member of 'The_Global_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(783,38): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(786,35): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(789,38): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(792,33): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Package: 0 succeeded, 1 failed ===========

Pay Attenction TOGGLE按钮处于OLD版本中...现在我不喜欢Image_tapped和TextBlock_tapped事件....

我可以删除它们,因为我无法看到它们!!!!!

任何人都有想法? 感谢

1 个答案:

答案 0 :(得分:2)

尝试以下步骤。

  1. 清洁溶液。
  2. 在源文件夹中,您将拥有foreach ($array as $object) { echo $object; } bin目录。完全删除它们。
  3. 现在尝试构建解决方案并查看它是否有效。