-
-
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
Error publishing simple DLL on .NET Core 3.1 #176
Comments
Thanks for the report! Temporarily try the following (netstandard & netcoreapp targets only) <DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols> or <DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols> or related settings in project properties using VS IDE |
Thanks for the temp solution, seems that if you set Now the publishing works, but even with library |
Make sure If only some specific, then below:
To disable generation of the NuGet packages try the following below; When Publish <IsPackable>False</IsPackable> When Build <GeneratePackageOnBuild>False</GeneratePackageOnBuild> You can also use https://github.com/3F/vsSolutionBuildEvent for other custom scripts (public/private) and much more besides or together with msbuild |
|
Unfortunately there is no unified solution at this day. 'embedded' for some reason or 'none' ... I don't want either implement some option for this case or forcefully remove pdb Keep it open for the future fixes! I remind everyone,
Thanks |
Strange, it must generate a modified assembly. This however is another issue. Please open it as question if you want to discuss some solution. |
I had similar problem. Winforms targeting 3.1 Single File option would not publish but would with Single File un checked.
Resulted in whole project being unloaded! Coud not re-load until I removed the above. |
@cabbytech msbuild properties must be declared into Also I remind this can be configured inside Visual Studio IDE using project properties menu - Build - Advanced |
Sorry my mistake. I have corrected. However, will not publish with that setting either. |
@cabbytech what error? or better to look log or .csproj file make sure this was not redefined by other DebugType/DebugSymbols properties |
Nothing of value in the log file but output window:
|
@cabbytech It's unclear at all. Please use /v:diag or better /bl. Note the /bl by default collects the source text of project files. See Doc |
Is this closed by now? |
Okay, I finally looked into this issue. Although I can't reproduce your problem for missing a .pdb,
56d4479 improves deletion via temp renaming. However, this is not the general point of the current issue; Found this in your FolderProfile.pubxml <SelfContained>true</SelfContained> Current project does not officially support publishing of the self-contained a platform-specific executable. Also <PublishSingleFile>True</PublishSingleFile> You can use ILMerge (or similar) at Pre-Procesing stage to combine modules if you're looking option for a single file, moreover for libraries (because this option only for executable app as far as I remember it) So I checked your DllExportTest.zip (thank you for the prepared example!) on VS 17.12.1 publishing is ok even for much older DllExport 1.7.3 (your configured project)
But the publish will receive an original unmodified module that's different issue #235, but this is already fixed since 2a8d962 tl;dr
I close the issue but please open it again if the solution above does not help. Thanks. |
Steps to reproduce:
v1.7.3.58831+9a4bc51
win-x86
Information from VS Output log:
Project builds without any issue but publish fails every time, tried also changing parameters with no luck.
Demo Project files:
DllExportTest.zip
Thanks for help! ✌
The text was updated successfully, but these errors were encountered: