Is it time to give up trying to deploy an ASP.NET project

  • Thread starter Thread starter Jamin2112
  • Start date Start date
  • Tags Tags
    Project Time
Click For Summary

Discussion Overview

The discussion revolves around the challenges of deploying an ASP.NET MVC project from a Hackintosh to the Azure Cloud, focusing on issues encountered during the deployment process and troubleshooting steps taken by participants.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant describes their experience attempting to deploy an ASP.NET MVC project, noting the complexity compared to using Visual Studio on a PC.
  • The deployment process fails with an error indicating that the target "pipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project, leading to confusion about the cause.
  • Another participant suggests a Stack Overflow link that discusses the same error, indicating it may be a common issue.
  • A participant expresses frustration after extensive research and attempts to resolve the issue without success.
  • After modifying the project file to include specific import statements, a participant encounters a new error stating that the target "Build" does not exist, which they view as a slight improvement.
  • Ultimately, one participant announces success in their deployment efforts, though details on how this was achieved are not provided.

Areas of Agreement / Disagreement

The discussion reflects a range of experiences and challenges related to the deployment process, with no consensus on a single solution or approach. Participants share different troubleshooting steps and outcomes without agreeing on a definitive resolution.

Contextual Notes

Participants express uncertainty regarding the configuration settings and the specific causes of the errors encountered, indicating that the solutions may depend on various factors such as project setup and environment.

Jamin2112
Messages
973
Reaction score
12
on a Hackintosh to the Azure Cloud? I thought this might be a futile effort, and I've spent about 12 hours on it (It took me about 30 seconds to do using Visual Studio on my work PC haha). But damn, I'm so close.

What I'm doing is pushing my ASP.NET MVC project, which, right now, is the template generated for a single-page ASP.NET MVC project in Xamarin for Mac, to GitHub, and am setting up Continuous Deployment in Azure so that my site is re-published every time I commit and sync changes. The project can be seen https://github.com/jamkin/ClassicSnakeGame .

The Activity Log for the failed step in my deployment is

Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling .NET Web Application deployment.
All packages listed in packages.config are already installed.
ClassicSnakeGame -> D:\home\site\repository\ClassicSnakeGame\bin\ClassicSnakeGame.dll
D:\home\site\repository\ClassicSnakeGame\ClassicSnakeGame.csproj : error MSB4057: The target "pipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project.
Failed exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\ClassicSnakeGame\ClassicSnakeGame.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\436ebd68-2a09-411c-9608-896e423a4708";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during website deployment.
Handling .NET Web Application deployment.
All packages listed in packages.config are already installed.
ClassicSnakeGame -> D:\home\site\repository\ClassicSnakeGame\bin\ClassicSnakeGame.dll
D:\home\site\repository\ClassicSnakeGame\ClassicSnakeGame.csproj : error MSB4057: The target "pipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project.
Failed exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\ClassicSnakeGame\ClassicSnakeGame.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\436ebd68-2a09-411c-9608-896e423a4708";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during website deployment.
C:\Program Files (x86)\SiteExtensions\Kudu\45.40617.1623\bin\scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
 
Last edited by a moderator:
Technology news on Phys.org
So, after changing the Imports to

<ImportProject="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets"Condition="'$(VSToolsPath)' != ''"/><ImportProject="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets"Condition="true"/>

I'm getting the error

error MSB4057: The target "Build" does not exist in the project.

Hey, that's somewhat of an improvement -- getting a different error.
 
Success! I've never felt so happy.
 
  • Like
Likes   Reactions: Silicon Waffle