.net build using shared runner

Unable to build .Net code using shared runner . But docker image doesn’t have the appropriate .NetFramework needed to compile the project