예제 #1
0
        public static List <Tuple <string, string, string?> >?CreateForApiProject()
        {
            string atcVersion = GenerateHelper.GetAtcToolVersionAsString3();

            var packageReference = new List <Tuple <string, string, string?> >
            {
                new Tuple <string, string, string?>("Atc", atcVersion, null),
                new Tuple <string, string, string?>("Atc.Rest", atcVersion, null),
            };

            return(packageReference);
        }
예제 #2
0
        public static List <Tuple <string, string, string?> > CreateForHostProject(bool useRestExtended)
        {
            string atcVersion = GenerateHelper.GetAtcToolVersionAsString3();

            var packageReference = new List <Tuple <string, string, string?> >
            {
                new Tuple <string, string, string?>("Atc", atcVersion, null),
                new Tuple <string, string, string?>("Atc.Rest", atcVersion, null)
            };

            if (useRestExtended)
            {
                packageReference.Add(new Tuple <string, string, string?>("Atc.Rest.Extended", atcVersion, null));
                packageReference.Add(new Tuple <string, string, string?>("FluentValidation.AspNetCore", "9.2.0", null));
                packageReference.Add(new Tuple <string, string, string?>("Microsoft.ApplicationInsights.AspNetCore", "2.15.0", null));
                packageReference.Add(new Tuple <string, string, string?>("Microsoft.AspNetCore.Authentication.JwtBearer", "3.1.8", null));
                packageReference.Add(new Tuple <string, string, string?>("Microsoft.AspNetCore.Mvc.Versioning", "4.1.1", null));
                packageReference.Add(new Tuple <string, string, string?>("Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer", "4.1.1", null));
                packageReference.Add(new Tuple <string, string, string?>("Swashbuckle.AspNetCore", "5.6.3", null));
            }

            return(packageReference);
        }