Errors MSB3113 at first build of a project upgaded to .net5

Jan van Straaten 96 Reputation points
2021-04-27T16:58:39.727+00:00

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

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,024 questions
{count} votes

Accepted answer
  1. Jan van Straaten 96 Reputation points
    2021-04-29T12:09:42.197+00:00

    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)


0 additional answers

Sort by: Most helpful