-
-
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
Basic project integration stuck on adding property message #175
Comments
I have exactly the same behavior after upgrading VS to 16.8.1 two days ago. Using .Net 4.7.2. This same project was building fine last week... I noticed the problem when all references to DllExport failed in the project. Running DllExport.bat again then gave the above errors. I tried removing all dllexport related PropertyGroups and Targets from the csproj-file first, but that did not make any difference. |
I'm not sure if it is caused by the upgrade as I did it too because I have 2 other projects with DllExport library referenced (one with v1.6.2 on .NET Framework 4.7.1 and the other one is v1.7.0 on .NET 4.7) and they are still building fine with no problems. But once I start a new project and try to add DllExport library there (either from NuGet or downloading it directly form GitHub releases) I always get stuck on the same message in the debug log. |
Issue #170 seems very similar, I get similar behavior but there is a difference that I'm not using ILMerge preprocessing or any other customizations. |
I think I found the problem in my case. Somehow the RootPath is not added in front of the PkgPath internally. Another thing that was not working in my case was the Build Info tab. It showed "Detailed information about build was not found :(". because C:\mySolution\packages\DllExport.1.7.3\tools\packages\DllExport.1.7.3\build_info.txt could not be found. After my change, it correctly showed the content of the file at C:\mySolution\packages\DllExport.1.7.3\build_info.txt. I have no idea why this worked before and now stopped working... |
Interesting and how did you manage to add the Thanks! |
See the patch in attachment. My guess is that the PkgPath is being set before the RootPath. There may very well be a better way to fix this, I just started using dllExport a few weeks ago and know almost nothing about how it does its magic... |
Thanks for the report! Seems like it was some changes in modern MSBuild instances for ITask processing (distributed together with VS 16.8+ and Build Tools). Because I remember an oriented vector at init properties before 16.8 DllExport -msb "...old-instance...MSBuild.exe" DllExport/Wizard/net.r_eg.DllExport.Wizard.targets Lines 42 to 48 in e9b20af
💊 Temp solution for DllExport 1.7+ including latest 1.7.3Please use the following command, or like: DllExport -packages="%cd%\packages" -sln-dir="%cd%" Patch@hsaelens almost correctly noticed the place of the problem! Since it might be some multithreading optimization in modern instances (not sure, need to check src), now it would be a good thing to separate the initialization logic.
I can review PR later. Thanks. |
the same thing happens to me too. and I thought I was too stupid. Thanks |
Guys! Please note the actual evaluation of the The case if you're working with different paths (team, CI, any distribution of src without our package inside). Before VS/build: DllExport -action Restore -packages="%cd%\packages" -sln-dir="%cd%" Sorry for the inconvenience https://twitter.com/GitHub3F/status/1320425255291265026 |
Please test the fix before merge using command:
|
It works in VS 16.8.3 (both .NET Fx 4.8 and .NET Standard 2.0). |
Good! I'll quickly review other important bugs in 1.7.4. The release will be soon as possible for me. Here's with the new more loyal logic when no keys for some reason:
|
* FIXED: Basic project integration stuck on adding property message. Issue #175. Modern VS/MSBuild 16.8+ * FIXED: Fixed integration with Conari and merging modules via ILMerge. Issue #170. * FIXED: double.NaN leads to errors for non exported methods. Issue #174. ``` syntax error at token '-' in: IL_0029: ldc.r8 -nan(ind) ``` * NEW: Manager. Implemented `-no-mgr` key: - Do not use manager for automatic restore the remote package. * CHANGED: FIPS compliant algorithms. Unable to install when FIPS enabled. Issue #171. * CHANGED: Improved the searching paths logic for RootPath and PkgPath, to be more loyal when no keys for some reason. Part of #175. * CHANGED: Updated MvsSln 2.5.3 https://github.com/3F/MvsSln/releases/tag/2.5.3 * CHANGED: Use special edition for DllExport project. Part of issue #171. https://github.com/3F/MvsSln branch: edition/DllExport
Steps to reproduce:
[Debug] 'Plugin\Plugin.csproj' Schedule an adding property: 'DllExportIdent':'0FAA5C33-ECB9-49BF-AB5B-F3DC54C76B08
. . .
v1.7.3.58831+9a4bc51
Information from
Data
tab or log data:Demo Project files / Samples / etc.:
Plugin.csproj:
. . .
I'm not sure why but it keeps hanging on that Schedule and adding property message even with the simplest example code.
Tried on different frameworks (.NET Core 3.1, .NET Standard 2.0, .NET Framework 4.7.1) also on a different machine, the result is the same.
The text was updated successfully, but these errors were encountered: