1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Dotnet publish vs publishing in Visual Studio generates a different $(PublishDir) in the...

Discussão em 'Angular' iniciado por Stanton, Setembro 27, 2024.

  1. Stanton

    Stanton Guest

    I'm having an issue where the $(PublishDir) value is different depending on if I publish using the command line dotnet publish -c release or if I publish within Visual Studio.

    Using the command line the PublishDir will be a relative path, using Visual Studio the publishDir will be an absolute path.

    Here's the Pre-publish target which shows my problem. Basically I'm trying to compile my Angular application and place the outputs in the $(PublishDir)/wwwroot folder.

    [​IMG]

    Is there any way to force the $(PublishDir) value to always be an absolute path?

    Continue reading...

Compartilhe esta Página