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
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 5K views
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:
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