New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create a WebDeploy package for ASP.Net Core application #8261
Comments
|
/cc @vijayrkn |
|
If you are using the 2.0 version of cli, then you can use the below command on a windows machine and it would work. MsDeploy is not cross plat yet, so this cant be run on a non-windows machine. if you are using 1.0.4 version of the cli, then you need to use the msbuild version of the command (The ability to call dotnet build was added in 2.0 cli). This is the repo that has the publish features - https://github.com/aspnet/websdk |
|
Closing this, since it does not seem like a bug in the CLI. |
|
Hi, thanks. I have been able to generate the package by running msbuild. |
Steps to reproduce
In VS 2017.2 (26430.6), create a new ASP.NET Core Web Application (.NET Core ou .NET Framework).
Add a publish profile with IIS as target and Web Deploy as method (see Release.pubxml in the attached ZIP file).
Run the following command:
dotnet build WebApplicationDeploy.sln /nologo /p:PublishProfile=Release /p:PackageLocation="C:\Some\Path\package" /p:OutDir="C:\Some\Path\out" /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /maxcpucount:1 /p:platform="Any CPU" /p:configuration="Release" /p:DesktopBuildPackageLocation="C:\Some\Path\package\package.zip"Expected behavior
A Web Deploy package is created at
C:\Some\Path\packagewith a ZIP file, a cmd file that will run MSDeply.exe, a *.SetParameters.xml file with the parameters and their values to apply, a *.SourceManifest.xml file (as with an "classic" ASP.NET Web Application).Actual behavior
The application is correctly build, but the package is not created with the following error:
Environment data
dotnet --infooutput:WebDeploy.zip
The text was updated successfully, but these errors were encountered: