Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any luck with building ASP.NET 5 beta 7 application on VSO?

I'm trying to build ASP.NET 5 beta 7 application on VSO. And I getting following error:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DNX.PackageManager' or one of its dependencies. The system cannot find the file specified.

File name: 'Microsoft.DNX.PackageManager'

I know about this issue: https://github.com/aspnet/Announcements/issues/51

So I tried to install latest WebTools using PowerShell script but "access denied".

Any ideas how to build beta7 app in VSO? Or just wait unit VSO build server will be updated with latest tools?

like image 224
Andrey Avatar asked Sep 04 '15 09:09

Andrey


People also ask

How do I migrate from .NET 5 to .NET 6?

NET 5. In Visual Studio, simply right click on your project in Solution Explorer and choose Properties. Under Application > General > Target framework, choose . NET 6.0.

Does .NET 6 replace .NET core?

NET 6 is an open-source and cross-platform framework, meaning that it automatically replaces . NET Core and . NET Framework with a single, more powerful, unified platform.

Which file is needed by Build Pipeline for building .NET projects?

Your azure-pipelines. yml file needs to run from within the dotnet/aspnet/webapp/Application folder for the build to complete successfully. The sample app is a Visual Studio solution that has two projects: An ASP.NET Web Application project that targets .


1 Answers

In order to build ASP.NET 5 beta 7 project successfully, the Microsoft ASP.NET and Web Tools 2015 (Beta7) – Visual Studio 2015 needs to be installed.

However, this web tool is not available on hosted build server, that is the reason why you get the "FileNotFoundException" error message (please check this link for the details what are installed on hosted build server: http://listofsoftwareontfshostedbuildserver.azurewebsites.net/). Additionally, you're not allowed to install any software to hosted build server, so, you get the "access denied" error message.

So, in order to build ASP.NET 5 beta 7 project successfully, instead of using hosted build server, you need to set up to use your own on-premise build controller. Check this link for the details: https://msdn.microsoft.com/library/ee330987

like image 146
Vicky - MSFT Avatar answered Nov 16 '22 00:11

Vicky - MSFT