Hi everyone,
I got a bitbucket repository for a .Net 5.0 project.
The solution contains some .Net 5.0 class library projects and some .Net 5.0 winform projects.
I just want to ask how to setup a build pipeline to esure that all comited code always build?
Best regards,
There's an example for .Net Core here:
https://support.atlassian.com/bitbucket-cloud/docs/use-pipelines-in-different-software-languages/
Thank you for your answer.
I tried the followin scriot but the job failed :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/opt/atlassian/pipelines/agent/build/Upsilon/Common/Forms/Upsilon.Common.Forms.csproj : error NU1201: Project Upsilon.Common.Library is not compatible with net50-windows (.NETFramework,Version=v5.0,Profile=windows). Project Upsilon.Common.Library supports: net50 (.NETFramework,Version=v5.0) [/opt/atlassian/pipelines/agent/build/UpsilonEcosystem.sln]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is usually exactly what the error message says, you have to make sure your projects target the same version, in this case either net50-windows or net50, this can probably be changed manually on the csproj files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wouldn't change any thing in my project's files because they build successfully on my local machine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the issue is that my solution contains both net50-windows and net50 projects.
I will abandon this, I prefer make my project build in my working machine before commiting.
Thank you for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.