-
-
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? |
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: