条件补偿常数VB [英] Conditional Compliation Constant VB
问题描述
Error BC31030 Conditional compilation constant '; ^^ ^^ EXCLUDE_CODEGEN' is not valid: Identifier expected. GpsHost C:\Projects\GpsTrackSolution\GpsHost\vbc 1 N/A
当我尝试构建VB.NET Win Forms应用程序时出现上述错误.我对其进行了一些重构,更新为框架4.7.2,现在我明白了.
I am getting the above error when I try and build a VB.NET win forms app. I refactored it a little, updated to framework 4.7.2 and now I am getting this.
在任何vbproj中都没有引用该部分或全部字符的字符串.我已经在整个解决方案中找到了文件内容,但是找不到任何地方.关于该怎么做,几乎是我的机智.
There is NO reference in ANY vbproj for that string of characters, either partial or full. I've done a find in file contents across the entire solution and cannot find that anywhere. Almost at my wit's end as to what could be doing this.
推荐答案
这与VB无关,这实际上是由于奥尔良代码生成试图插入常量所致.Orleans并不是真正与VB一起使用的,因此我改用了运行时代码生成,而不是构建时间,并且奏效了.
This was unrelated to VB, it was actually due to Orleans code generation trying to insert constants. Orleans isn't really designed to work with VB, so I switched to runtime codegen, instead of build time, and it worked.
这篇关于条件补偿常数VB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!