Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unexpected build error in Xaml + Winform Project #15

Open
Nukepayload2 opened this issue Aug 3, 2017 · 1 comment
Open

[Bug] Unexpected build error in Xaml + Winform Project #15

Nukepayload2 opened this issue Aug 3, 2017 · 1 comment

Comments

@Nukepayload2
Copy link

Nukepayload2 commented Aug 3, 2017

Steps to reproduce:

  • Install vs2017.
  • Install plugin "ILSupport" and restart vs2017.
  • Create a Visual Basic Windows Forms with IL project.
  • Save all files.
  • Build (succeed).
  • Create a new WPF UserControl (XAML) in this project.
  • Build (failed).

Expected Behavior

Build successfully even WPF UserControls or other XAML files were added.

Actual behavior

Build failed. The compiler treated Form1.il as a Visual Basic source file.

Build log (Chinese Simplified, Minimal)

1>------ 已启动生成: 项目: WindowsApplication1, 配置: Debug Any CPU ------
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(1,1): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(1,8): error BC30800: 方法参数必须括在括号中。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(1,8): error BC30201: 应为表达式。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(2,1): error BC30035: 语法错误。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(3,5): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(3,13): error BC30800: 方法参数必须括在括号中。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(3,13): error BC30201: 应为表达式。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(4,5): error BC30035: 语法错误。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(5,9): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(5,19): error BC30800: 方法参数必须括在括号中。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(6,9): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(6,14): error BC30800: 方法参数必须括在括号中。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(7,9): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(8,9): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(9,9): error BC30689: 语句不能出现在方法体外。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(10,5): error BC30035: 语法错误。
1>D:\Projects\WindowsApplication1\WindowsApplication1\Form1.il(11,1): error BC30035: 语法错误。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

@Nukepayload2
Copy link
Author

C# projects have the same problem.

@Nukepayload2 Nukepayload2 changed the title [Bug] Unexpected build error in Xaml + Winform VB Project [Bug] Unexpected build error in Xaml + Winform Project Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant