Skip to content
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

Bicep msbuild compiler does not publish correctly with --no-build #14371

Open
jetuser opened this issue Jun 19, 2024 · 0 comments
Open

Bicep msbuild compiler does not publish correctly with --no-build #14371

jetuser opened this issue Jun 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Quality sprint: No

Comments

@jetuser
Copy link

jetuser commented Jun 19, 2024

Bicep version
0.23.1

Describe the bug
We have a build pipeline that does the following-

dotnet build someproject.sln

dotnet publish <project> --no-build --no-restore -out ./somedir

We use the Azure.Bicep.MSBuild package and its associated command line package to compile one of our projects which has bicep files into its associated ARM templates. We are noting during dotnet publish that the compiled json files are not being copied to the publication directory. I've found a couple of issues on here regarding publishing with bicep being wonky and I think I have found another case where this does not work if you are attempting to save time by specifying --no-build.

To Reproduce
Steps to reproduce the behavior:

Compile solution with a csproj that references bicep msbuild package and compiles a json file.

Try to dotnet publish (with --no-build) the individual project after sln build, observe that the json files are not present in the output directory.

Additional context
We've worked around the problem in the meantime by removing --no-build but I want to ensure we avoid any redundant build steps during publication given the solution has already been pre-built.

@majastrz majastrz added this to the Committed Backlog milestone Jun 20, 2024
@majastrz majastrz self-assigned this Jun 20, 2024
@majastrz majastrz added bug Something isn't working and removed Needs: Triage 🔍 labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Quality sprint: No
Projects
Status: Todo
Development

No branches or pull requests

3 participants