dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.68k stars 1.06k forks source link

Using dotnet build with a Web Deploy Package fails to build #7999

Closed chris5287 closed 4 years ago

chris5287 commented 7 years ago

Steps to reproduce

When running the following command to generate a Web Deploy Package the build fails:

dotnet build -c Release /p:DeployOnBuild=true /p:PublishProfile=WebDeployPackage

Expected behavior

A folder is created with the Web Deploy Package artifacts.

Actual behavior

The build fails with the following error:

C:\Program Files\dotnet\sdk\1.0.0\Sdks\Microsoft.NET.Sdk.Publish\build\netstanda
rd1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeployPackage.targets(162,5): e
rror MSB4062: The "CreateManifestFile" task could not be loaded from the assembl
y C:\Program Files\dotnet\sdk\1.0.0\Sdks\Microsoft.NET.Sdk.Publish\build\netstan
dard1.0\..\..\tools\netcoreapp1.0\\Microsoft.NETCore.Sdk.Publish.Tasks.dll.  Con
firm that the <UsingTask> declaration is correct, that the assembly and all its
dependencies are available, and that the task contains a public class that imple
ments Microsoft.Build.Framework.ITask. [D:\workspace\CustomerProject\src\Customer.Project\Customer.Project.csproj]

Build FAILED.

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0)

Product Information:
 Version:            1.0.0
 Commit SHA-1 hash:  e53429feb4

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.0

WebDeployPackage,pubxml

<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121. 
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <WebPublishMethod>Package</WebPublishMethod>
    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
    <LastUsedPlatform>Any CPU</LastUsedPlatform>
    <SiteUrlToLaunchAfterPublish />
    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
    <ExcludeApp_Data>False</ExcludeApp_Data>
    <PublishFramework />
    <ProjectGuid>c9e15ec4-5e1d-40cb-8f1b-b1abdasdwdd2</ProjectGuid>
    <DesktopBuildPackageLocation>publish\CustomerProject.zip</DesktopBuildPackageLocation>
    <PackageAsSingleFile>true</PackageAsSingleFile>
    <DeployIisAppPath>CustomerProject</DeployIisAppPath>
    <PublishDatabaseSettings>
      <Objects xmlns="" />
    </PublishDatabaseSettings>
  </PropertyGroup>
</Project>
livarcocc commented 7 years ago

@mlorbetske Is this something supported by the web SDK.

@dsplaisted @nguerrera I am not aware of us supporting this in the Core SDK.

mlorbetske commented 7 years ago

Yep, this is a WebSDK thing, I'll move it there

mlorbetske commented 7 years ago

This issue was moved to aspnet/websdk#166