-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
[VS2019] Build Failure: syntax error at token 'inf' #128
Comments
Maybe a regression in the latest ILDasm? |
Please clarify the following: What DllExport version? What ILAsm/ILDasm? What project type? Did you try our custom ilasm/ildasm versions? And can you try with my latest 4.700.2 version: https://github.com/3F/coreclr
|
Ah, never know there is a version for .net core, that's very helpful, thanks. |
* FIXED: Fixed possible "Invalid memory access" (JNA/Java). Issue #125. For C/C++ such as "Unhandled exception at ... (KernelBase)" https://twitter.com/GitHub3F/status/1201904821093187585 * FIXED: Fixed 'Failed to resolve assembly...' when .NET Standard. Issue #127. * FIXED: Fixed error when switching between .sln in UI. Wizard. * FIXED: Fixed possible duplication of `PlatformTarget` during setup. * NEW: Implemented "Rebase System Object" option for our assembler. * CHANGED: New installation behavior through official NuGet. * CHANGED: New wizard layout for 1.7. * CHANGED: Updated CoreCLR 3.1.0 RTM \ IL Assembler 4.700.2. https://github.com/3F/coreclr/releases/tag/ILAsm.4.700.2 Includes an implemented `/REBASE` feature for related issue #125. * CHANGED: Updated Mono Cecil 0.11.1 https://github.com/jbevain/cecil/releases/tag/0.11.1 * CHANGED: Updated Conari 1.4 https://github.com/3F/Conari/releases/tag/1.4 * KNOWN: Possible syntax error at token 'inf'. Issue #128. #128 * KNOWN: You can finally get another System.Object in modified assembly: #90 (comment) * NOTE: Please don't use beta releases in production! * NOTE: Please report about something here: https://github.com/3F/DllExport/issues
I confirm the mismatch between versions. ILDasm 4.8.3928.0 marks this as So, Actually you need address it to Microsoft. Because we already provide our own modified versions. Please use this instead.
Please attach log with diagnostic key:
Or please minimal reproducible project sample. Because I don't see problems when our assembler.
Yes, planned 1.7 provides both support for netfx and netcore. Beta2 release is just out: https://twitter.com/GitHub3F/status/1205616579607715840 |
Related Issue #128 Also updated layout: GdiCharSet = 0 + background caption to filter projects by path
* FIXED: Mismatch of the name of the exported function with the specified value. Issue #129. * FIXED: Unchangeable cdecl convention. Part of Issue #129. * FIXED: Fixed possible duplication of `DllExportSysObjRebase` during setup. * NEW: Implemented "Single + Double Inf/-Inf token patching" option. Related Issue #128. * KNOWN: You can finally get another System.Object in modified assembly: #90 (comment) * NOTE: Please don't use beta releases in production! * NOTE: Please report about something here: https://github.com/3F/DllExport/issues
1.7 Beta3 release provides now Check this out. |
Good! FYI, This patch can be also applied for original MS assembler on netfx.
This is known error: #19 (comment)
Yes, more like the problem with layout, again on Chinese system: #61 You can temporarily configure it manually, please update value for You need set the first bit for mask: /// <summary>
/// Affects ldc.r8; ldc.r4; .field;
///
/// inf/-inf to 0x7F800000/0xFF800000
/// 0x7FF0000000000000/0xFFF0000000000000
///
/// https://github.com/3F/DllExport/issues/128
/// </summary>
InfToken = 0x01, eg.: <DllExportPatches>here</DllExportPatches>
It shouldn't be resized. Please continue here: #61 (comment) |
All problems solved, thank you very much. |
* NEW: Allowed .NET Standard 1.1 and above targeting. * FIXED: Fixed "Sdk.WindowsDesktop" problem for .NET Core / SDK-based projects. Details in PR #123. * FIXED: Fixed beta3 incorrect layout (Thanks @Genteure, PR #131). Related problem with `Inf/-Inf token patching` option: #128 (comment) * FIXED: DllExport crashing with proxy authentication error. Issue #133. * FIXED: Fixed actions for `-mgr-up` key. Including `-action Upgrade` ( Update + mgr-up + force keys ) * FIXED: Fixes possible MSB1006 for proxycfg property. "MSB1006: Property is not valid. Switch: proxycfg" * CHANGED: UI. VS project icons under Visual Studio 2017 Image Library EULA.RTF license. * CHANGED: init.ps1 adds optional copying of package data for our manager. Part of the "new installation behavior through official NuGet." (beta2) Please note: This is not nuget support! It just replaces known info-form that was in 1.6.x. * CHANGED: Local scope when invoking .\DllExport manager in project files. * CHANGED: Updated GetNuTool 1.8 https://github.com/3F/GetNuTool/releases/tag/1.8 * NOTE: Please don't use beta releases in production! * NOTE: Please report about something here: https://github.com/3F/DllExport/issues
* NEW: .NET Core based projects support. Issues: #90, #67 PR: #123 * NEW: .NET Standard 1.1 and above targeting support. * NEW: Implemented "Single + Double Inf/-Inf token patching" option. Related Issue #128. * NEW: Implemented "Rebase System Object" option for our assembler. Helps to avoid possible "Invalid memory access" (JNA/Java). Issue #125. For C/C++ such as "Unhandled exception at ... (KernelBase)" https://twitter.com/GitHub3F/status/1201904821093187585 Part of PR #123 * NEW: Implemented updater for wizard. Issue #109. * NEW: Textual export of affected data to diag. * CHANGED: Updated CoreCLR 3.1.0 LTS \ IL Assembler 4.700.2. https://github.com/3F/coreclr/releases/tag/ILAsm.4.700.2 Includes an implemented `/REBASE` feature for related issue #125. * CHANGED: New installation behavior through official NuGet. init.ps1 also adds optional copying of package data for our manager. Please note: This is not nuget support! It just replaces known info-form that was in 1.6.x. * CHANGED: New wizard layout for 1.7. * CHANGED: Local scope when invoking .\DllExport manager in project files. * CHANGED: Updated logic for an offline versions with optional converting to online if needed. * CHANGED: Updated MvsSln 2.5.1 https://github.com/3F/MvsSln/releases/tag/2.5.1 * CHANGED: Updated hMSBuild 2.3 https://github.com/3F/hMSBuild/releases/tag/v2.3 * KNOWN: You can finally get another System.Object in modified assembly: #90 (comment) * NOTE: You need an updated/modern manager to avoid problem when "Possible incorrect Sdk-based project types": PR #123 3F/MvsSln#23 Use it from official 1.7 release: https://github.com/3F/DllExport/releases/tag/v1.7 https://www.nuget.org/packages/DllExport/1.7.0 Otherwise you need provide manually msbuild instance that can process modern Sdk-types due to modern VS/dotnet sdk dependencies for netcore-based projects. For example, through hMSBuild https://github.com/3F/hMSBuild ``` DllExport ... -msb hMSBuild ``` * NOTE: For command-line mode, To upgrade configured version to 1.7: ``` DllExport -action Upgrade -dxp-version 1.7.0 ```
I run into the exact same issue on VS 2022 and can confirm that the |
This is with the latest VS2019 version 16.4.
Build log:
Maybe this is what happened:
syntax error at token 'inf' in: .field public static literal float32 'Infinity' = float32(inf)
.The problematic il snippet:
Any ideas?
The text was updated successfully, but these errors were encountered: