aspnet / vsweb-publish

Web publish support for ASP.NET 5 in Visual Studio 2015
Other
33 stars 24 forks source link

Help Getting Build/Deploy for ASP.NET 5 Application from Visual Studio Team Services #32

Open msiers opened 8 years ago

msiers commented 8 years ago

I am basically trying to setup a VSTS build and deploy environment for a ASP.NET5/MVC6 application. Currently I have the following features working properly.

  1. Execute PowerShell script to install DNX platform.
  2. Execute PowerShell script to perform a DNX restore.
  3. Execute a Visual Studio Build step to build the web application and libraries.
  4. Execute PowerShell script to use DNX to run XUnit tests.
  5. Publish Test Results to VSTS.

So my next step is to try and get the web application artifact built properly and deployed to Azure. I have been using the following post as my main source of information. https://msdn.microsoft.com/Library/vs/alm/Build/azure/deploy-aspnet5

However when I add the MSBuild arguments (as stated in Step 8), I am getting one of two errors.

  1. MSBuild reports an error saying that the solution file has no targets "FileSystemPublish".
  2. MSBuild reports an error parsing the xproj file and the publish steps are not executed.

I did manually add a new publish profile called "FileSystemPublish" inside Visual Studio but this did not help.

msiers commented 8 years ago

Here are a couple of links from StackOverflow that are related to this issue.

http://stackoverflow.com/questions/31740918/missing-filesystempublish-target-for-azure-depolyment

http://stackoverflow.com/questions/31751191/how-to-build-an-msdeploy-package-for-an-asp-net-5-app-that-targets-net-core?rq=1

msiers commented 8 years ago

And here is another link from MSDN.

http://blogs.msdn.com/b/visualstudioalm/archive/2015/06/12/deploying-an-azure-web-site-using-the-new-build-system-in-visual-studio-online.aspx

sayedihashimi commented 8 years ago

@chrisrpatterson how is this supposed to work?

chrispat commented 8 years ago

Given all of the changes in the various versions of the tooling those instructions do not seem to work anymore. I have it on my backlog to work through everything once RC2 is out. Here is a blog with some updated instructions that worked for beta7 http://www.brandonmartinez.com/2015/09/16/deploying-asp-net-5-beta-7-through-vso/

grahamehorner commented 8 years ago

Is there any update with regards this user story? I'm using RC1/RC2 daily builds with dotnet cli & would really love to have my projects auto-build using Visual Studio Team Services