Reputation: 159
i am trying to create a CI/CD pipeline in azure devops for my project now this project has multiple dependencies and all are inside the Solution. when i am using MSBuild with configuration set to debug the build works fine but when i set the configuration to release it throws the following error "The type or namespace name 'CommonUtils' does not exist in the namespace 'TS'" now just to clarify the name of the project is TS.CommonUtils but somehow when building in release this thing is considering TS and CommanUtils different.
Upvotes: 0
Views: 553
Reputation: 19471
get a project that can build flawlessly in debug mode but doesn't in release mode
For your issue,there are already contributors have given workaround in another case.You can check the below:
-- type XXX is only used in release (#if !DEBUG for example) and you are missing a reference to it or a using directive
-- your reference has a condition in your project file enabling it only for debug
For details,please refer to this case.
Upvotes: 1