Unable to publish Azure Web App due to NuGet Packages missing.

asked 2021-11-16T00:45:25.747+00:00
Saraih King 26 Reputation points

Attempting to publish web app for Azure IoT project. Code can be found here: https://github.com/Microsoft/MXDial-IoT-Sample.git

Using Visual Studio 2017 or 2022 Community and receive warnings for 70+ warnings. Tried going into Tools/NuGet Package Manager and setting option to automatically check for missing packages with no luck. This is an older project, so curious if it is an issue on my side or with the source code.

Severity Code Description Project File Line Suppression State
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props. MXApi C:\Users\kingc\source\repos\MXDial-IoT-Sample\backend\MXApi\MXApi.csproj 315
Warning The referenced component 'System.Configuration' could not be found. MXApi
Warning The referenced component 'Microsoft.Owin.Host.SystemWeb' could not be found. MXApi
Warning The referenced component 'System.ServiceModel' could not be found. MXApi
Warning The referenced component 'Microsoft.IdentityModel.Clients.ActiveDirectory.Platform' could not be found. MXApi
Warning The referenced component 'System.Web.Extensions' could not be found. MXApi
Warning The referenced component 'Hammock.ClientProfile' could not be found. MXApi
Warning The referenced component 'Microsoft.Owin' could not be found. MXApi
Warning The referenced component 'System.Net.Http' could not be found. MXApi
Warning The referenced component 'System.Net.WebSockets.Client' could not be found. MXApi
Warning The referenced component 'TweetSharp' could not be found. MXApi
Warning The referenced component 'Microsoft.AspNet.SignalR.SystemWeb' could not be found. MXApi
Warning The referenced component 'PInvoke.BCrypt' could not be found. MXApi
Warning The referenced component 'System.Diagnostics.DiagnosticSource' could not be found. MXApi
Warning The referenced component 'System.Web.Http.Owin' could not be found. MXApi
Warning The referenced component 'System.Runtime.Serialization.Primitives' could not be found. MXApi
Warning The referenced component 'Microsoft.Owin.Security' could not be found. MXApi
Warning The referenced component 'System.Xml.Linq' could not be found. MXApi
Warning The referenced component 'PInvoke.Kernel32' could not be found. MXApi
Warning The referenced component 'System.Web.Services' could not be found. MXApi
Warning The referenced component 'System.Security.Cryptography.Encoding' could not be found. MXApi
Warning The referenced component 'Microsoft.Owin.Host.HttpListener' could not be found. MXApi
Warning The referenced component 'System.IdentityModel.Tokens.Jwt' could not be found. MXApi
Warning The referenced component 'Swashbuckle.Core' could not be found. MXApi
Warning The referenced component 'Microsoft.Owin.Hosting' could not be found. MXApi
Warning The referenced component 'System.Web.Cors' could not be found. MXApi
Warning The referenced component 'System' could not be found. MXApi
Warning The referenced component 'Microsoft.IdentityModel.Logging' could not be found. MXApi
Warning The referenced component 'Microsoft.Azure.Amqp' could not be found. MXApi
Warning The referenced component 'System.Security.Cryptography.X509Certificates' could not be found. MXApi
Warning The referenced component 'System.Net.WebSockets' could not be found. MXApi
Warning The referenced component 'System.Runtime.Serialization' could not be found. MXApi
Warning The referenced component 'System.Web.Http.WebHost' could not be found. MXApi
Warning The referenced component 'System.ComponentModel.DataAnnotations' could not be found. MXApi
Warning The referenced component 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform' could not be found. MXApi
Warning The referenced component 'Microsoft.WindowsAzure.Storage' could not be found. MXApi
Warning The referenced component 'Microsoft.IdentityModel.Clients.ActiveDirectory' could not be found. MXApi
Warning The referenced component 'System.Web.Http' could not be found. MXApi
Warning The referenced component 'System.Security.Cryptography.Algorithms' could not be found. MXApi
Warning The referenced component 'System.Web.ApplicationServices' could not be found. MXApi
Warning The referenced component 'Microsoft.ServiceBus' could not be found. MXApi
Warning The referenced component 'Microsoft.Diagnostics.Tracing.TraceEvent' could not be found. MXApi
Warning The referenced component 'System.Reactive.Interfaces' could not be found. MXApi
Warning The referenced component 'System.Drawing' could not be found. MXApi
Warning The referenced component 'PInvoke.NCrypt' could not be found. MXApi
Warning The referenced component 'System.Reactive.Linq' could not be found. MXApi
Warning The referenced component 'Ninject' could not be found. MXApi
Warning The referenced component 'Microsoft.AspNet.SignalR.Core' could not be found. MXApi
Warning The referenced component 'Microsoft.Owin.Cors' could not be found. MXApi
Warning The referenced component 'System.Net.Http.Formatting' could not be found. MXApi
Warning The referenced component 'Microsoft.Azure.KeyVault.Core' could not be found. MXApi
Warning The referenced component 'System.Reactive.Core' could not be found. MXApi
Warning The referenced component 'Microsoft.Azure.Devices.Shared' could not be found. MXApi
Warning The referenced component 'System.Core' could not be found. MXApi
Warning The referenced component 'System.Web.DynamicData' could not be found. MXApi
Warning The referenced component 'System.EnterpriseServices' could not be found. MXApi
Warning The referenced component 'System.Security.Cryptography.Primitives' could not be found. MXApi
Warning The referenced component 'System.Data' could not be found. MXApi
Warning The referenced component 'Validation' could not be found. MXApi
Warning The referenced component 'System.Web' could not be found. MXApi
Warning The referenced component 'System.Data.DataSetExtensions' could not be found. MXApi
Warning The referenced component 'FluentScheduler' could not be found. MXApi
Warning The referenced component 'PInvoke.Windows.Core' could not be found. MXApi
Warning The referenced component 'System.Reflection.TypeExtensions' could not be found. MXApi
Warning The referenced component 'System.Web.Entity' could not be found. MXApi
Warning The referenced component 'Microsoft.CSharp' could not be found. MXApi
Warning The referenced component 'System.Xml' could not be found. MXApi
Warning The referenced component 'Microsoft.IdentityModel.Tokens' could not be found. MXApi
Warning The referenced component 'PCLCrypto' could not be found. MXApi
Warning The referenced component 'Microsoft.AspNet.TelemetryCorrelation' could not be found. MXApi
Warning The referenced component 'Newtonsoft.Json' could not be found. MXApi
Warning The referenced component 'Microsoft.Azure.Devices' could not be found. MXApi
Warning The referenced component 'Owin' could not be found. MXApi
Warning This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props. MXApi C:\Users\kingc\source\repos\MXDial-IoT-Sample\backend\MXApi\MXApi.csproj 315

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,294 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,384 questions
No comments
{count} votes

Accepted answer
  1. answered 2021-11-16T04:45:49.793+00:00
    Ryan Hill 15,986 Reputation points Microsoft Employee

    I didn't run into any issues with the repo @Saraih King . From a Visual Studio Powershell prompt, I ran the following commands

       gh repo clone microsoft/MXDial-IoT-Sample  
       cd .\MDXDial-IoT-Sample\backend  
       nuget restore .\MxDialBackend.sln  
       msbuild .\MxDialBackend.sln -p:Configuration=Debug  
    

    I suggest doing a git clean -xdf to clean your folder and do a nuget restore, see if the operation succeeds without issue. Furthermore, a yaml configured to restore the nuget packages and build the backend solution should work the exact same way.


0 additional answers

Sort by: Most helpful