Hi TimonYang, thanks for the suggestions. Unfortunately it didn't solve the issue. And , as far as I know, I never published this project with ClickOnce ..
But I solved it .. by creating a new clean.net 4.8 project, adding the existing class libraries and all existing the C# source code .. until it could be build and run as before. Then I used this 'clean' sln to port to .net5 with the upgrade-assistant. With only a few errors to fix, it could be build and run.
(The project code of the first try that failed must have been cluttered with a lot of leftover stuff from over the years development and updates)
Errors MSB3113 at first build of a project upgaded to .net5

The project contains a few Class Libraries besides the main C# program. It is a console application developed in c# .net 4.8. After using the upgrade-assistant the c# code of the libraries and the main program were ported to .net 5 and upon opening of the .sln in VS 2019 no errors were reported .. But after the first build it reported that the DLL's of the class libraries could not be found. Same for a number of other DLL's (mostly Azure stuff).
Like this :
Severity Code Description Project File Line Suppression State
Error MSB3113 Could not find file 'logger.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'Microsoft.Azure.KeyVault.Core.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'Microsoft.Rest.ClientRuntime.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'Microsoft.Rest.ClientRuntime.Azure.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'Microsoft.WindowsAzure.Storage.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'Newtonsoft.Json.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'timezone.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'WebGrab+Plus.exe'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'WG_Azure.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'xmltv.dll'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3113 Could not find file 'WebGrab+Plus.exe.config'. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 3961
Error MSB3073 The command "if == ReleaseSetup call "\info\CreateInstaller.bat"" exited with code 255. WG.console C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 5534
-
Jan van Straaten 96 Reputation points
2021-04-29T12:09:42.197+00:00 0 additional answers
Sort by: Newest
I had the same issue and found the true problem and solution. The upgrade tools do not account for the scenario where you have Resource settings. After manually deleting the "Properties" folder and it's contents the problem went away. If you need to re-add your resources you can open the ".backup" project and view them with a text editor.
Note: I also manually cleaned up the .csproj file as the upgrade assistant left the following ItemGroup behind:
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
In my case the Project Attributes where the "ClickOnce" Security Option is active / chcked. i had unchecked it and now it works.
solved: error MSB3113