Andrey
Andrey

Reputation: 777

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?

Upvotes: 9

Views: 945

Answers (3)

Brandon Martinez
Brandon Martinez

Reputation: 1330

This is a result of the tooling changes for Visual Studio 2015 and VSO not having the latest tools installed in its hosted build controller (specifically, Microsoft.Dnx.PackageManager doesn't exist and should actually be Microsoft.Dnx.Tooling). To get around this, besides hosting your own build controller, you can fall back to the command line tools dnu build and dnu publish:

dnu build "src\{YOUR.PROJECT.FOLDER}" --configuration "release"

dnu publish "src\{YOUR.PROJECT.FOLDER}" --configuration "release" --out "your\output\directory\to\publish\to" --runtime "dnx-clr-win-x86.1.0.0-beta7"

I have this mostly detailed on my blog here: Deploying ASP.NET 5 Beta 7 Through Visual Studio Online

This should only be a temporary issue, as one can only assume Microsoft will be updating their tooling. When that's complete, you should be able to go back to the normal Visual Studio build step.

Upvotes: 6

Vicky - MSFT
Vicky - MSFT

Reputation: 5010

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

Upvotes: 7

Vitaly
Vitaly

Reputation: 2135

Seems that you've renamed PackageManager incorreclty. Just find where you have reference to 'Microsoft.DNX.PackageManager' and change it to 'Microsoft.DNX.Tooling'

Upvotes: 0

Related Questions