private static string GetProjectConfiguration() { var csprojEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_CONFIG"); if (!string.IsNullOrEmpty(csprojEnvVariable)) { return(csprojEnvVariable); } return("Debug"); }
private static string GetProjectPlatform() { var csprojEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_PLATFORM"); if (!string.IsNullOrEmpty(csprojEnvVariable)) { return(csprojEnvVariable); } return("Any CPU"); }
private static string GetProjectFullPath() { var csprojEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_FILE"); if (!string.IsNullOrEmpty(csprojEnvVariable)) { return(csprojEnvVariable); } var projectFileList = Directory.GetFiles(Utils.GaugeProjectRoot, "*.csproj"); if (!projectFileList.Any()) { throw new NotAValidGaugeProjectException(); } var projectFullPath = projectFileList.First(); return(projectFullPath); }