error MSB4019 for database project on pipeline.

I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2024

Hi, I have the following issue. I have a solution in net 8 and within it I have a database project (.sqlproj) and when I run the pipeline it shows me the error that I share with you in the image. In my IDE I already excluded that project so that it does not compile and does not show an error, but within the pipeline I have not been able to do so so that it does not throw the error and the continuous integration is carried out successfully.


pipeline error.png

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2024

Hi @LineWriter and welcome to the community!

If this specific file is not necessary for the build, you can add a command in your bitbucket-pipelines.yml file to delete it, before running the dotnet build command, for example

- rm myfolder/myfile.sqlproj

This will not delete the file from the Bitbucket repo, but it is going to delete it from the clone where the build runs.

In case the file is needed for other commands you run later on, then it would not be advisable to delete it. In this case, I would suggest reaching out to a forum specific to dotnet development, to ask if there is any configuration you can make in your project's source code or the dotnet build command, that will allow you to exclude this file.

Kind regards,

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events