Exemple #1
0
        private static string GetProjectConfiguration()
        {
            var csprojEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_CONFIG");

            if (!string.IsNullOrEmpty(csprojEnvVariable))
            {
                return(csprojEnvVariable);
            }

            return("Debug");
        }
Exemple #2
0
        private static string GetProjectPlatform()
        {
            var csprojEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_PLATFORM");

            if (!string.IsNullOrEmpty(csprojEnvVariable))
            {
                return(csprojEnvVariable);
            }

            return("Any CPU");
        }
Exemple #3
0
        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);
        }