I am working to build C# Web Application. My Web Application can be deployed on Azure as well as on AWS.
Challenge is like my application needs Blob storage like Azure Blob and AWS S3.
Now I am using Repository pattern for now and I have added Azure SDK as well as AWS SDK.
But requirement is like to build 2 images so that image for Azure should have Azure SDK and Image for AWS should have AWS SDK only.
Is there any specific approach to tackle such scenarios?
In C++, we have compiler flag so that we can skip some portion of code from compilation. Is there any such option available in C# while compiling code to IL.
Note: If yes, then I will like to use 2 flags so that build one code for Azure and another for AWS.