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.
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,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.