[VS2019] Build Failure: syntax error at token 'inf'
See original GitHub issueThis is with the latest VS2019 version 16.4. Build log:
1>E:\Users\Administrator\git\GMMatchvs\packages\DllExport.1.6.5\tools\net.r_eg.DllExport.targets(59,5): error : C:\Users\Administrator\AppData\Local\Temp\tmp3792\GMMatchvs.x86.il(182) : error : syntax error at token 'inf' in: .field public static literal float32 'Infinity' = float32(inf)
1>E:\Users\Administrator\git\GMMatchvs\packages\DllExport.1.6.5\tools\net.r_eg.DllExport.targets(59,5): error :
1> 在 RGiesecke.DllExport.Parsing.IlParser.RunIlTool(String installPath, String toolFileName, String requiredPaths, String workingDirectory, String settingsName, String arguments, String toolLoggingCode, String verboseLoggingCode, IDllExportNotifier notifier, Int32 timeout, Func`2 suppressErrorOutputLine) 位置 C:\projects\dllexport\RGiesecke.DllExport\Parsing\IlParser.cs:行号 368
1> 在 RGiesecke.DllExport.Parsing.IlAsm.RunCore(CpuPlatform cpu, String fileName, String ressourceParam, String ilSuffix) 位置 C:\projects\dllexport\RGiesecke.DllExport\Parsing\ILAsm.cs:行号 143
1> 在 RGiesecke.DllExport.Parsing.IlAsm.Run(String outputFile, String ilSuffix, CpuPlatform cpu) 位置 C:\projects\dllexport\RGiesecke.DllExport\Parsing\ILAsm.cs:行号 113
1> 在 RGiesecke.DllExport.Parsing.IlAsm.ReassembleFile(String outputFile, String ilSuffix, CpuPlatform cpu) 位置 C:\projects\dllexport\RGiesecke.DllExport\Parsing\ILAsm.cs:行号 52
1> 在 RGiesecke.DllExport.DllExportWeaver.reassembleFile(IlAsm ilAsm, String outputFile, String ilSuffix, CpuPlatform cpu) 位置 C:\projects\dllexport\RGiesecke.DllExport\DllExportWeaver.cs:行号 198
1> 在 RGiesecke.DllExport.DllExportWeaver.RunIlAsm(IlAsm ilAsm) 位置 C:\projects\dllexport\RGiesecke.DllExport\DllExportWeaver.cs:行号 163
1> 在 RGiesecke.DllExport.DllExportWeaver.Run() 位置 C:\projects\dllexport\RGiesecke.DllExport\DllExportWeaver.cs:行号 89
1> 在 RGiesecke.DllExport.MSBuild.ExportTaskImplementation`1.Execute() 位置 C:\projects\dllexport\RGiesecke.DllExport.MSBuild\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:行号 463
Maybe this is what happened: syntax error at token 'inf' in: .field public static literal float32 'Infinity' = float32(inf)
.
The problematic il snippet:
...
// =============== CLASS MEMBERS DECLARATION ===================
.class public sequential ansi sealed beforefieldinit 'Mathf'
extends ['mscorlib']'System'.'ValueType'
{
.pack 0
.size 1
.field public static literal float32 'PI' = float32(3.141593)
.field public static literal float32 'Infinity' = float32(inf)
.field public static literal float32 'NegativeInfinity' = float32(-inf)
.field public static literal float32 'Deg2Rad' = float32(1.7453291e-02)
.field public static literal float32 'Rad2Deg' = float32(57.29578)
.method public hidebysig static float32
'Sin'(float32 'f') cil managed
{
// 代码大小 9 (0x9)
.maxstack 8
IL_0000: ldarg.0
IL_0001: conv.r8
IL_0002: call float64 ['mscorlib']'System'.'Math'::'Sin'(float64)
IL_0007: conv.r4
IL_0008: ret
} // end of method 'Mathf'::'Sin'
...
Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Cannot build CSCORE in VS2019 - ilasm failure in post build
This is an error in Visual studio, reported but unsolved. To overcome it, I changed the source of AiffBinaryReader in Codecs.AIFF.
Read more >MSBuild generates syntax error for TRIM in function
This function works just fine, but MSBuild complains that there is a syntax error near “FROM”. Adding a “SELECT” fixes the issue:.
Read more >Troubleshoot network or proxy errors - Visual Studio
This error generally occurs when users connect to the internet through a proxy server. The proxy server then blocks the calls that Visual...
Read more >Error when building FLTK-1.3.8 in Visual Studio
When I try to build fltk.sln project in Visual Studio on Microsoft system I get the following errors: 1) C2059 syntax error: 'constant'...
Read more >Solved: what does this error mean? - syntax error - token
Hi. Am using TC375 lite kit and am using tricore tasking compiler to generate hex and flash in the board using memtool. Right...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
All problems solved, thank you very much.
1.7 Beta3 release provides now
Single + Double Inf/-Inf token patching
option.Check this out.